diff --git a/composer.json b/composer.json index 634a3e4f..02af85b9 100644 --- a/composer.json +++ b/composer.json @@ -38,7 +38,7 @@ }, "extra": { "branch-alias": { - "dev-main": "0.2.x-dev" + "dev-main": "0.3.x-dev" } } } diff --git a/jane/gyroscops.json b/jane/gyroscops.json index 29183b0c..9615e398 100644 --- a/jane/gyroscops.json +++ b/jane/gyroscops.json @@ -1 +1 @@ -{"openapi":"3.0.3","info":{"title":"Gyroscops API","description":"","version":"1.0.0"},"servers":[{"url":"\/","description":""}],"paths":{"\/authentication\/forgot-password\/":{"ref":"ForgotPassword","post":{"operationId":"postForgotPassword","tags":["Forgot password"],"responses":{"204":{"description":"Valid email address, no matter if user exists or not"},"400":{"description":"Missing email parameter or invalid format"}},"summary":"Provides a token through email in order to reset a user's password","description":"","parameters":[],"requestBody":{"description":"Request a new password","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ForgotPassword:request"}}},"required":false},"deprecated":false},"parameters":[]},"\/authentication\/forgot-password\/{token}":{"ref":"ForgotPassword","get":{"operationId":"getForgotPassword","tags":["Forgot password"],"responses":{"200":{"description":"Authenticated user","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ForgotPassword:validate"}}}},"404":{"description":"Token not found or expired"}},"summary":"Validates the token sent by email to reset the user's password","description":"","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"deprecated":false},"post":{"operationId":"postForgotPasswordToken","tags":["Forgot password"],"responses":{"204":{"description":"Email address format valid, no matter if user exists or not"},"400":{"description":"Missing password parameter"},"404":{"description":"Token not found"}},"summary":"Resets user password from token sent by email","description":"","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Reset password","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ForgotPassword:reset"}}},"required":false},"deprecated":false},"parameters":[]},"\/authentication\/me":{"get":{"operationId":"meUserCollection","tags":["User"],"responses":{"200":{"description":"User collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/User.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/User"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/User"}}}}}},"summary":"Get the current user","description":"Get the current user","parameters":[],"deprecated":false},"parameters":[]},"\/authentication\/offer\/{id}":{"get":{"operationId":"getOfferItem","tags":["Offer"],"responses":{"200":{"description":"Offer resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Offer.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Offer"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Offer"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Offer resource.","description":"Retrieves a Offer resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"put":{"operationId":"putOfferItem","tags":["Offer"],"responses":{"200":{"description":"Offer resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Offer.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Offer"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Offer"}}},"links":{"GetOfferItem":{"operationId":"getOfferItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/offer\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Replaces the Offer resource.","description":"Replaces the Offer resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Offer resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Offer.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Offer"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Offer"}}},"required":true},"deprecated":false},"delete":{"operationId":"deleteOfferItem","tags":["Offer"],"responses":{"204":{"description":"Offer resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the Offer resource.","description":"Removes the Offer resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"patchOfferItem","tags":["Offer"],"responses":{"200":{"description":"Offer resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Offer.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Offer"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Offer"}}},"links":{"GetOfferItem":{"operationId":"getOfferItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/offer\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the Offer resource.","description":"Updates the Offer resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Offer resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/Offer"}}},"required":true},"deprecated":false},"parameters":[]},"\/authentication\/offer\/{id}\/options":{"get":{"operationId":"api_offers_options_get_subresourceOfferSubresource","tags":["Option","Offer"],"responses":{"200":{"description":"Offer resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Option.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Option"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Option"}}}}}},"summary":"Retrieves a Offer resource.","description":"Retrieves a Offer resource.","parameters":[{"name":"id","in":"path","description":"Offer identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/authentication\/offers":{"get":{"operationId":"getOfferCollection","tags":["Offer"],"responses":{"200":{"description":"Offer collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Offer.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Offer"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Offer"}}}}}},"summary":"Retrieves the collection of Offer resources.","description":"Retrieves the collection of Offer resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/authentication\/organization\/{id}":{"get":{"operationId":"getOrganizationItem","tags":["Organization"],"responses":{"200":{"description":"Organization resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Organization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Organization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Organization"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Organization resource.","description":"Retrieves a Organization resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"put":{"operationId":"putOrganizationItem","tags":["Organization"],"responses":{"200":{"description":"Organization resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Organization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Organization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Organization"}}},"links":{"GetOrganizationItem":{"operationId":"getOrganizationItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/organization\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Replaces the Organization resource.","description":"Replaces the Organization resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Organization resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Organization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Organization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Organization"}}},"required":true},"deprecated":false},"delete":{"operationId":"deleteOrganizationItem","tags":["Organization"],"responses":{"204":{"description":"Organization resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the Organization resource.","description":"Removes the Organization resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"patchOrganizationItem","tags":["Organization"],"responses":{"200":{"description":"Organization resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Organization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Organization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Organization"}}},"links":{"GetOrganizationItem":{"operationId":"getOrganizationItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/organization\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the Organization resource.","description":"Updates the Organization resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Organization resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/Organization"}}},"required":true},"deprecated":false},"parameters":[]},"\/authentication\/organization\/{id}\/authorizations":{"get":{"operationId":"api_organizations_authorizations_get_subresourceOrganizationSubresource","tags":["UserAuthorization","Organization"],"responses":{"200":{"description":"Organization resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/UserAuthorization.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/UserAuthorization"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/UserAuthorization"}}}}}},"summary":"Retrieves a Organization resource.","description":"Retrieves a Organization resource.","parameters":[{"name":"id","in":"path","description":"Organization identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/authentication\/organization\/{id}\/external-collaborators":{"get":{"operationId":"api_organizations_external_collaborators_get_subresourceOrganizationSubresource","tags":["User","Organization"],"responses":{"200":{"description":"Organization resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/User.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/User"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/User"}}}}}},"summary":"Retrieves a Organization resource.","description":"Retrieves a Organization resource.","parameters":[{"name":"id","in":"path","description":"Organization identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/authentication\/organization\/{id}\/users":{"get":{"operationId":"api_organizations_users_get_subresourceOrganizationSubresource","tags":["User","Organization"],"responses":{"200":{"description":"Organization resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/User.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/User"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/User"}}}}}},"summary":"Retrieves a Organization resource.","description":"Retrieves a Organization resource.","parameters":[{"name":"id","in":"path","description":"Organization identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/authentication\/organization\/{id}\/workspaces":{"get":{"operationId":"api_organizations_workspaces_get_subresourceOrganizationSubresource","tags":["Workspace","Organization"],"responses":{"200":{"description":"Organization resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Workspace.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Workspace"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Workspace"}}}}}},"summary":"Retrieves a Organization resource.","description":"Retrieves a Organization resource.","parameters":[{"name":"id","in":"path","description":"Organization identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/authentication\/organizations":{"get":{"operationId":"getOrganizationCollection","tags":["Organization"],"responses":{"200":{"description":"Organization collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Organization.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Organization"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Organization"}}}}}},"summary":"Retrieves the collection of Organization resources.","description":"Retrieves the collection of Organization resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"postOrganizationCollection","tags":["Organization"],"responses":{"201":{"description":"Organization resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Organization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Organization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Organization"}}},"links":{"GetOrganizationItem":{"operationId":"getOrganizationItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/organization\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Organization resource.","description":"Creates a Organization resource.","parameters":[],"requestBody":{"description":"The new Organization resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Organization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Organization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Organization"}}},"required":true},"deprecated":false},"parameters":[]},"\/authentication\/subscription\/{id}":{"get":{"operationId":"getSubscriptionItem","tags":["Subscription"],"responses":{"200":{"description":"Subscription resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Subscription.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Subscription"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Subscription"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Subscription resource.","description":"Retrieves a Subscription resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"put":{"operationId":"putSubscriptionItem","tags":["Subscription"],"responses":{"200":{"description":"Subscription resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Subscription.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Subscription"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Subscription"}}},"links":{"GetSubscriptionItem":{"operationId":"getSubscriptionItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/subscription\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Replaces the Subscription resource.","description":"Replaces the Subscription resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Subscription resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Subscription.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Subscription"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Subscription"}}},"required":true},"deprecated":false},"post":{"operationId":"postSubscriptionCollection","tags":["Subscription"],"responses":{"201":{"description":"Subscription resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Subscription.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Subscription"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Subscription"}}},"links":{"GetSubscriptionItem":{"operationId":"getSubscriptionItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/subscription\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Subscription resource.","description":"Creates a Subscription resource.","parameters":[],"requestBody":{"description":"The new Subscription resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Subscription.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Subscription"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Subscription"}}},"required":true},"deprecated":false},"delete":{"operationId":"deleteSubscriptionItem","tags":["Subscription"],"responses":{"204":{"description":"Subscription resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the Subscription resource.","description":"Removes the Subscription resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"patchSubscriptionItem","tags":["Subscription"],"responses":{"200":{"description":"Subscription resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Subscription.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Subscription"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Subscription"}}},"links":{"GetSubscriptionItem":{"operationId":"getSubscriptionItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/subscription\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the Subscription resource.","description":"Updates the Subscription resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Subscription resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/Subscription"}}},"required":true},"deprecated":false},"parameters":[]},"\/authentication\/subscriptions":{"get":{"operationId":"getSubscriptionCollection","tags":["Subscription"],"responses":{"200":{"description":"Subscription collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Subscription.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Subscription"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Subscription"}}}}}},"summary":"Retrieves the collection of Subscription resources.","description":"Retrieves the collection of Subscription resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/authentication\/subscriptions\/{id}\/offer":{"get":{"operationId":"api_subscriptions_offer_get_subresourceSubscriptionSubresource","tags":["Offer","Subscription"],"responses":{"200":{"description":"Subscription resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Offer.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Offer"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Offer"}}}}},"summary":"Retrieves a Subscription resource.","description":"Retrieves a Subscription resource.","parameters":[{"name":"id","in":"path","description":"Subscription identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/authentication\/subscriptions\/{id}\/options":{"get":{"operationId":"api_subscriptions_options_get_subresourceSubscriptionSubresource","tags":["SubscriptionOption","Subscription"],"responses":{"200":{"description":"Subscription resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/SubscriptionOption.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/SubscriptionOption"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/SubscriptionOption"}}}}}},"summary":"Retrieves a Subscription resource.","description":"Retrieves a Subscription resource.","parameters":[{"name":"id","in":"path","description":"Subscription identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/authentication\/subscriptions\/{id}\/organization":{"get":{"operationId":"api_subscriptions_organization_get_subresourceSubscriptionSubresource","tags":["Organization","Subscription"],"responses":{"200":{"description":"Subscription resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Organization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Organization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Organization"}}}}},"summary":"Retrieves a Subscription resource.","description":"Retrieves a Subscription resource.","parameters":[{"name":"id","in":"path","description":"Subscription identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/authentication\/token":{"ref":"JWT Token","put":{"tags":["Token"],"responses":{"200":{"description":"Update JWT Token","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Token:update"}}}}},"summary":"Update scope of token","description":"","parameters":[],"requestBody":{"description":"Update JWT Token","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Credentials:update"}}},"required":false},"deprecated":false},"post":{"operationId":"postCredentialsItem","tags":["Token"],"responses":{"200":{"description":"Get JWT token","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Token"}}}}},"summary":"Get JWT token to login.","description":"","parameters":[],"requestBody":{"description":"Generate new JWT Token","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Credentials"}}},"required":false},"deprecated":false},"parameters":[]},"\/authentication\/user-authorization\/{id}":{"get":{"operationId":"getUserAuthorizationItem","tags":["UserAuthorization"],"responses":{"200":{"description":"UserAuthorization resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a UserAuthorization resource.","description":"Retrieves a UserAuthorization resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"put":{"operationId":"putUserAuthorizationItem","tags":["UserAuthorization"],"responses":{"200":{"description":"UserAuthorization resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization"}}},"links":{"GetUserAuthorizationItem":{"operationId":"getUserAuthorizationItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/user-authorization\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Replaces the UserAuthorization resource.","description":"Replaces the UserAuthorization resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated UserAuthorization resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization"}}},"required":true},"deprecated":false},"delete":{"operationId":"deleteUserAuthorizationItem","tags":["UserAuthorization"],"responses":{"204":{"description":"UserAuthorization resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the UserAuthorization resource.","description":"Removes the UserAuthorization resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"patchUserAuthorizationItem","tags":["UserAuthorization"],"responses":{"200":{"description":"UserAuthorization resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization"}}},"links":{"GetUserAuthorizationItem":{"operationId":"getUserAuthorizationItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/user-authorization\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the UserAuthorization resource.","description":"Updates the UserAuthorization resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated UserAuthorization resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization"}}},"required":true},"deprecated":false},"parameters":[]},"\/authentication\/user-authorizations":{"get":{"operationId":"getUserAuthorizationCollection","tags":["UserAuthorization"],"responses":{"200":{"description":"UserAuthorization collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/UserAuthorization.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/UserAuthorization"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/UserAuthorization"}}}}}},"summary":"Retrieves the collection of UserAuthorization resources.","description":"Retrieves the collection of UserAuthorization resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"postUserAuthorizationCollection","tags":["UserAuthorization"],"responses":{"201":{"description":"UserAuthorization resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization"}}},"links":{"GetUserAuthorizationItem":{"operationId":"getUserAuthorizationItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/user-authorization\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a UserAuthorization resource.","description":"Creates a UserAuthorization resource.","parameters":[],"requestBody":{"description":"The new UserAuthorization resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization"}}},"required":true},"deprecated":false},"parameters":[]},"\/authentication\/user\/{id}":{"get":{"operationId":"getUserItem","tags":["User"],"responses":{"200":{"description":"User resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a User resource.","description":"Retrieves a User resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"put":{"operationId":"putUserItem","tags":["User"],"responses":{"200":{"description":"User resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}}},"links":{"GetUserItem":{"operationId":"getUserItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/user\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Replaces the User resource.","description":"Replaces the User resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated User resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}}},"required":true},"deprecated":false},"delete":{"operationId":"deleteUserItem","tags":["User"],"responses":{"204":{"description":"User resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the User resource.","description":"Removes the User resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"patchUserItem","tags":["User"],"responses":{"200":{"description":"User resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}}},"links":{"GetUserItem":{"operationId":"getUserItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/user\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the User resource.","description":"Updates the User resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated User resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/User"}}},"required":true},"deprecated":false},"parameters":[]},"\/authentication\/user\/{id}\/authorizations":{"get":{"operationId":"api_users_authorizations_get_subresourceUserSubresource","tags":["UserAuthorization","User"],"responses":{"200":{"description":"User resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/UserAuthorization.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/UserAuthorization"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/UserAuthorization"}}}}}},"summary":"Retrieves a User resource.","description":"Retrieves a User resource.","parameters":[{"name":"id","in":"path","description":"User identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/authentication\/user\/{id}\/change-password":{"patch":{"operationId":"change_passwordUserItem","tags":["User"],"responses":{"200":{"description":"User resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}}},"links":{"GetUserItem":{"operationId":"getUserItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/user\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the User resource.","description":"Updates the User resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated User resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/User.UserChangePasswordInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/authentication\/users":{"get":{"operationId":"getUserCollection","tags":["User"],"responses":{"200":{"description":"User collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/User.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/User"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/User"}}}}}},"summary":"Retrieves the collection of User resources.","description":"Retrieves the collection of User resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"postUserCollection","tags":["User"],"responses":{"201":{"description":"User resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}}},"links":{"GetUserItem":{"operationId":"getUserItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/user\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a User resource.","description":"Creates a User resource.","parameters":[],"requestBody":{"description":"The new User resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}}},"required":true},"deprecated":false},"parameters":[]},"\/authentication\/workspace\/{id}":{"get":{"operationId":"getWorkspaceItem","tags":["Workspace"],"responses":{"200":{"description":"Workspace resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workspace.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Workspace resource.","description":"Retrieves a Workspace resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"put":{"operationId":"putWorkspaceItem","tags":["Workspace"],"responses":{"200":{"description":"Workspace resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workspace.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}}},"links":{"GetWorkspaceItem":{"operationId":"getWorkspaceItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/workspace\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Replaces the Workspace resource.","description":"Replaces the Workspace resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Workspace resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workspace.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}}},"required":true},"deprecated":false},"delete":{"operationId":"deleteWorkspaceItem","tags":["Workspace"],"responses":{"204":{"description":"Workspace resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the Workspace resource.","description":"Removes the Workspace resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"patchWorkspaceItem","tags":["Workspace"],"responses":{"200":{"description":"Workspace resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workspace.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}}},"links":{"GetWorkspaceItem":{"operationId":"getWorkspaceItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/workspace\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the Workspace resource.","description":"Updates the Workspace resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Workspace resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}}},"required":true},"deprecated":false},"parameters":[]},"\/authentication\/workspace\/{id}\/authorizations":{"get":{"operationId":"api_workspaces_authorizations_get_subresourceWorkspaceSubresource","tags":["UserAuthorization","Workspace"],"responses":{"200":{"description":"Workspace resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/UserAuthorization.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/UserAuthorization"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/UserAuthorization"}}}}}},"summary":"Retrieves a Workspace resource.","description":"Retrieves a Workspace resource.","parameters":[{"name":"id","in":"path","description":"Workspace identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/authentication\/workspace\/{id}\/users":{"get":{"operationId":"api_workspaces_users_get_subresourceWorkspaceSubresource","tags":["User","Workspace"],"responses":{"200":{"description":"Workspace resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/User.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/User"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/User"}}}}}},"summary":"Retrieves a Workspace resource.","description":"Retrieves a Workspace resource.","parameters":[{"name":"id","in":"path","description":"Workspace identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/authentication\/workspaces":{"get":{"operationId":"getWorkspaceCollection","tags":["Workspace"],"responses":{"200":{"description":"Workspace collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Workspace.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Workspace"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Workspace"}}}}}},"summary":"Retrieves the collection of Workspace resources.","description":"Retrieves the collection of Workspace resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"postWorkspaceCollection","tags":["Workspace"],"responses":{"201":{"description":"Workspace resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workspace.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}}},"links":{"GetWorkspaceItem":{"operationId":"getWorkspaceItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/workspace\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Workspace resource.","description":"Creates a Workspace resource.","parameters":[],"requestBody":{"description":"The new Workspace resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workspace.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}}},"required":true},"deprecated":false},"parameters":[]},"\/environment\/configuration":{"post":{"operationId":"postConfigurationCollection","tags":["Configuration"],"responses":{"201":{"description":"Configuration resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Configuration.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Configuration"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Configuration"}}},"links":{"GetConfigurationItem":{"operationId":"getConfigurationItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/environment\/configuration\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Configuration resource.","description":"Creates a Configuration resource.","parameters":[],"requestBody":{"description":"The new Configuration resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Configuration.CreateConfigurationInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Configuration.CreateConfigurationInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Configuration.CreateConfigurationInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/environment\/configuration\/{id}":{"get":{"operationId":"getConfigurationItem","tags":["Configuration"],"responses":{"200":{"description":"Configuration resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Configuration.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Configuration"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Configuration"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Configuration resource.","description":"Retrieves a Configuration resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"put":{"operationId":"editConfigurationItem","tags":["Configuration"],"responses":{"200":{"description":"Configuration resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Configuration.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Configuration"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Configuration"}}},"links":{"GetConfigurationItem":{"operationId":"getConfigurationItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/environment\/configuration\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Replaces the Configuration resource.","description":"Replaces the Configuration resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Configuration resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Configuration.jsonld-edit"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Configuration-edit"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Configuration-edit"}}},"required":true},"deprecated":false},"delete":{"operationId":"deleteConfigurationItem","tags":["Configuration"],"responses":{"204":{"description":"Configuration resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the Configuration resource.","description":"Removes the Configuration resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/environment\/configuration\/{id}\/change":{"put":{"operationId":"change_valuesConfigurationItem","tags":["Configuration"],"responses":{"200":{"description":"Configuration resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Configuration.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Configuration"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Configuration"}}},"links":{"GetConfigurationItem":{"operationId":"getConfigurationItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/environment\/configuration\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Change the configuration values inside an existing configurations storage","description":"Change the configuration values inside an existing configurations storage","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Configuration resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Configuration.ChangeConfigurationValueInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Configuration.ChangeConfigurationValueInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Configuration.ChangeConfigurationValueInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/environment\/configuration\/{id}\/remove":{"put":{"operationId":"remove_valuesConfigurationItem","tags":["Configuration"],"responses":{"200":{"description":"Configuration resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Configuration.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Configuration"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Configuration"}}},"links":{"GetConfigurationItem":{"operationId":"getConfigurationItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/environment\/configuration\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Remove some configuration values inside an existing configurations storage","description":"Remove some configuration values inside an existing configurations storage","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Configuration resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Configuration.RemoveConfigurationValueInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Configuration.RemoveConfigurationValueInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Configuration.RemoveConfigurationValueInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/environment\/configurations":{"get":{"operationId":"getConfigurationCollection","tags":["Configuration"],"responses":{"200":{"description":"Configuration collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Configuration.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Configuration"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Configuration"}}}}}},"summary":"Retrieves the collection of Configuration resources.","description":"Retrieves the collection of Configuration resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/environment\/environment":{"post":{"operationId":"postEnvironmentCollection","tags":["Environment"],"responses":{"201":{"description":"Environment resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Environment.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Environment-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Environment-read"}}},"links":{"GetEnvironmentItem":{"operationId":"getEnvironmentItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/environment\/environment\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Environment resource.","description":"Creates a Environment resource.","parameters":[],"requestBody":{"description":"The new Environment resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Environment.CreateEnvironmentInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Environment.CreateEnvironmentInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Environment.CreateEnvironmentInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/environment\/environment\/{id}":{"get":{"operationId":"getEnvironmentItem","tags":["Environment"],"responses":{"200":{"description":"Environment resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Environment.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Environment-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Environment-read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Environment resource.","description":"Retrieves a Environment resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"put":{"operationId":"editEnvironmentItem","tags":["Environment"],"responses":{"200":{"description":"Environment resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Environment.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Environment-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Environment-read"}}},"links":{"GetEnvironmentItem":{"operationId":"getEnvironmentItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/environment\/environment\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Replaces the Environment resource.","description":"Replaces the Environment resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Environment resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Environment.jsonld-write"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Environment-write"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Environment-write"}}},"required":true},"deprecated":false},"delete":{"operationId":"deleteEnvironmentItem","tags":["Environment"],"responses":{"204":{"description":"Environment resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the Environment resource.","description":"Removes the Environment resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/environment\/environment\/{id}\/add-variables-from-configuration\/{configuration}":{"put":{"operationId":"add_variables_from_configurationEnvironmentItem","tags":["Environment"],"responses":{"200":{"description":"Environment resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Environment.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Environment-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Environment-read"}}},"links":{"GetEnvironmentItem":{"operationId":"getEnvironmentItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/environment\/environment\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Add variables from an existing configuration storage","description":"Add variables from an existing configuration storage","parameters":[{"name":"configuration","in":"path","description":"Configuration identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Environment resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Environment.AddMultipleVariableFromConfigurationInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Environment.AddMultipleVariableFromConfigurationInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Environment.AddMultipleVariableFromConfigurationInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/environment\/environment\/{id}\/add-variables-from-constant":{"put":{"operationId":"add_variables_from_constantEnvironmentItem","tags":["Environment"],"responses":{"200":{"description":"Environment resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Environment.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Environment-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Environment-read"}}},"links":{"GetEnvironmentItem":{"operationId":"getEnvironmentItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/environment\/environment\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Add variables with a constant value","description":"Add variables with a constant value","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Environment resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Environment.AddMultipleVariableFromConstantInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Environment.AddMultipleVariableFromConstantInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Environment.AddMultipleVariableFromConstantInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/environment\/environment\/{id}\/add-variables-from-secret\/{secret}":{"put":{"operationId":"add_variables_from_secretEnvironmentItem","tags":["Environment"],"responses":{"200":{"description":"Environment resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Environment.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Environment-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Environment-read"}}},"links":{"GetEnvironmentItem":{"operationId":"getEnvironmentItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/environment\/environment\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Add variables from an existing secret storage","description":"Add variables from an existing secret storage","parameters":[{"name":"secret","in":"path","description":"Secret identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Environment resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Environment.AddMultipleVariableFromSecretInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Environment.AddMultipleVariableFromSecretInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Environment.AddMultipleVariableFromSecretInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/environment\/environments":{"get":{"operationId":"getEnvironmentCollection","tags":["Environment"],"responses":{"200":{"description":"Environment collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Environment.jsonld-read"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Environment-read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Environment-read"}}}}}},"summary":"Retrieves the collection of Environment resources.","description":"Retrieves the collection of Environment resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/environment\/environments\/{id}\/variables":{"get":{"operationId":"api_environments_variables_get_subresourceEnvironmentSubresource","tags":["Variable","Environment"],"responses":{"200":{"description":"Environment resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Variable.jsonld-read"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Variable-read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Variable-read"}}}}}},"summary":"Retrieves a Environment resource.","description":"Retrieves a Environment resource.","parameters":[{"name":"id","in":"path","description":"Environment identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/environment\/secret":{"post":{"operationId":"postSecretCollection","tags":["Secret"],"responses":{"201":{"description":"Secret resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Secret.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Secret"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Secret"}}},"links":{"GetSecretItem":{"operationId":"getSecretItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/environment\/secret\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Secret resource.","description":"Creates a Secret resource.","parameters":[],"requestBody":{"description":"The new Secret resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Secret.CreateSecretInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Secret.CreateSecretInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Secret.CreateSecretInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/environment\/secret\/{id}":{"get":{"operationId":"getSecretItem","tags":["Secret"],"responses":{"200":{"description":"Secret resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Secret.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Secret"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Secret"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Secret resource.","description":"Retrieves a Secret resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"put":{"operationId":"editSecretItem","tags":["Secret"],"responses":{"200":{"description":"Secret resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Secret.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Secret"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Secret"}}},"links":{"GetSecretItem":{"operationId":"getSecretItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/environment\/secret\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Replaces the Secret resource.","description":"Replaces the Secret resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Secret resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Secret.jsonld-edit"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Secret-edit"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Secret-edit"}}},"required":true},"deprecated":false},"delete":{"operationId":"deleteSecretItem","tags":["Secret"],"responses":{"204":{"description":"Secret resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the Secret resource.","description":"Removes the Secret resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/environment\/secret\/{id}\/change":{"put":{"operationId":"change_valuesSecretItem","tags":["Secret"],"responses":{"200":{"description":"Secret resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Secret.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Secret"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Secret"}}},"links":{"GetSecretItem":{"operationId":"getSecretItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/environment\/secret\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Change the secret values values inside an existing secrets storage","description":"Change the secret values values inside an existing secrets storage","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Secret resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Secret.ChangeSecretValueInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Secret.ChangeSecretValueInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Secret.ChangeSecretValueInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/environment\/secret\/{id}\/remove":{"put":{"operationId":"remove_valuesSecretItem","tags":["Secret"],"responses":{"200":{"description":"Secret resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Secret.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Secret"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Secret"}}},"links":{"GetSecretItem":{"operationId":"getSecretItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/environment\/secret\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Remove some secret values inside an existing secrets storage","description":"Remove some secret values inside an existing secrets storage","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Secret resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Secret.RemoveSecretValueInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Secret.RemoveSecretValueInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Secret.RemoveSecretValueInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/environment\/secrets":{"get":{"operationId":"getSecretCollection","tags":["Secret"],"responses":{"200":{"description":"Secret collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Secret.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Secret"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Secret"}}}}}},"summary":"Retrieves the collection of Secret resources.","description":"Retrieves the collection of Secret resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/environment\/variables-from-configuration\/{id}":{"get":{"operationId":"getVariableFromConfigurationItem","tags":["VariableFromConfiguration"],"responses":{"200":{"description":"VariableFromConfiguration resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConfiguration.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConfiguration-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConfiguration-read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a VariableFromConfiguration resource.","description":"Retrieves a VariableFromConfiguration resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"put":{"operationId":"editVariableFromConfigurationItem","tags":["VariableFromConfiguration"],"responses":{"200":{"description":"VariableFromConfiguration resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConfiguration.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConfiguration-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConfiguration-read"}}},"links":{"GetVariableFromConfigurationItem":{"operationId":"getVariableFromConfigurationItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/environment\/variables-from-configuration\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Replaces the VariableFromConfiguration resource.","description":"Replaces the VariableFromConfiguration resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated VariableFromConfiguration resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConfiguration.jsonld-write"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConfiguration-write"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConfiguration-write"}}},"required":true},"deprecated":false},"delete":{"operationId":"deleteVariableFromConfigurationItem","tags":["VariableFromConfiguration"],"responses":{"204":{"description":"VariableFromConfiguration resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the VariableFromConfiguration resource.","description":"Removes the VariableFromConfiguration resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/gateway\/akeneo\/instance":{"post":{"operationId":"postAkeneoInstanceCollection","tags":["AkeneoInstance"],"responses":{"201":{"description":"AkeneoInstance resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoInstance.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoInstance"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/AkeneoInstance"}}},"links":{"GetAkeneoInstanceItem":{"operationId":"getAkeneoInstanceItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/gateway\/akeneo\/instance\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a AkeneoInstance resource.","description":"Creates a AkeneoInstance resource.","parameters":[],"requestBody":{"description":"The new AkeneoInstance resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoInstance.AkeneoInstanceInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoInstance.AkeneoInstanceInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/AkeneoInstance.AkeneoInstanceInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/gateway\/akeneo\/instance\/from-url":{"get":{"operationId":"get_akeneo_instance_by_pim_urlAkeneoInstanceCollection","tags":["AkeneoInstance"],"responses":{"200":{"description":"AkeneoInstance collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoInstance.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoInstance"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoInstance"}}}}}},"summary":"Check if an organization exists in the database","description":"Check if an organization exists in the database","parameters":[{"name":"url","in":"query","description":"","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/gateway\/akeneo\/instance\/oauth-state":{"get":{"operationId":"get_akeneo_instance_oauthAkeneoInstanceCollection","tags":["AkeneoInstance"],"responses":{"200":{"description":"AkeneoInstance collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoInstance.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoInstance"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoInstance"}}}}}},"summary":"Check if an organization exists in the database","description":"Check if an organization exists in the database","parameters":[{"name":"url","in":"query","description":"","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/gateway\/akeneo\/instance\/{id}":{"get":{"operationId":"getAkeneoInstanceItem","tags":["AkeneoInstance"],"responses":{"200":{"description":"AkeneoInstance resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoInstance.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoInstance"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/AkeneoInstance"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a AkeneoInstance resource.","description":"Retrieves a AkeneoInstance resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/gateway\/akeneo\/instances":{"get":{"operationId":"getAkeneoInstanceCollection","tags":["AkeneoInstance"],"responses":{"200":{"description":"AkeneoInstance collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoInstance.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoInstance"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoInstance"}}}}}},"summary":"Retrieves the collection of AkeneoInstance resources.","description":"Retrieves the collection of AkeneoInstance resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/gateway\/akeneo\/linked-account":{"post":{"operationId":"postAkeneoLinkedAccountCollection","tags":["AkeneoLinkedAccount"],"responses":{"201":{"description":"AkeneoLinkedAccount resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount"}}},"links":{"GetAkeneoLinkedAccountItem":{"operationId":"getAkeneoLinkedAccountItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/gateway\/akeneo\/linked-account\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a AkeneoLinkedAccount resource.","description":"Creates a AkeneoLinkedAccount resource.","parameters":[],"requestBody":{"description":"The new AkeneoLinkedAccount resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount.AkeneoLinkedAccountsInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount.AkeneoLinkedAccountsInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount.AkeneoLinkedAccountsInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/gateway\/akeneo\/linked-account\/{akeneoUserId}":{"get":{"operationId":"get_akeneo_linked_accountAkeneoLinkedAccountCollection","tags":["AkeneoLinkedAccount"],"responses":{"200":{"description":"AkeneoLinkedAccount collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount"}}}}}},"summary":"Check if an akeneo user exists in the database","description":"Check if an akeneo user exists in the database","parameters":[{"name":"akeneoUserId","in":"path","description":"","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/gateway\/akeneo\/linked-account\/{id}":{"get":{"operationId":"getAkeneoLinkedAccountItem","tags":["AkeneoLinkedAccount"],"responses":{"200":{"description":"AkeneoLinkedAccount resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a AkeneoLinkedAccount resource.","description":"Retrieves a AkeneoLinkedAccount resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/gateway\/akeneo\/linked-accounts":{"get":{"operationId":"getAkeneoLinkedAccountCollection","tags":["AkeneoLinkedAccount"],"responses":{"200":{"description":"AkeneoLinkedAccount collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount"}}}}}},"summary":"Retrieves the collection of AkeneoLinkedAccount resources.","description":"Retrieves the collection of AkeneoLinkedAccount resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/gateway\/akeneo\/oauth\/state":{"post":{"operationId":"postAkeneoOauthTokenCollection","tags":["AkeneoOauthToken"],"responses":{"201":{"description":"AkeneoOauthToken resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoOauthToken.OauthStateOutput.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoOauthToken.OauthStateOutput-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/AkeneoOauthToken.OauthStateOutput-read"}}},"links":{"GetAkeneoOauthTokenItem":{"operationId":"getAkeneoOauthTokenItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/gateway\/akeneo\/oauth\/state\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Generate an Akeneo OAuth state","description":"Generate an Akeneo OAuth state","parameters":[],"requestBody":{"description":"The new AkeneoOauthToken resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoOauthToken.OauthStateInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoOauthToken.OauthStateInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/AkeneoOauthToken.OauthStateInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/gateway\/akeneo\/oauth\/state\/{id}":{"get":{"operationId":"getAkeneoOauthTokenItem","tags":["AkeneoOauthToken"],"responses":{"200":{"description":"AkeneoOauthToken resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoOauthToken.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoOauthToken-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/AkeneoOauthToken-read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a AkeneoOauthToken resource.","description":"Retrieves a AkeneoOauthToken resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/gateway\/akeneo\/oauth\/states":{"get":{"operationId":"getAkeneoOauthTokenCollection","tags":["AkeneoOauthToken"],"responses":{"200":{"description":"AkeneoOauthToken collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoOauthToken.jsonld-read"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoOauthToken-read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoOauthToken-read"}}}}}},"summary":"Retrieves the collection of AkeneoOauthToken resources.","description":"Retrieves the collection of AkeneoOauthToken resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/gateway\/akeneo\/oauth\/token":{"put":{"operationId":"put_akeneo_oauth_tokenAkeneoOauthTokenCollection","tags":["AkeneoOauthToken"],"responses":{"200":{"description":"AkeneoOauthToken resource updated","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoOauthToken.OauthTokenOutput.jsonld-read"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoOauthToken.OauthTokenOutput-read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoOauthToken.OauthTokenOutput-read"}}}},"links":{"GetAkeneoOauthTokenItem":{"operationId":"getAkeneoOauthTokenItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/gateway\/akeneo\/oauth\/state\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Generate an Akeneo OAuth token","description":"Generate an Akeneo OAuth token","parameters":[],"requestBody":{"description":"The updated AkeneoOauthToken resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoOauthToken.OauthTokenInput.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoOauthToken.OauthTokenInput"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoOauthToken.OauthTokenInput"}}}},"required":true},"deprecated":false},"parameters":[]},"\/referral\/code\/{id}":{"get":{"operationId":"getReferralCodeItem","tags":["ReferralCode"],"responses":{"200":{"description":"ReferralCode resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ReferralCode.jsonld-referral-code.read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ReferralCode-referral-code.read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ReferralCode-referral-code.read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a ReferralCode resource.","description":"Retrieves a ReferralCode resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"delete":{"operationId":"deleteReferralCodeItem","tags":["ReferralCode"],"responses":{"204":{"description":"ReferralCode resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the ReferralCode resource.","description":"Removes the ReferralCode resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/referral\/codes":{"get":{"operationId":"getReferralCodeCollection","tags":["ReferralCode"],"responses":{"200":{"description":"ReferralCode collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/ReferralCode.jsonld-referral-code.read"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ReferralCode-referral-code.read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ReferralCode-referral-code.read"}}}}}},"summary":"Retrieves the collection of ReferralCode resources.","description":"Retrieves the collection of ReferralCode resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"postReferralCodeCollection","tags":["ReferralCode"],"responses":{"201":{"description":"ReferralCode resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ReferralCode.jsonld-referral-code.read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ReferralCode-referral-code.read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ReferralCode-referral-code.read"}}},"links":{"GetReferralCodeItem":{"operationId":"getReferralCodeItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/referral\/code\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a ReferralCode resource.","description":"Creates a ReferralCode resource.","parameters":[],"requestBody":{"description":"The new ReferralCode resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ReferralCode.jsonld-referral-code.write"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ReferralCode-referral-code.write"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ReferralCode-referral-code.write"}}},"required":true},"deprecated":false},"parameters":[]},"\/referral\/on-premise-request\/{id}":{"get":{"operationId":"getOnPremiseRequestItem","tags":["OnPremiseRequest"],"responses":{"200":{"description":"OnPremiseRequest resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/OnPremiseRequest.jsonld-on-premise-request.read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OnPremiseRequest-on-premise-request.read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/OnPremiseRequest-on-premise-request.read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a OnPremiseRequest resource.","description":"Retrieves a OnPremiseRequest resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/referral\/on-premise-requests":{"get":{"operationId":"getOnPremiseRequestCollection","tags":["OnPremiseRequest"],"responses":{"200":{"description":"OnPremiseRequest collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/OnPremiseRequest.jsonld-on-premise-request.read"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/OnPremiseRequest-on-premise-request.read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/OnPremiseRequest-on-premise-request.read"}}}}}},"summary":"Retrieves the collection of OnPremiseRequest resources.","description":"Retrieves the collection of OnPremiseRequest resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"postOnPremiseRequestCollection","tags":["OnPremiseRequest"],"responses":{"201":{"description":"OnPremiseRequest resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/OnPremiseRequest.jsonld-on-premise-request.read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OnPremiseRequest-on-premise-request.read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/OnPremiseRequest-on-premise-request.read"}}},"links":{"GetOnPremiseRequestItem":{"operationId":"getOnPremiseRequestItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/referral\/on-premise-request\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a OnPremiseRequest resource.","description":"Creates a OnPremiseRequest resource.","parameters":[],"requestBody":{"description":"The new OnPremiseRequest resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/OnPremiseRequest.jsonld-on-premise-request.write"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OnPremiseRequest-on-premise-request.write"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/OnPremiseRequest-on-premise-request.write"}}},"required":true},"deprecated":false},"parameters":[]},"\/referral\/referral-request\/{id}":{"get":{"operationId":"getReferralRequestItem","tags":["ReferralRequest"],"responses":{"200":{"description":"ReferralRequest resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest.jsonld-referral-request.read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest-referral-request.read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest-referral-request.read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a ReferralRequest resource.","description":"Retrieves a ReferralRequest resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/referral\/referral-request\/{id}\/accept":{"patch":{"operationId":"accept_referral_requestReferralRequestItem","tags":["ReferralRequest"],"responses":{"200":{"description":"ReferralRequest resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest.jsonld-referral-request.read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest-referral-request.read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest-referral-request.read"}}},"links":{"GetReferralRequestItem":{"operationId":"getReferralRequestItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/referral\/referral-request\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Accepts a referral request","description":"Accepts a referral request","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"","content":{},"required":false},"deprecated":false},"parameters":[]},"\/referral\/referral-request\/{id}\/reject":{"patch":{"operationId":"reject_referral_requestReferralRequestItem","tags":["ReferralRequest"],"responses":{"200":{"description":"ReferralRequest resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest.jsonld-referral-request.read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest-referral-request.read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest-referral-request.read"}}},"links":{"GetReferralRequestItem":{"operationId":"getReferralRequestItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/referral\/referral-request\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Rejects a referral request","description":"Rejects a referral request","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"","content":{},"required":false},"deprecated":false},"parameters":[]},"\/referral\/referral-requests":{"post":{"operationId":"postReferralRequestCollection","tags":["ReferralRequest"],"responses":{"201":{"description":"ReferralRequest resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest.jsonld-referral-request.read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest-referral-request.read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest-referral-request.read"}}},"links":{"GetReferralRequestItem":{"operationId":"getReferralRequestItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/referral\/referral-request\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a ReferralRequest resource.","description":"Creates a ReferralRequest resource.","parameters":[],"requestBody":{"description":"The new ReferralRequest resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest.ReferralRequestInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest.ReferralRequestInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest.ReferralRequestInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/referral\/requests":{"get":{"operationId":"getReferralRequestCollection","tags":["ReferralRequest"],"responses":{"200":{"description":"ReferralRequest collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/ReferralRequest.jsonld-referral-request.read"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ReferralRequest-referral-request.read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ReferralRequest-referral-request.read"}}}}}},"summary":"Retrieves the collection of ReferralRequest resources.","description":"Retrieves the collection of ReferralRequest resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/action\/{id}":{"get":{"operationId":"getActionItem","tags":["Action"],"responses":{"200":{"description":"Action resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Action.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Action-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Action-read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Action resource.","description":"Retrieves a Action resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/action\/{id}\/organization":{"get":{"operationId":"api_actions_organization_get_subresourceActionSubresource","tags":["Organization","Action"],"responses":{"200":{"description":"Action resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Organization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Organization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Organization"}}}}},"summary":"Retrieves a Action resource.","description":"Retrieves a Action resource.","parameters":[{"name":"id","in":"path","description":"Action identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/action\/{id}\/owner":{"get":{"operationId":"api_actions_owner_get_subresourceActionSubresource","tags":["User","Action"],"responses":{"200":{"description":"Action resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}}}}},"summary":"Retrieves a Action resource.","description":"Retrieves a Action resource.","parameters":[{"name":"id","in":"path","description":"Action identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/action\/{id}\/workspace":{"get":{"operationId":"api_actions_workspace_get_subresourceActionSubresource","tags":["Workspace","Action"],"responses":{"200":{"description":"Action resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workspace.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}}}}},"summary":"Retrieves a Action resource.","description":"Retrieves a Action resource.","parameters":[{"name":"id","in":"path","description":"Action identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/actions":{"get":{"operationId":"getActionCollection","tags":["Action"],"responses":{"200":{"description":"Action collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Action.jsonld-read"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Action-read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Action-read"}}}}}},"summary":"Retrieves the collection of Action resources.","description":"Retrieves the collection of Action resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/compilation":{"post":{"operationId":"postCompilationCollection","tags":["Compilation"],"responses":{"202":{"description":"Compilation resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Compilation.CompilePipelineCommand.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Compilation.CompilePipelineCommand"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Compilation.CompilePipelineCommand"}}},"links":{"GetCompilationItem":{"operationId":"getCompilationItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/compilation\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a pipeline compilation","description":"Creates a pipeline compilation","parameters":[],"requestBody":{"description":"The new Compilation resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Compilation.CompilePipelineCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Compilation.CompilePipelineCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Compilation.CompilePipelineCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/compilation\/{id}":{"get":{"operationId":"getCompilationItem","tags":["Compilation"],"responses":{"200":{"description":"Compilation resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Compilation.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Compilation"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Compilation"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Compilation resource.","description":"Retrieves a Compilation resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/compilation\/{id}\/organization":{"get":{"operationId":"api_compilations_organization_get_subresourceCompilationSubresource","tags":["Organization","Compilation"],"responses":{"200":{"description":"Compilation resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Organization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Organization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Organization"}}}}},"summary":"Retrieves a Compilation resource.","description":"Retrieves a Compilation resource.","parameters":[{"name":"id","in":"path","description":"Compilation identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/compilation\/{id}\/user":{"get":{"operationId":"api_compilations_user_get_subresourceCompilationSubresource","tags":["User","Compilation"],"responses":{"200":{"description":"Compilation resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}}}}},"summary":"Retrieves a Compilation resource.","description":"Retrieves a Compilation resource.","parameters":[{"name":"id","in":"path","description":"Compilation identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/compilation\/{id}\/workspace":{"get":{"operationId":"api_compilations_workspace_get_subresourceCompilationSubresource","tags":["Workspace","Compilation"],"responses":{"200":{"description":"Compilation resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workspace.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}}}}},"summary":"Retrieves a Compilation resource.","description":"Retrieves a Compilation resource.","parameters":[{"name":"id","in":"path","description":"Compilation identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/compilations":{"get":{"operationId":"getCompilationCollection","tags":["Compilation"],"responses":{"200":{"description":"Compilation collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Compilation.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Compilation"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Compilation"}}}}}},"summary":"Retrieves the collection of Compilation resources.","description":"Retrieves the collection of Compilation resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/execution":{"post":{"operationId":"declare_executionExecutionCollection","tags":["Execution"],"responses":{"202":{"description":"Execution resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Execution.DeclarePipelineExecutionCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Execution.DeclarePipelineExecutionCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Execution.DeclarePipelineExecutionCommand-read"}}},"links":{"GetExecutionItem":{"operationId":"getExecutionItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/execution\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Declares a pipeline execution","description":"Declares a pipeline execution","parameters":[],"requestBody":{"description":"The new Execution resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Execution.DeclarePipelineExecutionCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Execution.DeclarePipelineExecutionCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Execution.DeclarePipelineExecutionCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/execution-pipeline-job\/{id}":{"get":{"operationId":"getExecutionPipelineJobItem","tags":["ExecutionPipelineJob"],"responses":{"200":{"description":"ExecutionPipelineJob resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipelineJob.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipelineJob"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipelineJob"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a ExecutionPipelineJob resource.","description":"Retrieves a ExecutionPipelineJob resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/execution-pipeline-job\/{id}\/steps":{"get":{"operationId":"api_execution_pipeline_jobs_steps_get_subresourceExecutionPipelineJobSubresource","tags":["ExecutionPipelineStep","ExecutionPipelineJob"],"responses":{"200":{"description":"ExecutionPipelineJob resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipelineStep.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipelineStep"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipelineStep"}}}}}},"summary":"Retrieves a ExecutionPipelineJob resource.","description":"Retrieves a ExecutionPipelineJob resource.","parameters":[{"name":"id","in":"path","description":"ExecutionPipelineJob identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/execution-pipeline-jobs":{"get":{"operationId":"getExecutionPipelineJobCollection","tags":["ExecutionPipelineJob"],"responses":{"200":{"description":"ExecutionPipelineJob collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipelineJob.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipelineJob"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipelineJob"}}}}}},"summary":"Retrieves the collection of ExecutionPipelineJob resources.","description":"Retrieves the collection of ExecutionPipelineJob resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/execution\/action\/{id}":{"get":{"operationId":"getExecutionActionItem","tags":["ExecutionAction"],"responses":{"200":{"description":"ExecutionAction resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionAction.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionAction"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionAction"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a ExecutionAction resource.","description":"Retrieves a ExecutionAction resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/execution\/execution-pipeline\/{id}\/steps":{"get":{"operationId":"api_execution_pipelines_steps_get_subresourceExecutionPipelineSubresource","tags":["ExecutionPipelineStep","ExecutionPipeline"],"responses":{"200":{"description":"ExecutionPipeline resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipelineStep.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipelineStep"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipelineStep"}}}}}},"summary":"Retrieves a ExecutionPipeline resource.","description":"Retrieves a ExecutionPipeline resource.","parameters":[{"name":"id","in":"path","description":"ExecutionPipeline identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/execution\/execution-pipelines":{"get":{"operationId":"getExecutionPipelineCollection","tags":["ExecutionPipeline"],"responses":{"200":{"description":"ExecutionPipeline collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipeline.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipeline"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipeline"}}}}}},"summary":"Retrieves the collection of ExecutionPipeline resources.","description":"Retrieves the collection of ExecutionPipeline resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/execution\/execution-workflow\/{id}\/job\/{job}\/action":{"get":{"operationId":"api_execution_workflows_jobs_action_get_subresourceExecutionWorkflowSubresource","tags":["ExecutionWorkflowJobAction","ExecutionWorkflowJob"],"responses":{"200":{"description":"ExecutionWorkflow resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJobAction.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJobAction"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJobAction"}}}}},"summary":"Retrieves a ExecutionWorkflow resource.","description":"Retrieves a ExecutionWorkflow resource.","parameters":[{"name":"id","in":"path","description":"ExecutionWorkflow identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"jobs","in":"path","description":"ExecutionWorkflowJob identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/execution\/execution-workflow\/{id}\/job\/{job}\/pipeline":{"get":{"operationId":"api_execution_workflows_jobs_pipeline_get_subresourceExecutionWorkflowSubresource","tags":["ExecutionPipelineJob","ExecutionWorkflowJob"],"responses":{"200":{"description":"ExecutionWorkflow resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipelineJob.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipelineJob"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipelineJob"}}}}},"summary":"Retrieves a ExecutionWorkflow resource.","description":"Retrieves a ExecutionWorkflow resource.","parameters":[{"name":"id","in":"path","description":"ExecutionWorkflow identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"jobs","in":"path","description":"ExecutionWorkflowJob identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/execution\/execution-workflow\/{id}\/jobs":{"get":{"operationId":"api_execution_workflows_jobs_get_subresourceExecutionWorkflowSubresource","tags":["ExecutionWorkflowJob","ExecutionWorkflow"],"responses":{"200":{"description":"ExecutionWorkflow resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJob.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJob"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJob"}}}}}},"summary":"Retrieves a ExecutionWorkflow resource.","description":"Retrieves a ExecutionWorkflow resource.","parameters":[{"name":"id","in":"path","description":"ExecutionWorkflow identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/execution\/execution-workflows":{"get":{"operationId":"getExecutionWorkflowCollection","tags":["ExecutionWorkflow"],"responses":{"200":{"description":"ExecutionWorkflow collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionWorkflow.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionWorkflow"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionWorkflow"}}}}}},"summary":"Retrieves the collection of ExecutionWorkflow resources.","description":"Retrieves the collection of ExecutionWorkflow resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/execution\/pipeline\/step\/{id}":{"get":{"operationId":"getExecutionPipelineStepItem","tags":["ExecutionPipelineStep"],"responses":{"200":{"description":"ExecutionPipelineStep resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipelineStep.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipelineStep"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipelineStep"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a ExecutionPipelineStep resource.","description":"Retrieves a ExecutionPipelineStep resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/execution\/pipeline\/{id}":{"get":{"operationId":"getExecutionPipelineItem","tags":["ExecutionPipeline"],"responses":{"200":{"description":"ExecutionPipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipeline.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipeline"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipeline"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a ExecutionPipeline resource.","description":"Retrieves a ExecutionPipeline resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/execution\/workflow\/action\/{id}":{"get":{"operationId":"getExecutionWorkflowJobActionItem","tags":["ExecutionWorkflowJobAction"],"responses":{"200":{"description":"ExecutionWorkflowJobAction resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJobAction.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJobAction"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJobAction"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a ExecutionWorkflowJobAction resource.","description":"Retrieves a ExecutionWorkflowJobAction resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/execution\/workflow\/execution-workflow-job\/{id}\/action":{"get":{"operationId":"api_execution_workflow_jobs_action_get_subresourceExecutionWorkflowJobSubresource","tags":["ExecutionWorkflowJobAction","ExecutionWorkflowJob"],"responses":{"200":{"description":"ExecutionWorkflowJob resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJobAction.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJobAction"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJobAction"}}}}},"summary":"Retrieves a ExecutionWorkflowJob resource.","description":"Retrieves a ExecutionWorkflowJob resource.","parameters":[{"name":"id","in":"path","description":"ExecutionWorkflowJob identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/execution\/workflow\/execution-workflow-job\/{id}\/pipeline":{"get":{"operationId":"api_execution_workflow_jobs_pipeline_get_subresourceExecutionWorkflowJobSubresource","tags":["ExecutionPipelineJob","ExecutionWorkflowJob"],"responses":{"200":{"description":"ExecutionWorkflowJob resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipelineJob.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipelineJob"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipelineJob"}}}}},"summary":"Retrieves a ExecutionWorkflowJob resource.","description":"Retrieves a ExecutionWorkflowJob resource.","parameters":[{"name":"id","in":"path","description":"ExecutionWorkflowJob identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/execution\/workflow\/execution-workflow-job\/{id}\/pipeline\/steps":{"get":{"operationId":"api_execution_workflow_jobs_pipeline_steps_get_subresourceExecutionWorkflowJobSubresource","tags":["ExecutionPipelineStep","ExecutionPipelineJob"],"responses":{"200":{"description":"ExecutionWorkflowJob resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipelineStep.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipelineStep"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipelineStep"}}}}}},"summary":"Retrieves a ExecutionWorkflowJob resource.","description":"Retrieves a ExecutionWorkflowJob resource.","parameters":[{"name":"id","in":"path","description":"ExecutionWorkflowJob identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"pipeline","in":"path","description":"ExecutionPipelineJob identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/execution\/workflow\/execution-workflow-jobs":{"get":{"operationId":"getExecutionWorkflowJobCollection","tags":["ExecutionWorkflowJob"],"responses":{"200":{"description":"ExecutionWorkflowJob collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJob.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJob"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJob"}}}}}},"summary":"Retrieves the collection of ExecutionWorkflowJob resources.","description":"Retrieves the collection of ExecutionWorkflowJob resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/execution\/workflow\/job\/{id}":{"get":{"operationId":"getExecutionWorkflowJobItem","tags":["ExecutionWorkflowJob"],"responses":{"200":{"description":"ExecutionWorkflowJob resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJob.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJob"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJob"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a ExecutionWorkflowJob resource.","description":"Retrieves a ExecutionWorkflowJob resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/execution\/workflow\/{id}":{"get":{"operationId":"getExecutionWorkflowItem","tags":["ExecutionWorkflow"],"responses":{"200":{"description":"ExecutionWorkflow resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a ExecutionWorkflow resource.","description":"Retrieves a ExecutionWorkflow resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/execution\/{id}":{"get":{"operationId":"getExecutionItem","tags":["Execution"],"responses":{"200":{"description":"Execution resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Execution.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Execution-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Execution-read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Execution resource.","description":"Retrieves a Execution resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/execution\/{id}\/action":{"get":{"operationId":"api_executions_action_get_subresourceExecutionSubresource","tags":["ExecutionAction","Execution"],"responses":{"200":{"description":"Execution resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionAction.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionAction"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionAction"}}}}},"summary":"Retrieves a Execution resource.","description":"Retrieves a Execution resource.","parameters":[{"name":"id","in":"path","description":"Execution identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/execution\/{id}\/finish":{"put":{"operationId":"finish_executionExecutionItem","tags":["Execution"],"responses":{"202":{"description":"Execution resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Execution.FinishPipelineExecutionCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Execution.FinishPipelineExecutionCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Execution.FinishPipelineExecutionCommand-read"}}},"links":{"GetExecutionItem":{"operationId":"getExecutionItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/execution\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Finishes a pipeline execution","description":"Finishes a pipeline execution","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Execution resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Execution.FinishPipelineExecutionCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Execution.FinishPipelineExecutionCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Execution.FinishPipelineExecutionCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/execution\/{id}\/interrupt":{"put":{"operationId":"interrupt_executionExecutionItem","tags":["Execution"],"responses":{"202":{"description":"Execution resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Execution.InterruptPipelineExecutionCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Execution.InterruptPipelineExecutionCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Execution.InterruptPipelineExecutionCommand-read"}}},"links":{"GetExecutionItem":{"operationId":"getExecutionItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/execution\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Interrupts a pipeline execution","description":"Interrupts a pipeline execution","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Execution resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Execution.InterruptPipelineExecutionCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Execution.InterruptPipelineExecutionCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Execution.InterruptPipelineExecutionCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/execution\/{id}\/organization":{"get":{"operationId":"api_executions_organization_get_subresourceExecutionSubresource","tags":["Organization","Execution"],"responses":{"200":{"description":"Execution resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Organization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Organization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Organization"}}}}},"summary":"Retrieves a Execution resource.","description":"Retrieves a Execution resource.","parameters":[{"name":"id","in":"path","description":"Execution identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/execution\/{id}\/owner":{"get":{"operationId":"api_executions_owner_get_subresourceExecutionSubresource","tags":["User","Execution"],"responses":{"200":{"description":"Execution resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}}}}},"summary":"Retrieves a Execution resource.","description":"Retrieves a Execution resource.","parameters":[{"name":"id","in":"path","description":"Execution identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/execution\/{id}\/pipeline":{"get":{"operationId":"api_executions_pipeline_get_subresourceExecutionSubresource","tags":["ExecutionPipeline","Execution"],"responses":{"200":{"description":"Execution resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipeline.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipeline"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipeline"}}}}},"summary":"Retrieves a Execution resource.","description":"Retrieves a Execution resource.","parameters":[{"name":"id","in":"path","description":"Execution identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/execution\/{id}\/resume":{"put":{"operationId":"resume_executionExecutionItem","tags":["Execution"],"responses":{"202":{"description":"Execution resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Execution.ResumePipelineExecutionCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Execution.ResumePipelineExecutionCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Execution.ResumePipelineExecutionCommand-read"}}},"links":{"GetExecutionItem":{"operationId":"getExecutionItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/execution\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Resumes a pipeline execution","description":"Resumes a pipeline execution","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Execution resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Execution.ResumePipelineExecutionCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Execution.ResumePipelineExecutionCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Execution.ResumePipelineExecutionCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/execution\/{id}\/start":{"put":{"operationId":"start_executionExecutionItem","tags":["Execution"],"responses":{"202":{"description":"Execution resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Execution.StartPipelineExecutionCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Execution.StartPipelineExecutionCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Execution.StartPipelineExecutionCommand-read"}}},"links":{"GetExecutionItem":{"operationId":"getExecutionItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/execution\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Starts a pipeline execution","description":"Starts a pipeline execution","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Execution resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Execution.StartPipelineExecutionCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Execution.StartPipelineExecutionCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Execution.StartPipelineExecutionCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/execution\/{id}\/terminate":{"put":{"operationId":"terminate_executionExecutionItem","tags":["Execution"],"responses":{"202":{"description":"Execution resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Execution.TerminatePipelineExecutionCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Execution.TerminatePipelineExecutionCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Execution.TerminatePipelineExecutionCommand-read"}}},"links":{"GetExecutionItem":{"operationId":"getExecutionItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/execution\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Terminates a pipeline execution","description":"Terminates a pipeline execution","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Execution resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Execution.TerminatePipelineExecutionCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Execution.TerminatePipelineExecutionCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Execution.TerminatePipelineExecutionCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/execution\/{id}\/update-state":{"put":{"operationId":"update_execution_stateExecutionItem","tags":["Execution"],"responses":{"202":{"description":"Execution resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Execution.UpdatePipelineExecutionStateCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Execution.UpdatePipelineExecutionStateCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Execution.UpdatePipelineExecutionStateCommand-read"}}},"links":{"GetExecutionItem":{"operationId":"getExecutionItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/execution\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates a pipeline execution state","description":"Updates a pipeline execution state","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Execution resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Execution.UpdatePipelineExecutionStateCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Execution.UpdatePipelineExecutionStateCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Execution.UpdatePipelineExecutionStateCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/execution\/{id}\/workflow":{"get":{"operationId":"api_executions_workflow_get_subresourceExecutionSubresource","tags":["ExecutionWorkflow","Execution"],"responses":{"200":{"description":"Execution resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow"}}}}},"summary":"Retrieves a Execution resource.","description":"Retrieves a Execution resource.","parameters":[{"name":"id","in":"path","description":"Execution identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/execution\/{id}\/workflow\/jobs":{"get":{"operationId":"api_executions_workflow_jobs_get_subresourceExecutionSubresource","tags":["ExecutionWorkflowJob","ExecutionWorkflow"],"responses":{"200":{"description":"Execution resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJob.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJob"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJob"}}}}}},"summary":"Retrieves a Execution resource.","description":"Retrieves a Execution resource.","parameters":[{"name":"id","in":"path","description":"Execution identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"workflow","in":"path","description":"ExecutionWorkflow identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/execution\/{id}\/workspace":{"get":{"operationId":"api_executions_workspace_get_subresourceExecutionSubresource","tags":["Workspace","Execution"],"responses":{"200":{"description":"Execution resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workspace.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}}}}},"summary":"Retrieves a Execution resource.","description":"Retrieves a Execution resource.","parameters":[{"name":"id","in":"path","description":"Execution identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions":{"get":{"operationId":"getExecutionCollection","tags":["Execution"],"responses":{"200":{"description":"Execution collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Execution.jsonld-read"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Execution-read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Execution-read"}}}}}},"summary":"Retrieves the collection of Execution resources.","description":"Retrieves the collection of Execution resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/pipeline":{"post":{"operationId":"declare_pipelinePipelineCollection","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.DeclarePipelineCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.DeclarePipelineCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.DeclarePipelineCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipeline\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Declares a docker pipeline","description":"Declares a docker pipeline","parameters":[],"requestBody":{"description":"The new Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.DeclarePipelineCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.DeclarePipelineCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.DeclarePipelineCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipeline-step-probes":{"get":{"operationId":"getPipelineStepProbeCollection","tags":["PipelineStepProbe"],"responses":{"200":{"description":"PipelineStepProbe collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStepProbe.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStepProbe"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStepProbe"}}}}}},"summary":"Retrieves the collection of PipelineStepProbe resources.","description":"Retrieves the collection of PipelineStepProbe resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/pipeline\/step\/probe\/{id}":{"get":{"operationId":"getPipelineStepProbeItem","tags":["PipelineStepProbe"],"responses":{"200":{"description":"PipelineStepProbe resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/PipelineStepProbe.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PipelineStepProbe"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/PipelineStepProbe"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a PipelineStepProbe resource.","description":"Retrieves a PipelineStepProbe resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/pipeline\/step\/{id}":{"get":{"operationId":"getPipelineStepItem","tags":["PipelineStep"],"responses":{"200":{"description":"PipelineStep resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/PipelineStep.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PipelineStep"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/PipelineStep"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a PipelineStep resource.","description":"Retrieves a PipelineStep resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/pipeline\/step\/{id}\/probes":{"get":{"operationId":"api_pipeline_steps_probes_get_subresourcePipelineStepSubresource","tags":["PipelineStepProbe","PipelineStep"],"responses":{"200":{"description":"PipelineStep resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStepProbe.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStepProbe"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStepProbe"}}}}}},"summary":"Retrieves a PipelineStep resource.","description":"Retrieves a PipelineStep resource.","parameters":[{"name":"id","in":"path","description":"PipelineStep identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/pipeline\/steps":{"get":{"operationId":"getPipelineStepCollection","tags":["PipelineStep"],"responses":{"200":{"description":"PipelineStep collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStep.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStep"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStep"}}}}}},"summary":"Retrieves the collection of PipelineStep resources.","description":"Retrieves the collection of PipelineStep resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/pipeline\/{id}":{"get":{"operationId":"getPipelineItem","tags":["Pipeline"],"responses":{"200":{"description":"Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline-read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Pipeline resource.","description":"Retrieves a Pipeline resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"delete":{"operationId":"delete_pipelinePipelineItem","tags":["Pipeline"],"responses":{"204":{"description":"Pipeline resource deleted"},"404":{"description":"Resource not found"}},"summary":"Deletes a pipeline","description":"Deletes a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/pipeline\/{id}\/add-composer-auth":{"put":{"operationId":"add_composer_auth_pipelinePipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerAuthCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerAuthCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerAuthCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipeline\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Adds a composer auth to a pipeline","description":"Adds a composer auth to a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerAuthCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerAuthCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerAuthCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipeline\/{id}\/add-composer-autoload":{"put":{"operationId":"add_composer_autoload_pipelinePipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerPSR4AutoloadCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerPSR4AutoloadCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerPSR4AutoloadCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipeline\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Adds PSR4 autoload composer to a pipeline","description":"Adds PSR4 autoload composer to a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerPSR4AutoloadCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerPSR4AutoloadCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerPSR4AutoloadCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipeline\/{id}\/add-composer-package":{"put":{"operationId":"add_composer_package_pipelinePipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerPackageCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerPackageCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerPackageCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipeline\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Adds a composer package to a pipeline","description":"Adds a composer package to a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerPackageCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerPackageCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerPackageCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipeline\/{id}\/add-composer-repository":{"put":{"operationId":"add_composer_repository_pipelinePipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerRepositoryCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerRepositoryCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerRepositoryCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipeline\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Adds a composer repository to a pipeline","description":"Adds a composer repository to a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerRepositoryCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerRepositoryCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerRepositoryCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipeline\/{id}\/compilations":{"get":{"operationId":"api_pipelines_compilations_get_subresourcePipelineSubresource","tags":["Compilation","Pipeline"],"responses":{"200":{"description":"Pipeline resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Compilation.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Compilation"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Compilation"}}}}}},"summary":"Retrieves a Pipeline resource.","description":"Retrieves a Pipeline resource.","parameters":[{"name":"id","in":"path","description":"Pipeline identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/pipeline\/{id}\/compile":{"put":{"operationId":"pipeline_compilationPipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.CompilePipelineCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.CompilePipelineCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.CompilePipelineCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipeline\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Launches a pipeline compilation","description":"Launches a pipeline compilation","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.CompilePipelineCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.CompilePipelineCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.CompilePipelineCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipeline\/{id}\/organization":{"get":{"operationId":"api_pipelines_organization_get_subresourcePipelineSubresource","tags":["Organization","Pipeline"],"responses":{"200":{"description":"Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Organization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Organization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Organization"}}}}},"summary":"Retrieves a Pipeline resource.","description":"Retrieves a Pipeline resource.","parameters":[{"name":"id","in":"path","description":"Pipeline identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/pipeline\/{id}\/owner":{"get":{"operationId":"api_pipelines_owner_get_subresourcePipelineSubresource","tags":["User","Pipeline"],"responses":{"200":{"description":"Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}}}}},"summary":"Retrieves a Pipeline resource.","description":"Retrieves a Pipeline resource.","parameters":[{"name":"id","in":"path","description":"Pipeline identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/pipeline\/{id}\/remove-composer-auth":{"put":{"operationId":"remove_composer_auth_pipelinePipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerAuthCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerAuthCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerAuthCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipeline\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Removes a composer auth from a pipeline","description":"Removes a composer auth from a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerAuthCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerAuthCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerAuthCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipeline\/{id}\/remove-composer-autoload":{"put":{"operationId":"remove_composer_autoload_pipelinePipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerPSR4AutoloadCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerPSR4AutoloadCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerPSR4AutoloadCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipeline\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Removes PSR4 autoload composer from a pipeline","description":"Removes PSR4 autoload composer from a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerPSR4AutoloadCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerPSR4AutoloadCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerPSR4AutoloadCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipeline\/{id}\/remove-composer-package":{"put":{"operationId":"remove_composer_package_pipelinePipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerPackageCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerPackageCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerPackageCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipeline\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Removes a composer package from a pipeline","description":"Removes a composer package from a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerPackageCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerPackageCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerPackageCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipeline\/{id}\/remove-composer-repository":{"put":{"operationId":"remove_composer_repository_pipelinePipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerRepositoryCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerRepositoryCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerRepositoryCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipeline\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Removes a repository from a pipeline","description":"Adds a repository from a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerRepositoryCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerRepositoryCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerRepositoryCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipeline\/{id}\/step":{"put":{"operationId":"append_pipeline_stepPipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AppendPipelineStepCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AppendPipelineStepCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AppendPipelineStepCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipeline\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Appends a step to a pipeline","description":"Appends a step to a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AppendPipelineStepCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AppendPipelineStepCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AppendPipelineStepCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipeline\/{id}\/step\/{code}":{"delete":{"operationId":"delete_pipeline_stepPipelineItem","tags":["Pipeline"],"responses":{"204":{"description":"Pipeline resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes a step from a pipeline","description":"Removes a step from a pipeline","parameters":[{"name":"code","in":"path","description":"Step resource code","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/pipeline\/{id}\/step\/{code}\/add-after":{"put":{"operationId":"add_after_pipeline_stepPipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddAfterPipelineStepCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddAfterPipelineStepCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddAfterPipelineStepCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipeline\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Adds a step after another one in a pipeline","description":"Adds a step after another one in a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddAfterPipelineStepCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddAfterPipelineStepCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddAfterPipelineStepCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipeline\/{id}\/step\/{code}\/add-before":{"put":{"operationId":"add_before_pipeline_stepPipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddBeforePipelineStepCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddBeforePipelineStepCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddBeforePipelineStepCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipeline\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Adds a step before another one in a pipeline","description":"Adds a step before another one in a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddBeforePipelineStepCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddBeforePipelineStepCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddBeforePipelineStepCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipeline\/{id}\/step\/{code}\/move-after":{"put":{"operationId":"move_after_pipeline_stepPipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.MoveAfterPipelineStepCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.MoveAfterPipelineStepCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.MoveAfterPipelineStepCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipeline\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Moves a step after another one in a pipeline","description":"Moves a step after another one in a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.MoveAfterPipelineStepCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.MoveAfterPipelineStepCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.MoveAfterPipelineStepCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipeline\/{id}\/step\/{code}\/move-before":{"put":{"operationId":"move_before_pipeline_stepPipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.MoveBeforePipelineStepCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.MoveBeforePipelineStepCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.MoveBeforePipelineStepCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipeline\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Moves a step before another one in a pipeline","description":"Moves a step before another one in a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.MoveBeforePipelineStepCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.MoveBeforePipelineStepCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.MoveBeforePipelineStepCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipeline\/{id}\/step\/{code}\/probe":{"put":{"operationId":"add_pipeline_step_probePipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineStepProbeCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineStepProbeCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineStepProbeCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipeline\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Adds a probe to a step","description":"Adds a probe to a step","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineStepProbCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineStepProbCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineStepProbCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipeline\/{id}\/step\/{code}\/probe\/{probeCode}":{"delete":{"operationId":"remove_pipeline_step_probePipelineItem","tags":["Pipeline"],"responses":{"204":{"description":"Pipeline resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes a probe from a step","description":"Removes a probe from a step","parameters":[{"name":"code","in":"path","description":"Step resource code","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"probe_code","in":"path","description":"Probe resource code","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/pipeline\/{id}\/step\/{code}\/replace":{"put":{"operationId":"replace_pipeline_stepPipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.ReplacePipelineStepCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.ReplacePipelineStepCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.ReplacePipelineStepCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipeline\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Replaces a step by another one in a pipeline","description":"Replaces a step by another one in a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.ReplacePipelineStepCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.ReplacePipelineStepCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.ReplacePipelineStepCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipeline\/{id}\/steps":{"get":{"operationId":"api_pipelines_steps_get_subresourcePipelineSubresource","tags":["PipelineStep","Pipeline"],"responses":{"200":{"description":"Pipeline resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStep.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStep"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStep"}}}}}},"summary":"Retrieves a Pipeline resource.","description":"Retrieves a Pipeline resource.","parameters":[{"name":"id","in":"path","description":"Pipeline identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/pipeline\/{id}\/steps\/reorder":{"put":{"operationId":"reorder_pipeline_stepsPipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.ReorderPipelineStepsCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.ReorderPipelineStepsCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.ReorderPipelineStepsCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipeline\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Reorganizes the steps of a pipeline according to a given order","description":"Reorganizes the steps of a pipeline according to a given order","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.ReorderPipelineStepsCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.ReorderPipelineStepsCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.ReorderPipelineStepsCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipeline\/{id}\/workspace":{"get":{"operationId":"api_pipelines_workspace_get_subresourcePipelineSubresource","tags":["Workspace","Pipeline"],"responses":{"200":{"description":"Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workspace.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}}}}},"summary":"Retrieves a Pipeline resource.","description":"Retrieves a Pipeline resource.","parameters":[{"name":"id","in":"path","description":"Pipeline identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/pipelines":{"get":{"operationId":"getPipelineCollection","tags":["Pipeline"],"responses":{"200":{"description":"Pipeline collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Pipeline.jsonld-read"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Pipeline-read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Pipeline-read"}}}}}},"summary":"Retrieves the collection of Pipeline resources.","description":"Retrieves the collection of Pipeline resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false},{"name":"code","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"code[]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/schedule":{"post":{"operationId":"postScheduleCollection","tags":["Schedule"],"responses":{"202":{"description":"Schedule resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Schedule.ScheduleCommandInterface.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Schedule.ScheduleCommandInterface"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Schedule.ScheduleCommandInterface"}}},"links":{"GetScheduleItem":{"operationId":"getScheduleItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/schedule\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Schedule a pipeline execution","description":"\nIn order to differentiate the different types of schedules, we have set up a field named \"type\" :\n* 1 => Immediate\n* 2 => Once\n* 3 => Times\n* 4 => Until\n ","parameters":[],"requestBody":{"description":"The new Schedule resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Schedule.DeclarePipelineScheduleCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Schedule.DeclarePipelineScheduleCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Schedule.DeclarePipelineScheduleCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/schedule\/{id}":{"get":{"operationId":"getScheduleItem","tags":["Schedule"],"responses":{"200":{"description":"Schedule resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Schedule.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Schedule"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Schedule"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Schedule resource.","description":"Retrieves a Schedule resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/schedule\/{id}\/executions":{"get":{"operationId":"api_schedules_executions_get_subresourceScheduleSubresource","tags":["Execution","Schedule"],"responses":{"200":{"description":"Schedule resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Execution.jsonld-read"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Execution-read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Execution-read"}}}}}},"summary":"Retrieves a Schedule resource.","description":"Retrieves a Schedule resource.","parameters":[{"name":"id","in":"path","description":"Schedule identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/schedule\/{id}\/organization":{"get":{"operationId":"api_schedules_organization_get_subresourceScheduleSubresource","tags":["Organization","Schedule"],"responses":{"200":{"description":"Schedule resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Organization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Organization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Organization"}}}}},"summary":"Retrieves a Schedule resource.","description":"Retrieves a Schedule resource.","parameters":[{"name":"id","in":"path","description":"Schedule identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/schedule\/{id}\/owner":{"get":{"operationId":"api_schedules_owner_get_subresourceScheduleSubresource","tags":["User","Schedule"],"responses":{"200":{"description":"Schedule resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}}}}},"summary":"Retrieves a Schedule resource.","description":"Retrieves a Schedule resource.","parameters":[{"name":"id","in":"path","description":"Schedule identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/schedule\/{id}\/pipeline":{"get":{"operationId":"api_schedules_pipeline_get_subresourceScheduleSubresource","tags":["Pipeline","Schedule"],"responses":{"200":{"description":"Schedule resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline-read"}}}}},"summary":"Retrieves a Schedule resource.","description":"Retrieves a Schedule resource.","parameters":[{"name":"id","in":"path","description":"Schedule identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/schedule\/{id}\/workflow":{"get":{"operationId":"api_schedules_workflow_get_subresourceScheduleSubresource","tags":["Workflow","Schedule"],"responses":{"200":{"description":"Schedule resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workflow.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workflow-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workflow-read"}}}}},"summary":"Retrieves a Schedule resource.","description":"Retrieves a Schedule resource.","parameters":[{"name":"id","in":"path","description":"Schedule identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/schedule\/{id}\/workflow\/jobs":{"get":{"operationId":"api_schedules_workflow_jobs_get_subresourceScheduleSubresource","tags":["WorkflowJob","Workflow"],"responses":{"200":{"description":"Schedule resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/WorkflowJob.jsonld-read"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/WorkflowJob-read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/WorkflowJob-read"}}}}}},"summary":"Retrieves a Schedule resource.","description":"Retrieves a Schedule resource.","parameters":[{"name":"id","in":"path","description":"Schedule identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"workflow","in":"path","description":"Workflow identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/schedule\/{id}\/workflow\/organization":{"get":{"operationId":"api_schedules_workflow_organization_get_subresourceScheduleSubresource","tags":["Organization","Workflow"],"responses":{"200":{"description":"Schedule resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Organization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Organization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Organization"}}}}},"summary":"Retrieves a Schedule resource.","description":"Retrieves a Schedule resource.","parameters":[{"name":"id","in":"path","description":"Schedule identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"workflow","in":"path","description":"Workflow identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/schedule\/{id}\/workflow\/owner":{"get":{"operationId":"api_schedules_workflow_owner_get_subresourceScheduleSubresource","tags":["User","Workflow"],"responses":{"200":{"description":"Schedule resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}}}}},"summary":"Retrieves a Schedule resource.","description":"Retrieves a Schedule resource.","parameters":[{"name":"id","in":"path","description":"Schedule identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"workflow","in":"path","description":"Workflow identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/schedule\/{id}\/workflow\/workspace":{"get":{"operationId":"api_schedules_workflow_workspace_get_subresourceScheduleSubresource","tags":["Workspace","Workflow"],"responses":{"200":{"description":"Schedule resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workspace.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}}}}},"summary":"Retrieves a Schedule resource.","description":"Retrieves a Schedule resource.","parameters":[{"name":"id","in":"path","description":"Schedule identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"workflow","in":"path","description":"Workflow identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/schedule\/{id}\/workspace":{"get":{"operationId":"api_schedules_workspace_get_subresourceScheduleSubresource","tags":["Workspace","Schedule"],"responses":{"200":{"description":"Schedule resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workspace.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}}}}},"summary":"Retrieves a Schedule resource.","description":"Retrieves a Schedule resource.","parameters":[{"name":"id","in":"path","description":"Schedule identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/schedules":{"get":{"operationId":"getScheduleCollection","tags":["Schedule"],"responses":{"200":{"description":"Schedule collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Schedule.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Schedule"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Schedule"}}}}}},"summary":"Retrieves the collection of Schedule resources.","description":"Retrieves the collection of Schedule resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/workflow\/action\/{id}":{"get":{"operationId":"getWorkflowJobActionItem","tags":["WorkflowJobAction"],"responses":{"200":{"description":"WorkflowJobAction resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/WorkflowJobAction.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WorkflowJobAction"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/WorkflowJobAction"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a WorkflowJobAction resource.","description":"Retrieves a WorkflowJobAction resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/workflow\/job\/{id}":{"get":{"operationId":"getWorkflowJobItem","tags":["WorkflowJob"],"responses":{"200":{"description":"WorkflowJob resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/WorkflowJob.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WorkflowJob-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/WorkflowJob-read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a WorkflowJob resource.","description":"Retrieves a WorkflowJob resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/workflow\/pipeline\/{id}":{"get":{"operationId":"getWorkflowJobPipelineItem","tags":["WorkflowJobPipeline"],"responses":{"200":{"description":"WorkflowJobPipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/WorkflowJobPipeline.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WorkflowJobPipeline"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/WorkflowJobPipeline"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a WorkflowJobPipeline resource.","description":"Retrieves a WorkflowJobPipeline resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/workflow\/pipelines":{"get":{"operationId":"getWorkflowJobPipelineCollection","tags":["WorkflowJobPipeline"],"responses":{"200":{"description":"WorkflowJobPipeline collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/WorkflowJobPipeline.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/WorkflowJobPipeline"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/WorkflowJobPipeline"}}}}}},"summary":"Retrieves the collection of WorkflowJobPipeline resources.","description":"Retrieves the collection of WorkflowJobPipeline resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/workflow\/workflow-job-pipelines\/{id}\/steps":{"get":{"operationId":"api_workflow_job_pipelines_steps_get_subresourceWorkflowJobPipelineSubresource","tags":["PipelineStep","WorkflowJobPipeline"],"responses":{"200":{"description":"WorkflowJobPipeline resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStep.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStep"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStep"}}}}}},"summary":"Retrieves a WorkflowJobPipeline resource.","description":"Retrieves a WorkflowJobPipeline resource.","parameters":[{"name":"id","in":"path","description":"WorkflowJobPipeline identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/workflow\/{id}":{"get":{"operationId":"getWorkflowItem","tags":["Workflow"],"responses":{"200":{"description":"Workflow resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workflow.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workflow-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workflow-read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Workflow resource.","description":"Retrieves a Workflow resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/workflow\/{id}\/jobs":{"get":{"operationId":"api_workflows_jobs_get_subresourceWorkflowSubresource","tags":["WorkflowJob","Workflow"],"responses":{"200":{"description":"Workflow resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/WorkflowJob.jsonld-read"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/WorkflowJob-read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/WorkflowJob-read"}}}}}},"summary":"Retrieves a Workflow resource.","description":"Retrieves a Workflow resource.","parameters":[{"name":"id","in":"path","description":"Workflow identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/workflow\/{id}\/organization":{"get":{"operationId":"api_workflows_organization_get_subresourceWorkflowSubresource","tags":["Organization","Workflow"],"responses":{"200":{"description":"Workflow resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Organization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Organization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Organization"}}}}},"summary":"Retrieves a Workflow resource.","description":"Retrieves a Workflow resource.","parameters":[{"name":"id","in":"path","description":"Workflow identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/workflow\/{id}\/owner":{"get":{"operationId":"api_workflows_owner_get_subresourceWorkflowSubresource","tags":["User","Workflow"],"responses":{"200":{"description":"Workflow resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}}}}},"summary":"Retrieves a Workflow resource.","description":"Retrieves a Workflow resource.","parameters":[{"name":"id","in":"path","description":"Workflow identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/workflow\/{id}\/workspace":{"get":{"operationId":"api_workflows_workspace_get_subresourceWorkflowSubresource","tags":["Workspace","Workflow"],"responses":{"200":{"description":"Workflow resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workspace.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}}}}},"summary":"Retrieves a Workflow resource.","description":"Retrieves a Workflow resource.","parameters":[{"name":"id","in":"path","description":"Workflow identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/workflows":{"get":{"operationId":"getWorkflowCollection","tags":["Workflow"],"responses":{"200":{"description":"Workflow collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Workflow.jsonld-read"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Workflow-read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Workflow-read"}}}}}},"summary":"Retrieves the collection of Workflow resources.","description":"Retrieves the collection of Workflow resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/variables-from-constant\/{id}":{"get":{"operationId":"getVariableFromConstantItem","tags":["VariableFromConstant"],"responses":{"200":{"description":"VariableFromConstant resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConstant.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConstant-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConstant-read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a VariableFromConstant resource.","description":"Retrieves a VariableFromConstant resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"put":{"operationId":"editVariableFromConstantItem","tags":["VariableFromConstant"],"responses":{"200":{"description":"VariableFromConstant resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConstant.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConstant-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConstant-read"}}},"links":{"GetVariableFromConstantItem":{"operationId":"getVariableFromConstantItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/variables-from-constant\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Replaces the VariableFromConstant resource.","description":"Replaces the VariableFromConstant resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated VariableFromConstant resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConstant.jsonld-write"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConstant-write"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConstant-write"}}},"required":true},"deprecated":false},"delete":{"operationId":"deleteVariableFromConstantItem","tags":["VariableFromConstant"],"responses":{"204":{"description":"VariableFromConstant resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the VariableFromConstant resource.","description":"Removes the VariableFromConstant resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/variables-from-secret\/{id}":{"get":{"operationId":"getVariableFromSecretItem","tags":["VariableFromSecret"],"responses":{"200":{"description":"VariableFromSecret resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromSecret.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromSecret-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/VariableFromSecret-read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a VariableFromSecret resource.","description":"Retrieves a VariableFromSecret resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"put":{"operationId":"editVariableFromSecretItem","tags":["VariableFromSecret"],"responses":{"200":{"description":"VariableFromSecret resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromSecret.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromSecret-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/VariableFromSecret-read"}}},"links":{"GetVariableFromSecretItem":{"operationId":"getVariableFromSecretItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/variables-from-secret\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Replaces the VariableFromSecret resource.","description":"Replaces the VariableFromSecret resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated VariableFromSecret resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromSecret.jsonld-write"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromSecret-write"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/VariableFromSecret-write"}}},"required":true},"deprecated":false},"delete":{"operationId":"deleteVariableFromSecretItem","tags":["VariableFromSecret"],"responses":{"204":{"description":"VariableFromSecret resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the VariableFromSecret resource.","description":"Removes the VariableFromSecret resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]}},"components":{"schemas":{"AbstractPipeline":{"type":"object","required":["id","code","label","runtimeType","repositories","auths"],"properties":{"id":{"type":"string","format":"uuid"},"code":{"type":"string"},"label":{"type":"string"},"runtimeType":{"type":"string"},"runtime":{"type":"array","items":{"type":"string"}},"autoload":{"readOnly":true,"type":"array","items":{"type":"string"}},"packages":{"type":"array","items":{"type":"string"}},"repositories":{"type":"array","items":{"type":"string"}},"auths":{"type":"array","items":{"type":"string"}},"steps":{"type":"array","items":{"type":"string","format":"iri-reference"}}}},"AbstractPipeline.jsonld":{"type":"object","required":["id","code","label","runtimeType","repositories","auths"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"type":"string","format":"uuid"},"code":{"type":"string"},"label":{"type":"string"},"runtimeType":{"type":"string"},"runtime":{"type":"array","items":{"type":"string"}},"autoload":{"readOnly":true,"type":"array","items":{"type":"string"}},"packages":{"type":"array","items":{"type":"string"}},"repositories":{"type":"array","items":{"type":"string"}},"auths":{"type":"array","items":{"type":"string"}},"steps":{"type":"array","items":{"type":"string","format":"iri-reference"}}}},"Action-read":{"type":"object","required":["id"],"properties":{"id":{"type":"string","format":"uuid"}}},"Action.jsonld-read":{"type":"object","required":["id"],"properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"type":"string","format":"uuid"}}},"AddPipelineComposerAuthCommandInput":{"type":"object","properties":{"url":{"type":"string"},"token":{"type":"string"}}},"AddPipelineComposerAuthCommandInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"url":{"type":"string"},"token":{"type":"string"}}},"AddPipelineComposerRepositoryCommandInput":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"url":{"type":"string"}}},"AddPipelineComposerRepositoryCommandInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"url":{"type":"string"}}},"AkeneoInstance":{"type":"object","properties":{"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"url":{"type":"string"},"organization":{"type":"string","format":"iri-reference"},"workspace":{"type":"string","format":"iri-reference","nullable":true},"secret":{"type":"string","format":"iri-reference"},"linkedAccounts":{"type":"array","items":{"type":"string","format":"iri-reference"}},"oauthTokens":{"type":"array","items":{"type":"string","format":"iri-reference"}}}},"AkeneoInstance.AkeneoInstanceInput":{"type":"object","properties":{"pimUrl":{"type":"string"},"organization":{"type":"string","format":"uuid"},"secret":{"$ref":"#\/components\/schemas\/CreateSecretInput"}}},"AkeneoInstance.AkeneoInstanceInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"pimUrl":{"type":"string"},"organization":{"type":"string","format":"uuid"},"secret":{"$ref":"#\/components\/schemas\/CreateSecretInput.jsonld"}}},"AkeneoInstance.jsonld":{"type":"object","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"url":{"type":"string"},"organization":{"type":"string","format":"iri-reference"},"workspace":{"type":"string","format":"iri-reference","nullable":true},"secret":{"type":"string","format":"iri-reference"},"linkedAccounts":{"type":"array","items":{"type":"string","format":"iri-reference"}},"oauthTokens":{"type":"array","items":{"type":"string","format":"iri-reference"}}}},"AkeneoLinkedAccount":{"type":"object","properties":{"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"user":{"type":"string","format":"iri-reference","nullable":true},"tokenId":{"format":"uuid","externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"akeneoUserId":{"format":"uuid","externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"token":{"type":"string"},"akeneoInstance":{"type":"string","format":"iri-reference","nullable":true}},"required":["user","token"]},"AkeneoLinkedAccount.AkeneoLinkedAccountsInput":{"type":"object","properties":{"akeneoInstance":{"type":"string","format":"uuid"},"tokenId":{"type":"string","format":"uuid"},"akeneoUserId":{"type":"string","format":"uuid"},"token":{"type":"string"}}},"AkeneoLinkedAccount.AkeneoLinkedAccountsInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"akeneoInstance":{"type":"string","format":"uuid"},"tokenId":{"type":"string","format":"uuid"},"akeneoUserId":{"type":"string","format":"uuid"},"token":{"type":"string"}}},"AkeneoLinkedAccount.jsonld":{"type":"object","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"user":{"type":"string","format":"iri-reference","nullable":true},"tokenId":{"format":"uuid","externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"akeneoUserId":{"format":"uuid","externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"token":{"type":"string"},"akeneoInstance":{"type":"string","format":"iri-reference","nullable":true}},"required":["user","token"]},"AkeneoOauthToken-read":{"type":"object","properties":{"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"url":{"externalDocs":{"url":"http:\/\/schema.org\/url"},"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"responseType":{"default":"code","example":"code","type":"string"}},"required":["url","responseType"]},"AkeneoOauthToken.OauthStateInput":{"type":"object","properties":{"url":{"type":"string"},"scope":{"type":"array","items":{"type":"string"}}}},"AkeneoOauthToken.OauthStateInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"url":{"type":"string"},"scope":{"type":"array","items":{"type":"string"}}}},"AkeneoOauthToken.OauthStateOutput-read":{"type":"object"},"AkeneoOauthToken.OauthStateOutput.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"AkeneoOauthToken.OauthTokenInput":{"type":"object","properties":{"url":{"type":"string"},"state":{"type":"string"},"code":{"type":"string"}}},"AkeneoOauthToken.OauthTokenInput.jsonld":{"type":"object","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"url":{"type":"string"},"state":{"type":"string"},"code":{"type":"string"}}},"AkeneoOauthToken.OauthTokenOutput-read":{"type":"object"},"AkeneoOauthToken.OauthTokenOutput.jsonld-read":{"type":"object","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"AkeneoOauthToken.jsonld-read":{"type":"object","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"url":{"externalDocs":{"url":"http:\/\/schema.org\/url"},"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"responseType":{"default":"code","example":"code","type":"string"}},"required":["url","responseType"]},"AutoloadInput":{"type":"object","required":["namespace","paths"],"properties":{"namespace":{"type":"string"},"paths":{"type":"array","items":{"type":"string"}}}},"AutoloadInput.jsonld":{"type":"object","required":["namespace","paths"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"namespace":{"type":"string"},"paths":{"type":"array","items":{"type":"string"}}}},"BigDecimal":{"type":"object","properties":{"scale":{"readOnly":true,"description":"The scale (number of digits after the decimal point) of this decimal number.","type":"integer"},"sign":{"readOnly":true,"description":"{@inheritdoc}","type":"integer"},"unscaledValue":{"readOnly":true,"$ref":"#\/components\/schemas\/BigInteger"},"integralPart":{"readOnly":true,"description":"Returns a string representing the integral part of this decimal number.","type":"string"},"fractionalPart":{"readOnly":true,"description":"Returns a string representing the fractional part of this decimal number.","type":"string"},"nonZeroFractionalPart":{"readOnly":true,"description":"Returns whether this decimal number has a non-zero fractional part.","type":"boolean"},"zero":{"readOnly":true,"description":"Checks if this number equals zero.","type":"boolean"},"negative":{"readOnly":true,"description":"Checks if this number is strictly negative.","type":"boolean"},"negativeOrZero":{"readOnly":true,"description":"Checks if this number is negative or zero.","type":"boolean"},"positive":{"readOnly":true,"description":"Checks if this number is strictly positive.","type":"boolean"},"positiveOrZero":{"readOnly":true,"description":"Checks if this number is positive or zero.","type":"boolean"}}},"BigDecimal.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"scale":{"readOnly":true,"description":"The scale (number of digits after the decimal point) of this decimal number.","type":"integer"},"sign":{"readOnly":true,"description":"{@inheritdoc}","type":"integer"},"unscaledValue":{"readOnly":true,"$ref":"#\/components\/schemas\/BigInteger.jsonld"},"integralPart":{"readOnly":true,"description":"Returns a string representing the integral part of this decimal number.","type":"string"},"fractionalPart":{"readOnly":true,"description":"Returns a string representing the fractional part of this decimal number.","type":"string"},"nonZeroFractionalPart":{"readOnly":true,"description":"Returns whether this decimal number has a non-zero fractional part.","type":"boolean"},"zero":{"readOnly":true,"description":"Checks if this number equals zero.","type":"boolean"},"negative":{"readOnly":true,"description":"Checks if this number is strictly negative.","type":"boolean"},"negativeOrZero":{"readOnly":true,"description":"Checks if this number is negative or zero.","type":"boolean"},"positive":{"readOnly":true,"description":"Checks if this number is strictly positive.","type":"boolean"},"positiveOrZero":{"readOnly":true,"description":"Checks if this number is positive or zero.","type":"boolean"}}},"BigInteger":{"type":"object","properties":{"bitLength":{"readOnly":true,"description":"Returns the number of bits in the minimal two's-complement representation of this BigInteger, excluding a sign bit.","type":"integer"},"lowestSetBit":{"readOnly":true,"description":"Returns the index of the rightmost (lowest-order) one bit in this BigInteger.","type":"integer"},"even":{"readOnly":true,"description":"Returns whether this number is even.","type":"boolean"},"odd":{"readOnly":true,"description":"Returns whether this number is odd.","type":"boolean"},"sign":{"readOnly":true,"description":"{@inheritdoc}","type":"integer"},"zero":{"readOnly":true,"description":"Checks if this number equals zero.","type":"boolean"},"negative":{"readOnly":true,"description":"Checks if this number is strictly negative.","type":"boolean"},"negativeOrZero":{"readOnly":true,"description":"Checks if this number is negative or zero.","type":"boolean"},"positive":{"readOnly":true,"description":"Checks if this number is strictly positive.","type":"boolean"},"positiveOrZero":{"readOnly":true,"description":"Checks if this number is positive or zero.","type":"boolean"}}},"BigInteger.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"bitLength":{"readOnly":true,"description":"Returns the number of bits in the minimal two's-complement representation of this BigInteger, excluding a sign bit.","type":"integer"},"lowestSetBit":{"readOnly":true,"description":"Returns the index of the rightmost (lowest-order) one bit in this BigInteger.","type":"integer"},"even":{"readOnly":true,"description":"Returns whether this number is even.","type":"boolean"},"odd":{"readOnly":true,"description":"Returns whether this number is odd.","type":"boolean"},"sign":{"readOnly":true,"description":"{@inheritdoc}","type":"integer"},"zero":{"readOnly":true,"description":"Checks if this number equals zero.","type":"boolean"},"negative":{"readOnly":true,"description":"Checks if this number is strictly negative.","type":"boolean"},"negativeOrZero":{"readOnly":true,"description":"Checks if this number is negative or zero.","type":"boolean"},"positive":{"readOnly":true,"description":"Checks if this number is strictly positive.","type":"boolean"},"positiveOrZero":{"readOnly":true,"description":"Checks if this number is positive or zero.","type":"boolean"}}},"BigNumber":{"type":"object","properties":{"zero":{"readOnly":true,"description":"Checks if this number equals zero.","type":"boolean"},"negative":{"readOnly":true,"description":"Checks if this number is strictly negative.","type":"boolean"},"negativeOrZero":{"readOnly":true,"description":"Checks if this number is negative or zero.","type":"boolean"},"positive":{"readOnly":true,"description":"Checks if this number is strictly positive.","type":"boolean"},"positiveOrZero":{"readOnly":true,"description":"Checks if this number is positive or zero.","type":"boolean"},"sign":{"readOnly":true,"description":"Returns the sign of this number.","type":"integer"}}},"BigNumber.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"zero":{"readOnly":true,"description":"Checks if this number equals zero.","type":"boolean"},"negative":{"readOnly":true,"description":"Checks if this number is strictly negative.","type":"boolean"},"negativeOrZero":{"readOnly":true,"description":"Checks if this number is negative or zero.","type":"boolean"},"positive":{"readOnly":true,"description":"Checks if this number is strictly positive.","type":"boolean"},"positiveOrZero":{"readOnly":true,"description":"Checks if this number is positive or zero.","type":"boolean"},"sign":{"readOnly":true,"description":"Returns the sign of this number.","type":"integer"}}},"Compilation":{"type":"object","required":["id","pipeline"],"properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time"},"pipeline":{"type":"string","format":"iri-reference"},"workspace":{"type":"string","format":"iri-reference","nullable":true},"organization":{"type":"string","format":"iri-reference","nullable":true},"owner":{"type":"string","format":"iri-reference"}}},"Compilation.CompilePipelineCommand":{"type":"object","properties":{"id":{"$ref":"#\/components\/schemas\/PipelineId"}}},"Compilation.CompilePipelineCommand.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"$ref":"#\/components\/schemas\/PipelineId.jsonld"}}},"Compilation.CompilePipelineCommandInput":{"type":"object"},"Compilation.CompilePipelineCommandInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Compilation.jsonld":{"type":"object","required":["id","pipeline"],"properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"type":"string","format":"uuid"},"createdAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time"},"pipeline":{"type":"string","format":"iri-reference"},"workspace":{"type":"string","format":"iri-reference","nullable":true},"organization":{"type":"string","format":"iri-reference","nullable":true},"owner":{"type":"string","format":"iri-reference"}}},"Configuration":{"type":"object","properties":{"id":{"readOnly":true,"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":"string"},"organization":{"type":"string","format":"iri-reference"},"workspace":{"type":"string","format":"iri-reference"},"contents":{"readOnly":true,"type":"object","additionalProperties":{"type":"string"}},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable"}}},"Configuration-edit":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}},"Configuration-read":{"type":"object","properties":{"id":{"readOnly":true,"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string"},"contents":{"readOnly":true,"type":"object","additionalProperties":{"type":"string"}}}},"Configuration.ChangeConfigurationValueInput":{"type":"object","properties":{"contents":{"type":"object","additionalProperties":{"type":"string"}},"organization":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/OrganizationId"}]},"workspace":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/WorkspaceId"}]},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable"}}},"Configuration.ChangeConfigurationValueInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"contents":{"type":"object","additionalProperties":{"type":"string"}},"organization":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/OrganizationId.jsonld"}]},"workspace":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/WorkspaceId.jsonld"}]},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable.jsonld"}}},"Configuration.CreateConfigurationInput":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"contents":{"type":"object","additionalProperties":{"type":"string"}},"organization":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/OrganizationId"}]},"workspace":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/WorkspaceId"}]},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable"}}},"Configuration.CreateConfigurationInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"contents":{"type":"object","additionalProperties":{"type":"string"}},"organization":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/OrganizationId.jsonld"}]},"workspace":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/WorkspaceId.jsonld"}]},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable.jsonld"}}},"Configuration.RemoveConfigurationValueInput":{"type":"object","properties":{"id":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/ConfigurationId"}]},"contents":{"type":"array","items":{"type":"string"}},"organization":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/OrganizationId"}]},"workspace":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/WorkspaceId"}]},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable"}}},"Configuration.RemoveConfigurationValueInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/ConfigurationId.jsonld"}]},"contents":{"type":"array","items":{"type":"string"}},"organization":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/OrganizationId.jsonld"}]},"workspace":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/WorkspaceId.jsonld"}]},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable.jsonld"}}},"Configuration.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"readOnly":true,"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":"string"},"organization":{"type":"string","format":"iri-reference"},"workspace":{"type":"string","format":"iri-reference"},"contents":{"readOnly":true,"type":"object","additionalProperties":{"type":"string"}},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable.jsonld"}}},"Configuration.jsonld-edit":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"type":"string"},"description":{"type":"string"}}},"Configuration.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"readOnly":true,"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string"},"contents":{"readOnly":true,"type":"object","additionalProperties":{"type":"string"}}}},"ConfigurationId":{"type":"object"},"ConfigurationId.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Context":{"type":"object","properties":{"step":{"readOnly":true,"description":"Returns the step used by this context.","type":"integer"},"fixedScale":{"readOnly":true,"description":"Returns whether this context uses a fixed scale and step.","type":"boolean"}}},"Context.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"step":{"readOnly":true,"description":"Returns the step used by this context.","type":"integer"},"fixedScale":{"readOnly":true,"description":"Returns whether this context uses a fixed scale and step.","type":"boolean"}}},"CreateSecretInput":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"contents":{"type":"object","additionalProperties":{"type":"string"}},"organization":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/OrganizationId"}]},"workspace":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/WorkspaceId"}]},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable"}}},"CreateSecretInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"contents":{"type":"object","additionalProperties":{"type":"string"}},"organization":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/OrganizationId.jsonld"}]},"workspace":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/WorkspaceId.jsonld"}]},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable.jsonld"}}},"Currency":{"type":"object","properties":{"currencyCode":{"description":"The currency code.","type":"string"},"numericCode":{"description":"The numeric currency code.","type":"integer"},"name":{"description":"The name of the currency.","type":"string"},"defaultFractionDigits":{"description":"The default number of fraction digits (typical scale) used with this currency.","type":"integer"}}},"Currency.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"currencyCode":{"description":"The currency code.","type":"string"},"numericCode":{"description":"The numeric currency code.","type":"integer"},"name":{"description":"The name of the currency.","type":"string"},"defaultFractionDigits":{"description":"The default number of fraction digits (typical scale) used with this currency.","type":"integer"}}},"Environment-read":{"type":"object","properties":{"id":{"readOnly":true,"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string"},"organization":{"type":"string","format":"iri-reference"},"workspace":{"type":"string","format":"iri-reference"}}},"Environment-write":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}},"Environment.AddMultipleVariableFromConfigurationInput":{"type":"object","properties":{"variables":{"type":"array","items":{"$ref":"#\/components\/schemas\/VariableFromConfigurationInput"}},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable"}}},"Environment.AddMultipleVariableFromConfigurationInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"variables":{"type":"array","items":{"$ref":"#\/components\/schemas\/VariableFromConfigurationInput.jsonld"}},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable.jsonld"}}},"Environment.AddMultipleVariableFromConstantInput":{"type":"object","properties":{"variables":{"type":"array","items":{"$ref":"#\/components\/schemas\/VariableFromConstantInput"}},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable"}}},"Environment.AddMultipleVariableFromConstantInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"variables":{"type":"array","items":{"$ref":"#\/components\/schemas\/VariableFromConstantInput.jsonld"}},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable.jsonld"}}},"Environment.AddMultipleVariableFromSecretInput":{"type":"object","properties":{"variables":{"type":"array","items":{"$ref":"#\/components\/schemas\/VariableFromSecretInput"}},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable"}}},"Environment.AddMultipleVariableFromSecretInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"variables":{"type":"array","items":{"$ref":"#\/components\/schemas\/VariableFromSecretInput.jsonld"}},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable.jsonld"}}},"Environment.CreateEnvironmentInput":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"variables":{"type":"array","items":{"type":"string","format":"iri-reference"}},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable"}}},"Environment.CreateEnvironmentInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"variables":{"type":"array","items":{"type":"string","format":"iri-reference"}},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable.jsonld"}}},"Environment.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"readOnly":true,"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string"},"organization":{"type":"string","format":"iri-reference"},"workspace":{"type":"string","format":"iri-reference"}}},"Environment.jsonld-write":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"type":"string"},"description":{"type":"string"}}},"Execution-read":{"type":"object","required":["id","code","status","errors","scheduledAt","reason"],"properties":{"id":{"type":"string","format":"uuid"},"code":{"type":"string"},"status":{"default":"unknown","example":"unknown","type":"string"},"errors":{"type":"integer"},"scheduledAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"startedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"finishedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"interruptedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"resumedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"updatedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"terminatedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"reason":{"type":"string","nullable":true}}},"Execution.DeclarePipelineExecutionCommand-read":{"type":"object"},"Execution.DeclarePipelineExecutionCommand.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Execution.DeclarePipelineExecutionCommandInput":{"type":"object","required":["schedule","pipeline"],"properties":{"schedule":{"type":"string","format":"iri-reference"},"pipeline":{"type":"string","format":"iri-reference"}}},"Execution.DeclarePipelineExecutionCommandInput.jsonld":{"type":"object","required":["schedule","pipeline"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"schedule":{"type":"string","format":"iri-reference"},"pipeline":{"type":"string","format":"iri-reference"}}},"Execution.FinishPipelineExecutionCommand-read":{"type":"object"},"Execution.FinishPipelineExecutionCommand.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Execution.FinishPipelineExecutionCommandInput":{"type":"object"},"Execution.FinishPipelineExecutionCommandInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Execution.InterruptPipelineExecutionCommand-read":{"type":"object"},"Execution.InterruptPipelineExecutionCommand.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Execution.InterruptPipelineExecutionCommandInput":{"type":"object"},"Execution.InterruptPipelineExecutionCommandInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Execution.ResumePipelineExecutionCommand-read":{"type":"object"},"Execution.ResumePipelineExecutionCommand.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Execution.ResumePipelineExecutionCommandInput":{"type":"object"},"Execution.ResumePipelineExecutionCommandInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Execution.StartPipelineExecutionCommand-read":{"type":"object"},"Execution.StartPipelineExecutionCommand.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Execution.StartPipelineExecutionCommandInput":{"type":"object"},"Execution.StartPipelineExecutionCommandInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Execution.TerminatePipelineExecutionCommand-read":{"type":"object"},"Execution.TerminatePipelineExecutionCommand.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Execution.TerminatePipelineExecutionCommandInput":{"type":"object","required":["reason"],"properties":{"reason":{"type":"string"}}},"Execution.TerminatePipelineExecutionCommandInput.jsonld":{"type":"object","required":["reason"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"reason":{"type":"string"}}},"Execution.UpdatePipelineExecutionStateCommand-read":{"type":"object"},"Execution.UpdatePipelineExecutionStateCommand.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Execution.UpdatePipelineExecutionStateCommandInput":{"type":"object","required":["stepsUpdates"],"properties":{"stepsUpdates":{"$ref":"#\/components\/schemas\/UpdateList"}}},"Execution.UpdatePipelineExecutionStateCommandInput.jsonld":{"type":"object","required":["stepsUpdates"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"stepsUpdates":{"$ref":"#\/components\/schemas\/UpdateList.jsonld"}}},"Execution.jsonld-read":{"type":"object","required":["id","code","status","errors","scheduledAt","reason"],"properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"type":"string","format":"uuid"},"code":{"type":"string"},"status":{"default":"unknown","example":"unknown","type":"string"},"errors":{"type":"integer"},"scheduledAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"startedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"finishedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"interruptedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"resumedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"updatedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"terminatedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"reason":{"type":"string","nullable":true}}},"ExecutionAction":{"type":"object","required":["execution","id"],"properties":{"execution":{"type":"string","format":"iri-reference","nullable":true},"id":{"type":"string","format":"uuid"}}},"ExecutionAction.jsonld":{"type":"object","required":["execution","id"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"execution":{"type":"string","format":"iri-reference","nullable":true},"id":{"type":"string","format":"uuid"}}},"ExecutionPipeline":{"type":"object","required":["execution"],"properties":{"execution":{"type":"string","format":"iri-reference","nullable":true},"id":{"readOnly":true,"type":"string","format":"uuid"},"steps":{"type":"array","items":{"type":"string","format":"iri-reference"}}}},"ExecutionPipeline.jsonld":{"type":"object","required":["execution"],"properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"execution":{"type":"string","format":"iri-reference","nullable":true},"id":{"readOnly":true,"type":"string","format":"uuid"},"steps":{"type":"array","items":{"type":"string","format":"iri-reference"}}}},"ExecutionPipelineJob":{"type":"object","required":["job"],"properties":{"job":{"type":"string","format":"iri-reference","nullable":true},"id":{"readOnly":true,"type":"string","format":"uuid"},"steps":{"type":"array","items":{"type":"string","format":"iri-reference"}}}},"ExecutionPipelineJob.jsonld":{"type":"object","required":["job"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"job":{"type":"string","format":"iri-reference","nullable":true},"id":{"readOnly":true,"type":"string","format":"uuid"},"steps":{"type":"array","items":{"type":"string","format":"iri-reference"}}}},"ExecutionPipelineStep":{"type":"object","properties":{"id":{"readOnly":true,"type":"string","format":"uuid"},"pipeline":{"$ref":"#\/components\/schemas\/AbstractPipeline"},"metrics":{"type":"array","items":{"type":"string"}}},"required":["pipeline"]},"ExecutionPipelineStep.jsonld":{"type":"object","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"readOnly":true,"type":"string","format":"uuid"},"pipeline":{"$ref":"#\/components\/schemas\/AbstractPipeline.jsonld"},"metrics":{"type":"array","items":{"type":"string"}}},"required":["pipeline"]},"ExecutionWorkflow":{"type":"object","properties":{"id":{"readOnly":true,"type":"string","format":"uuid"},"jobs":{"type":"array","items":{"type":"string","format":"iri-reference"}},"execution":{"type":"string","format":"iri-reference"}},"required":["execution"]},"ExecutionWorkflow.jsonld":{"type":"object","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"readOnly":true,"type":"string","format":"uuid"},"jobs":{"type":"array","items":{"type":"string","format":"iri-reference"}},"execution":{"type":"string","format":"iri-reference"}},"required":["execution"]},"ExecutionWorkflowJob":{"type":"object","required":["id","workflow","pipeline","action"],"properties":{"id":{"type":"string","format":"uuid"},"workflow":{"type":"string","format":"iri-reference","nullable":true},"pipeline":{"type":"string","format":"iri-reference","nullable":true},"action":{"type":"string","format":"iri-reference","nullable":true}}},"ExecutionWorkflowJob.jsonld":{"type":"object","required":["id","workflow","pipeline","action"],"properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"type":"string","format":"uuid"},"workflow":{"type":"string","format":"iri-reference","nullable":true},"pipeline":{"type":"string","format":"iri-reference","nullable":true},"action":{"type":"string","format":"iri-reference","nullable":true}}},"ExecutionWorkflowJobAction":{"type":"object","required":["job","id"],"properties":{"job":{"type":"string","format":"iri-reference","nullable":true},"id":{"type":"string","format":"uuid"}}},"ExecutionWorkflowJobAction.jsonld":{"type":"object","required":["job","id"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"job":{"type":"string","format":"iri-reference","nullable":true},"id":{"type":"string","format":"uuid"}}},"Money":{"type":"object","properties":{"amount":{"readOnly":true,"description":"The amount.","$ref":"#\/components\/schemas\/BigDecimal"},"currency":{"readOnly":true,"description":"The currency.","$ref":"#\/components\/schemas\/Currency"},"context":{"readOnly":true,"description":"The context that defines the capability of this Money.","$ref":"#\/components\/schemas\/Context"},"minorAmount":{"readOnly":true,"description":"Returns the amount of this Money in minor units (cents) for the currency.","$ref":"#\/components\/schemas\/BigDecimal"},"unscaledAmount":{"readOnly":true,"description":"Returns a BigInteger containing the unscaled value (all digits) of this money.","$ref":"#\/components\/schemas\/BigInteger"},"amounts":{"readOnly":true,"description":"Required by interface MoneyContainer.","type":"array","items":{"$ref":"#\/components\/schemas\/BigNumber"}},"sign":{"readOnly":true,"description":"Returns the sign of this money.","type":"integer"},"zero":{"readOnly":true,"description":"Returns whether this money has zero value.","type":"boolean"},"negative":{"readOnly":true,"description":"Returns whether this money has a negative value.","type":"boolean"},"negativeOrZero":{"readOnly":true,"description":"Returns whether this money has a negative or zero value.","type":"boolean"},"positive":{"readOnly":true,"description":"Returns whether this money has a positive value.","type":"boolean"},"positiveOrZero":{"readOnly":true,"description":"Returns whether this money has a positive or zero value.","type":"boolean"}}},"Money.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"amount":{"readOnly":true,"description":"The amount.","$ref":"#\/components\/schemas\/BigDecimal.jsonld"},"currency":{"readOnly":true,"description":"The currency.","$ref":"#\/components\/schemas\/Currency.jsonld"},"context":{"readOnly":true,"description":"The context that defines the capability of this Money.","$ref":"#\/components\/schemas\/Context.jsonld"},"minorAmount":{"readOnly":true,"description":"Returns the amount of this Money in minor units (cents) for the currency.","$ref":"#\/components\/schemas\/BigDecimal.jsonld"},"unscaledAmount":{"readOnly":true,"description":"Returns a BigInteger containing the unscaled value (all digits) of this money.","$ref":"#\/components\/schemas\/BigInteger.jsonld"},"amounts":{"readOnly":true,"description":"Required by interface MoneyContainer.","type":"array","items":{"$ref":"#\/components\/schemas\/BigNumber.jsonld"}},"sign":{"readOnly":true,"description":"Returns the sign of this money.","type":"integer"},"zero":{"readOnly":true,"description":"Returns whether this money has zero value.","type":"boolean"},"negative":{"readOnly":true,"description":"Returns whether this money has a negative value.","type":"boolean"},"negativeOrZero":{"readOnly":true,"description":"Returns whether this money has a negative or zero value.","type":"boolean"},"positive":{"readOnly":true,"description":"Returns whether this money has a positive value.","type":"boolean"},"positiveOrZero":{"readOnly":true,"description":"Returns whether this money has a positive or zero value.","type":"boolean"}}},"Offer":{"type":"object","properties":{"options":{"type":"array","items":{"type":"string","format":"iri-reference"}},"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"sku":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":"string"},"price":{"$ref":"#\/components\/schemas\/Price"}},"required":["sku","name","slug","description","price"]},"Offer.jsonld":{"type":"object","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"options":{"type":"array","items":{"type":"string","format":"iri-reference"}},"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"sku":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":"string"},"price":{"$ref":"#\/components\/schemas\/Price.jsonld"}},"required":["sku","name","slug","description","price"]},"OnPremiseRequest-on-premise-request.read":{"type":"object","properties":{"id":{"readOnly":true,"type":"string","format":"uuid"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"format":"email","externalDocs":{"url":"http:\/\/schema.org\/email"},"type":"string"},"message":{"minLength":2,"maxLength":1500,"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["firstName","lastName","message"]},"OnPremiseRequest-on-premise-request.write":{"type":"object","required":["firstName","lastName","message"],"properties":{"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"format":"email","externalDocs":{"url":"http:\/\/schema.org\/email"},"type":"string"},"message":{"minLength":2,"maxLength":1500,"type":"string"}}},"OnPremiseRequest.jsonld-on-premise-request.read":{"type":"object","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"readOnly":true,"type":"string","format":"uuid"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"format":"email","externalDocs":{"url":"http:\/\/schema.org\/email"},"type":"string"},"message":{"minLength":2,"maxLength":1500,"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["firstName","lastName","message"]},"OnPremiseRequest.jsonld-on-premise-request.write":{"type":"object","required":["firstName","lastName","message"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"format":"email","externalDocs":{"url":"http:\/\/schema.org\/email"},"type":"string"},"message":{"minLength":2,"maxLength":1500,"type":"string"}}},"Option":{"type":"object","required":["offer","sku","name","slug","description","price"],"properties":{"offer":{"type":"string","format":"iri-reference","nullable":true},"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"sku":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":"string"},"price":{"$ref":"#\/components\/schemas\/Price"}}},"Option.jsonld":{"type":"object","required":["offer","sku","name","slug","description","price"],"properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"offer":{"type":"string","format":"iri-reference","nullable":true},"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"sku":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":"string"},"price":{"$ref":"#\/components\/schemas\/Price.jsonld"}}},"Organization":{"type":"object","properties":{"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"authorizations":{"type":"array","items":{"type":"string","format":"iri-reference"}},"name":{"type":"string"},"slug":{"type":"string"},"users":{"type":"array","items":{"type":"string","format":"iri-reference"}},"externalCollaborators":{"type":"array","items":{"type":"string","format":"iri-reference"}},"workspaces":{"type":"array","items":{"type":"string","format":"iri-reference"}}},"required":["name","slug"]},"Organization.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"authorizations":{"type":"array","items":{"type":"string","format":"iri-reference"}},"name":{"type":"string"},"slug":{"type":"string"},"users":{"type":"array","items":{"type":"string","format":"iri-reference"}},"externalCollaborators":{"type":"array","items":{"type":"string","format":"iri-reference"}},"workspaces":{"type":"array","items":{"type":"string","format":"iri-reference"}}},"required":["name","slug"]},"OrganizationId":{"type":"object"},"OrganizationId.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline-read":{"type":"object","properties":{"isSoftDeleted":{"type":"boolean"},"compiledAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"id":{"type":"string","format":"uuid"},"code":{"type":"string"},"label":{"type":"string"},"runtimeType":{"type":"string"},"runtime":{"type":"array","items":{"type":"string"}},"autoload":{"readOnly":true,"type":"array","items":{"type":"string"}},"packages":{"type":"array","items":{"type":"string"}},"repositories":{"type":"array","items":{"type":"string"}},"auths":{"type":"array","items":{"type":"string"}},"steps":{"type":"array","items":{"type":"string","format":"iri-reference"}}},"required":["id","code","label","runtimeType","repositories","auths"]},"Pipeline.AddAfterPipelineStepCommand-read":{"type":"object"},"Pipeline.AddAfterPipelineStepCommand.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.AddAfterPipelineStepCommandInput":{"type":"object","required":["code","label","configuration"],"properties":{"code":{"type":"string"},"label":{"type":"string"},"configuration":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"string"}}},"probes":{"type":"array","items":{"$ref":"#\/components\/schemas\/Probe"}}}},"Pipeline.AddAfterPipelineStepCommandInput.jsonld":{"type":"object","required":["code","label","configuration"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"code":{"type":"string"},"label":{"type":"string"},"configuration":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"string"}}},"probes":{"type":"array","items":{"$ref":"#\/components\/schemas\/Probe.jsonld"}}}},"Pipeline.AddBeforePipelineStepCommand-read":{"type":"object"},"Pipeline.AddBeforePipelineStepCommand.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.AddBeforePipelineStepCommandInput":{"type":"object","required":["code","label","configuration"],"properties":{"code":{"type":"string"},"label":{"type":"string"},"configuration":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"string"}}},"probes":{"type":"array","items":{"$ref":"#\/components\/schemas\/Probe"}}}},"Pipeline.AddBeforePipelineStepCommandInput.jsonld":{"type":"object","required":["code","label","configuration"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"code":{"type":"string"},"label":{"type":"string"},"configuration":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"string"}}},"probes":{"type":"array","items":{"$ref":"#\/components\/schemas\/Probe.jsonld"}}}},"Pipeline.AddPipelineComposerAuthCommand-read":{"type":"object"},"Pipeline.AddPipelineComposerAuthCommand.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.AddPipelineComposerAuthCommandInput":{"type":"object","properties":{"url":{"type":"string"},"token":{"type":"string"}}},"Pipeline.AddPipelineComposerAuthCommandInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"url":{"type":"string"},"token":{"type":"string"}}},"Pipeline.AddPipelineComposerPSR4AutoloadCommand-read":{"type":"object"},"Pipeline.AddPipelineComposerPSR4AutoloadCommand.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.AddPipelineComposerPSR4AutoloadCommandInput":{"type":"object","required":["namespace","paths"],"properties":{"namespace":{"type":"string"},"paths":{"type":"array","items":{"type":"string"}}}},"Pipeline.AddPipelineComposerPSR4AutoloadCommandInput.jsonld":{"type":"object","required":["namespace","paths"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"namespace":{"type":"string"},"paths":{"type":"array","items":{"type":"string"}}}},"Pipeline.AddPipelineComposerPackageCommand-read":{"type":"object"},"Pipeline.AddPipelineComposerPackageCommand.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.AddPipelineComposerPackageCommandInput":{"type":"object","properties":{"package":{"type":"string"},"version":{"type":"string"}}},"Pipeline.AddPipelineComposerPackageCommandInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"package":{"type":"string"},"version":{"type":"string"}}},"Pipeline.AddPipelineComposerRepositoryCommand-read":{"type":"object"},"Pipeline.AddPipelineComposerRepositoryCommand.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.AddPipelineComposerRepositoryCommandInput":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"url":{"type":"string"}}},"Pipeline.AddPipelineComposerRepositoryCommandInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"url":{"type":"string"}}},"Pipeline.AddPipelineStepProbCommandInput":{"type":"object","required":["probe"],"properties":{"probe":{"$ref":"#\/components\/schemas\/Probe"}}},"Pipeline.AddPipelineStepProbCommandInput.jsonld":{"type":"object","required":["probe"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"probe":{"$ref":"#\/components\/schemas\/Probe.jsonld"}}},"Pipeline.AddPipelineStepProbeCommand-read":{"type":"object"},"Pipeline.AddPipelineStepProbeCommand.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.AppendPipelineStepCommand-read":{"type":"object"},"Pipeline.AppendPipelineStepCommand.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.AppendPipelineStepCommandInput":{"type":"object","required":["code","label","configuration"],"properties":{"code":{"type":"string"},"label":{"type":"string"},"configuration":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"string"}}},"probes":{"type":"array","items":{"$ref":"#\/components\/schemas\/Probe"}}}},"Pipeline.AppendPipelineStepCommandInput.jsonld":{"type":"object","required":["code","label","configuration"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"code":{"type":"string"},"label":{"type":"string"},"configuration":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"string"}}},"probes":{"type":"array","items":{"$ref":"#\/components\/schemas\/Probe.jsonld"}}}},"Pipeline.CompilePipelineCommand-read":{"type":"object"},"Pipeline.CompilePipelineCommand.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.CompilePipelineCommandInput":{"type":"object"},"Pipeline.CompilePipelineCommandInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.DeclarePipelineCommand-read":{"type":"object"},"Pipeline.DeclarePipelineCommand.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.DeclarePipelineCommandInput":{"type":"object","required":["label","code","steps"],"properties":{"label":{"type":"string"},"code":{"type":"string"},"steps":{"type":"array","items":{"$ref":"#\/components\/schemas\/StepInput"}},"autoloads":{"type":"array","items":{"$ref":"#\/components\/schemas\/AutoloadInput"}},"packages":{"type":"object","additionalProperties":{"type":"string"}},"repositories":{"type":"array","items":{"$ref":"#\/components\/schemas\/AddPipelineComposerRepositoryCommandInput"}},"auths":{"type":"array","items":{"$ref":"#\/components\/schemas\/AddPipelineComposerAuthCommandInput"}}}},"Pipeline.DeclarePipelineCommandInput.jsonld":{"type":"object","required":["label","code","steps"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"label":{"type":"string"},"code":{"type":"string"},"steps":{"type":"array","items":{"$ref":"#\/components\/schemas\/StepInput.jsonld"}},"autoloads":{"type":"array","items":{"$ref":"#\/components\/schemas\/AutoloadInput.jsonld"}},"packages":{"type":"object","additionalProperties":{"type":"string"}},"repositories":{"type":"array","items":{"$ref":"#\/components\/schemas\/AddPipelineComposerRepositoryCommandInput.jsonld"}},"auths":{"type":"array","items":{"$ref":"#\/components\/schemas\/AddPipelineComposerAuthCommandInput.jsonld"}}}},"Pipeline.MoveAfterPipelineStepCommand-read":{"type":"object"},"Pipeline.MoveAfterPipelineStepCommand.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.MoveAfterPipelineStepCommandInput":{"type":"object","required":["code"],"properties":{"code":{"type":"string"}}},"Pipeline.MoveAfterPipelineStepCommandInput.jsonld":{"type":"object","required":["code"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"code":{"type":"string"}}},"Pipeline.MoveBeforePipelineStepCommand-read":{"type":"object"},"Pipeline.MoveBeforePipelineStepCommand.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.MoveBeforePipelineStepCommandInput":{"type":"object","required":["code"],"properties":{"code":{"type":"string"}}},"Pipeline.MoveBeforePipelineStepCommandInput.jsonld":{"type":"object","required":["code"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"code":{"type":"string"}}},"Pipeline.RemovePipelineComposerAuthCommand-read":{"type":"object"},"Pipeline.RemovePipelineComposerAuthCommand.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.RemovePipelineComposerAuthCommandInput":{"type":"object","properties":{"url":{"type":"string"}}},"Pipeline.RemovePipelineComposerAuthCommandInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"url":{"type":"string"}}},"Pipeline.RemovePipelineComposerPSR4AutoloadCommand-read":{"type":"object"},"Pipeline.RemovePipelineComposerPSR4AutoloadCommand.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.RemovePipelineComposerPSR4AutoloadCommandInput":{"type":"object","properties":{"namespace":{"type":"string"}}},"Pipeline.RemovePipelineComposerPSR4AutoloadCommandInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"namespace":{"type":"string"}}},"Pipeline.RemovePipelineComposerPackageCommand-read":{"type":"object"},"Pipeline.RemovePipelineComposerPackageCommand.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.RemovePipelineComposerPackageCommandInput":{"type":"object","properties":{"package":{"type":"string"}}},"Pipeline.RemovePipelineComposerPackageCommandInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"package":{"type":"string"}}},"Pipeline.RemovePipelineComposerRepositoryCommand-read":{"type":"object"},"Pipeline.RemovePipelineComposerRepositoryCommand.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.RemovePipelineComposerRepositoryCommandInput":{"type":"object","properties":{"name":{"type":"string"}}},"Pipeline.RemovePipelineComposerRepositoryCommandInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"type":"string"}}},"Pipeline.RemovePipelineStepProbeCommand-read":{"type":"object"},"Pipeline.RemovePipelineStepProbeCommand.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.ReorderPipelineStepsCommand-read":{"type":"object"},"Pipeline.ReorderPipelineStepsCommand.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.ReorderPipelineStepsCommandInput":{"type":"object","required":["codes"],"properties":{"codes":{"type":"array","items":{"type":"string"}}}},"Pipeline.ReorderPipelineStepsCommandInput.jsonld":{"type":"object","required":["codes"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"codes":{"type":"array","items":{"type":"string"}}}},"Pipeline.ReplacePipelineStepCommand-read":{"type":"object"},"Pipeline.ReplacePipelineStepCommand.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.ReplacePipelineStepCommandInput":{"type":"object","required":["code","label","configuration"],"properties":{"code":{"type":"string"},"label":{"type":"string"},"configuration":{"type":"array","items":{"type":"string"}},"probes":{"type":"array","items":{"$ref":"#\/components\/schemas\/Probe"}}}},"Pipeline.ReplacePipelineStepCommandInput.jsonld":{"type":"object","required":["code","label","configuration"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"code":{"type":"string"},"label":{"type":"string"},"configuration":{"type":"array","items":{"type":"string"}},"probes":{"type":"array","items":{"$ref":"#\/components\/schemas\/Probe.jsonld"}}}},"Pipeline.jsonld-read":{"type":"object","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"isSoftDeleted":{"type":"boolean"},"compiledAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"id":{"type":"string","format":"uuid"},"code":{"type":"string"},"label":{"type":"string"},"runtimeType":{"type":"string"},"runtime":{"type":"array","items":{"type":"string"}},"autoload":{"readOnly":true,"type":"array","items":{"type":"string"}},"packages":{"type":"array","items":{"type":"string"}},"repositories":{"type":"array","items":{"type":"string"}},"auths":{"type":"array","items":{"type":"string"}},"steps":{"type":"array","items":{"type":"string","format":"iri-reference"}}},"required":["id","code","label","runtimeType","repositories","auths"]},"PipelineId":{"type":"object"},"PipelineId.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"PipelineStep":{"type":"object","properties":{"id":{"readOnly":true,"type":"string","format":"uuid"},"code":{"type":"string"},"order":{"type":"integer"},"label":{"type":"string"},"pipeline":{"$ref":"#\/components\/schemas\/AbstractPipeline"},"probes":{"type":"array","items":{"type":"string","format":"iri-reference"}},"configuration":{"type":"array","items":{"type":"string"}}},"required":["code","order","label","pipeline","configuration"]},"PipelineStep.jsonld":{"type":"object","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"readOnly":true,"type":"string","format":"uuid"},"code":{"type":"string"},"order":{"type":"integer"},"label":{"type":"string"},"pipeline":{"$ref":"#\/components\/schemas\/AbstractPipeline.jsonld"},"probes":{"type":"array","items":{"type":"string","format":"iri-reference"}},"configuration":{"type":"array","items":{"type":"string"}}},"required":["code","order","label","pipeline","configuration"]},"PipelineStepProbe":{"type":"object","properties":{"id":{"readOnly":true,"type":"string","format":"uuid"},"code":{"type":"string"},"order":{"type":"integer"},"label":{"type":"string"},"step":{"type":"string","format":"iri-reference"}},"required":["code","order","label","step"]},"PipelineStepProbe.jsonld":{"type":"object","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"readOnly":true,"type":"string","format":"uuid"},"code":{"type":"string"},"order":{"type":"integer"},"label":{"type":"string"},"step":{"type":"string","format":"iri-reference"}},"required":["code","order","label","step"]},"Price":{"type":"object","properties":{"price":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/Money"}]}}},"Price.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"price":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/Money.jsonld"}]}}},"Probe":{"type":"object","properties":{"code":{"type":"string"},"label":{"type":"string"}}},"Probe.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"code":{"type":"string"},"label":{"type":"string"}}},"ReferralCode-referral-code.read":{"type":"object","properties":{"id":{"readOnly":true,"type":"string","format":"uuid"},"user":{"type":"string","format":"iri-reference","nullable":true},"code":{"type":"string"},"referralRequests":{"readOnly":true,"type":"array","items":{"type":"string","format":"iri-reference"}}}},"ReferralCode-referral-code.write":{"type":"object","properties":{"user":{"type":"string","format":"iri-reference","nullable":true}}},"ReferralCode.jsonld-referral-code.read":{"type":"object","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"readOnly":true,"type":"string","format":"uuid"},"user":{"type":"string","format":"iri-reference","nullable":true},"code":{"type":"string"},"referralRequests":{"readOnly":true,"type":"array","items":{"type":"string","format":"iri-reference"}}}},"ReferralCode.jsonld-referral-code.write":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"user":{"type":"string","format":"iri-reference","nullable":true}}},"ReferralRequest-referral-request.read":{"type":"object","properties":{"id":{"readOnly":true,"type":"string","format":"uuid"},"email":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"userName":{"type":"string"},"companyName":{"type":"string"},"creationDate":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time"},"referralCode":{"type":"string","format":"iri-reference","nullable":true},"approver":{"type":"string","format":"iri-reference","nullable":true},"status":{"default":"pending","example":"pending","type":"string"}},"required":["email","firstName","lastName","userName","companyName"]},"ReferralRequest.ReferralRequestInput":{"type":"object","properties":{"email":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"username":{"type":"string"},"companyName":{"type":"string"},"referralCode":{"type":"string"}}},"ReferralRequest.ReferralRequestInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"email":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"username":{"type":"string"},"companyName":{"type":"string"},"referralCode":{"type":"string"}}},"ReferralRequest.jsonld-referral-request.read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"readOnly":true,"type":"string","format":"uuid"},"email":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"userName":{"type":"string"},"companyName":{"type":"string"},"creationDate":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time"},"referralCode":{"type":"string","format":"iri-reference","nullable":true},"approver":{"type":"string","format":"iri-reference","nullable":true},"status":{"default":"pending","example":"pending","type":"string"}},"required":["email","firstName","lastName","userName","companyName"]},"Schedule":{"type":"object","required":["id","owner","workspace","organization"],"properties":{"id":{"type":"string","format":"uuid"},"type":{"default":"once","example":"once","type":"string"},"startAt":{"type":"string","format":"date-time","nullable":true},"interval":{"type":"string","format":"duration","nullable":true},"endAt":{"type":"string","format":"date-time","nullable":true},"recurrences":{"type":"integer","nullable":true},"executions":{"type":"array","items":{"type":"string","format":"iri-reference"}},"pipeline":{"type":"string","format":"iri-reference","nullable":true},"workflow":{"type":"string","format":"iri-reference","nullable":true},"owner":{"type":"string","format":"iri-reference"},"workspace":{"type":"string","format":"iri-reference"},"organization":{"type":"string","format":"iri-reference"}}},"Schedule.DeclarePipelineScheduleCommandInput":{"type":"object","required":["pipeline"],"properties":{"pipeline":{"type":"string","format":"iri-reference"},"type":{"type":"integer"},"date":{"type":"string","format":"date-time","nullable":true},"start":{"type":"string","format":"date-time","nullable":true},"interval":{"type":"string","nullable":true},"recurrences":{"type":"integer","nullable":true},"end":{"type":"string","format":"date-time","nullable":true}}},"Schedule.DeclarePipelineScheduleCommandInput.jsonld":{"type":"object","required":["pipeline"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"pipeline":{"type":"string","format":"iri-reference"},"type":{"type":"integer"},"date":{"type":"string","format":"date-time","nullable":true},"start":{"type":"string","format":"date-time","nullable":true},"interval":{"type":"string","nullable":true},"recurrences":{"type":"integer","nullable":true},"end":{"type":"string","format":"date-time","nullable":true}}},"Schedule.ScheduleCommandInterface":{"type":"object"},"Schedule.ScheduleCommandInterface.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Schedule.jsonld":{"type":"object","required":["id","owner","workspace","organization"],"properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"type":"string","format":"uuid"},"type":{"default":"once","example":"once","type":"string"},"startAt":{"type":"string","format":"date-time","nullable":true},"interval":{"type":"string","format":"duration","nullable":true},"endAt":{"type":"string","format":"date-time","nullable":true},"recurrences":{"type":"integer","nullable":true},"executions":{"type":"array","items":{"type":"string","format":"iri-reference"}},"pipeline":{"type":"string","format":"iri-reference","nullable":true},"workflow":{"type":"string","format":"iri-reference","nullable":true},"owner":{"type":"string","format":"iri-reference"},"workspace":{"type":"string","format":"iri-reference"},"organization":{"type":"string","format":"iri-reference"}}},"Secret":{"type":"object","properties":{"id":{"readOnly":true,"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":"string"},"organization":{"type":"string","format":"iri-reference"},"workspace":{"type":"string","format":"iri-reference","nullable":true},"contents":{"readOnly":true,"type":"object","additionalProperties":{"type":"string","nullable":true}},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable"}}},"Secret-edit":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}},"Secret-read":{"type":"object","properties":{"id":{"readOnly":true,"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string"},"contents":{"readOnly":true,"type":"object","additionalProperties":{"type":"string","nullable":true}},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable-read"}}},"Secret.ChangeSecretValueInput":{"type":"object","properties":{"id":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/SecretId"}]},"contents":{"type":"object","additionalProperties":{"type":"string"}},"organization":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/OrganizationId"}]},"workspace":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/WorkspaceId"}]},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable"}}},"Secret.ChangeSecretValueInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/SecretId.jsonld"}]},"contents":{"type":"object","additionalProperties":{"type":"string"}},"organization":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/OrganizationId.jsonld"}]},"workspace":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/WorkspaceId.jsonld"}]},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable.jsonld"}}},"Secret.CreateSecretInput":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"contents":{"type":"object","additionalProperties":{"type":"string"}},"organization":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/OrganizationId"}]},"workspace":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/WorkspaceId"}]},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable"}}},"Secret.CreateSecretInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"contents":{"type":"object","additionalProperties":{"type":"string"}},"organization":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/OrganizationId.jsonld"}]},"workspace":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/WorkspaceId.jsonld"}]},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable.jsonld"}}},"Secret.RemoveSecretValueInput":{"type":"object","properties":{"id":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/SecretId"}]},"contents":{"type":"array","items":{"type":"string"}},"organization":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/OrganizationId"}]},"workspace":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/WorkspaceId"}]},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable"}}},"Secret.RemoveSecretValueInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/SecretId.jsonld"}]},"contents":{"type":"array","items":{"type":"string"}},"organization":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/OrganizationId.jsonld"}]},"workspace":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/WorkspaceId.jsonld"}]},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable.jsonld"}}},"Secret.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"readOnly":true,"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":"string"},"organization":{"type":"string","format":"iri-reference"},"workspace":{"type":"string","format":"iri-reference","nullable":true},"contents":{"readOnly":true,"type":"object","additionalProperties":{"type":"string","nullable":true}},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable.jsonld"}}},"Secret.jsonld-edit":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"type":"string"},"description":{"type":"string"}}},"Secret.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"readOnly":true,"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string"},"contents":{"readOnly":true,"type":"object","additionalProperties":{"type":"string","nullable":true}},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable.jsonld-read"}}},"SecretId":{"type":"object"},"SecretId.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"StepInput":{"type":"object","required":["code","label","configuration"],"properties":{"code":{"type":"string"},"label":{"type":"string"},"configuration":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"string"}}},"probes":{"type":"array","items":{"$ref":"#\/components\/schemas\/Probe"}}}},"StepInput.jsonld":{"type":"object","required":["code","label","configuration"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"code":{"type":"string"},"label":{"type":"string"},"configuration":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"string"}}},"probes":{"type":"array","items":{"$ref":"#\/components\/schemas\/Probe.jsonld"}}}},"Subscription":{"type":"object","properties":{"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"organization":{"type":"string","format":"iri-reference"},"offer":{"type":"string","format":"iri-reference","nullable":true},"options":{"type":"array","items":{"type":"string","format":"iri-reference"}},"cost":{"$ref":"#\/components\/schemas\/Price"},"periods":{"type":"object","additionalProperties":{"type":"string","format":"iri-reference"}}},"required":["organization","cost"]},"Subscription.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"organization":{"type":"string","format":"iri-reference"},"offer":{"type":"string","format":"iri-reference","nullable":true},"options":{"type":"array","items":{"type":"string","format":"iri-reference"}},"cost":{"$ref":"#\/components\/schemas\/Price.jsonld"},"periods":{"type":"object","additionalProperties":{"type":"string","format":"iri-reference"}}},"required":["organization","cost"]},"SubscriptionOption":{"type":"object","properties":{"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"subscription":{"type":"string","format":"iri-reference","nullable":true},"option":{"type":"string","format":"iri-reference","nullable":true},"price":{"$ref":"#\/components\/schemas\/Price"}},"required":["subscription","option","price"]},"SubscriptionOption.jsonld":{"type":"object","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"subscription":{"type":"string","format":"iri-reference","nullable":true},"option":{"type":"string","format":"iri-reference","nullable":true},"price":{"$ref":"#\/components\/schemas\/Price.jsonld"}},"required":["subscription","option","price"]},"Traversable":{"type":"object"},"Traversable-read":{"type":"object"},"Traversable.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Traversable.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"UpdateList":{"type":"object","properties":{"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable"}}},"UpdateList.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable.jsonld"}}},"User":{"type":"object","properties":{"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"username":{"type":"string"},"email":{"format":"email","externalDocs":{"url":"http:\/\/schema.org\/email"},"type":"string"},"password":{"type":"string"},"enabled":{"type":"boolean"},"roles":{"type":"array","items":{"type":"array","items":{"type":"string"}}},"authorizations":{"type":"array","items":{"type":"string","format":"iri-reference"}},"organization":{"type":"string","format":"iri-reference"},"additionalOrganizations":{"type":"array","items":{"type":"string","format":"iri-reference"}},"workspaces":{"type":"array","items":{"type":"string","format":"iri-reference"}},"currentWorkspace":{"type":"string","format":"iri-reference","nullable":true},"currentOrganization":{"type":"string","format":"iri-reference","nullable":true},"referralCodes":{"readOnly":true,"type":"array","items":{"type":"string","format":"iri-reference"}},"acceptedReferralRequests":{"readOnly":true,"type":"array","items":{"type":"string","format":"iri-reference"}},"userIdentifier":{"readOnly":true,"type":"string"},"salt":{"readOnly":true,"type":"string"},"workspace":{"writeOnly":true,"type":"array","items":{"type":"string","format":"iri-reference"}}},"required":["firstName","lastName","username"]},"User.UserChangePasswordInput":{"type":"object","properties":{"currentPassword":{"type":"string"},"newPassword":{"type":"string"},"confirmPassword":{"type":"string"}}},"User.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"username":{"type":"string"},"email":{"format":"email","externalDocs":{"url":"http:\/\/schema.org\/email"},"type":"string"},"password":{"type":"string"},"enabled":{"type":"boolean"},"roles":{"type":"array","items":{"type":"array","items":{"type":"string"}}},"authorizations":{"type":"array","items":{"type":"string","format":"iri-reference"}},"organization":{"type":"string","format":"iri-reference"},"additionalOrganizations":{"type":"array","items":{"type":"string","format":"iri-reference"}},"workspaces":{"type":"array","items":{"type":"string","format":"iri-reference"}},"currentWorkspace":{"type":"string","format":"iri-reference","nullable":true},"currentOrganization":{"type":"string","format":"iri-reference","nullable":true},"referralCodes":{"readOnly":true,"type":"array","items":{"type":"string","format":"iri-reference"}},"acceptedReferralRequests":{"readOnly":true,"type":"array","items":{"type":"string","format":"iri-reference"}},"userIdentifier":{"readOnly":true,"type":"string"},"salt":{"readOnly":true,"type":"string"},"workspace":{"writeOnly":true,"type":"array","items":{"type":"string","format":"iri-reference"}}},"required":["firstName","lastName","username"]},"UserAuthorization":{"type":"object","properties":{"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"user":{"type":"string","format":"iri-reference","nullable":true},"workspace":{"type":"string","format":"iri-reference","nullable":true},"organization":{"type":"string","format":"iri-reference","nullable":true},"resource":{"type":"string"},"authorizations":{"type":"array","items":{"type":"string"}}},"required":["resource","authorizations"]},"UserAuthorization.jsonld":{"type":"object","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"user":{"type":"string","format":"iri-reference","nullable":true},"workspace":{"type":"string","format":"iri-reference","nullable":true},"organization":{"type":"string","format":"iri-reference","nullable":true},"resource":{"type":"string"},"authorizations":{"type":"array","items":{"type":"string"}}},"required":["resource","authorizations"]},"Variable-read":{"type":"object","properties":{"environment":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/Environment-read"}]},"name":{"type":"string"}}},"Variable.jsonld-read":{"type":"object","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"environment":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/Environment.jsonld-read"}]},"name":{"type":"string"}}},"VariableFromConfiguration-read":{"type":"object","properties":{"configuration":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/Configuration-read"}]},"item":{"type":"string"},"environment":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/Environment-read"}]},"name":{"type":"string"}}},"VariableFromConfiguration-write":{"type":"object"},"VariableFromConfiguration.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"configuration":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/Configuration.jsonld-read"}]},"item":{"type":"string"},"environment":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/Environment.jsonld-read"}]},"name":{"type":"string"}}},"VariableFromConfiguration.jsonld-write":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"VariableFromConfigurationInput":{"type":"object","properties":{"name":{"type":"string"},"from":{"type":"string"}}},"VariableFromConfigurationInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"type":"string"},"from":{"type":"string"}}},"VariableFromConstant-read":{"type":"object","properties":{"value":{"type":"string"},"environment":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/Environment-read"}]},"name":{"type":"string"}}},"VariableFromConstant-write":{"type":"object"},"VariableFromConstant.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"value":{"type":"string"},"environment":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/Environment.jsonld-read"}]},"name":{"type":"string"}}},"VariableFromConstant.jsonld-write":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"VariableFromConstantInput":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"}}},"VariableFromConstantInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"type":"string"},"value":{"type":"string"}}},"VariableFromSecret-read":{"type":"object","properties":{"secret":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/Secret-read"}]},"item":{"type":"string"},"environment":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/Environment-read"}]},"name":{"type":"string"}}},"VariableFromSecret-write":{"type":"object"},"VariableFromSecret.jsonld-read":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"secret":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/Secret.jsonld-read"}]},"item":{"type":"string"},"environment":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/Environment.jsonld-read"}]},"name":{"type":"string"}}},"VariableFromSecret.jsonld-write":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"VariableFromSecretInput":{"type":"object","properties":{"name":{"type":"string"},"from":{"type":"string"}}},"VariableFromSecretInput.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"type":"string"},"from":{"type":"string"}}},"Workflow-read":{"type":"object","required":["id","code","label"],"properties":{"id":{"type":"string","format":"uuid"},"code":{"type":"string"},"label":{"type":"string"},"jobs":{"type":"array","items":{"$ref":"#\/components\/schemas\/WorkflowJob-read"}}}},"Workflow.jsonld-read":{"type":"object","required":["id","code","label"],"properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"type":"string","format":"uuid"},"code":{"type":"string"},"label":{"type":"string"},"jobs":{"type":"array","items":{"$ref":"#\/components\/schemas\/WorkflowJob.jsonld-read"}}}},"WorkflowJob-read":{"type":"object","required":["workflow"],"properties":{"workflow":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/Workflow-read"}]},"pipeline":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/WorkflowJobPipeline-read"}]},"action":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/WorkflowJobAction-read"}]}}},"WorkflowJob.jsonld-read":{"type":"object","required":["workflow"],"properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"workflow":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/Workflow.jsonld-read"}]},"pipeline":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/WorkflowJobPipeline.jsonld-read"}]},"action":{"nullable":true,"anyOf":[{"$ref":"#\/components\/schemas\/WorkflowJobAction.jsonld-read"}]}}},"WorkflowJobAction":{"type":"object","required":["job","id"],"properties":{"job":{"type":"string","format":"iri-reference","nullable":true},"id":{"type":"string","format":"uuid"}}},"WorkflowJobAction-read":{"type":"object","required":["id"],"properties":{"id":{"type":"string","format":"uuid"}}},"WorkflowJobAction.jsonld":{"type":"object","required":["job","id"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"job":{"type":"string","format":"iri-reference","nullable":true},"id":{"type":"string","format":"uuid"}}},"WorkflowJobAction.jsonld-read":{"type":"object","required":["id"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"type":"string","format":"uuid"}}},"WorkflowJobPipeline":{"type":"object","required":["job","id","code","label","runtimeType","repositories","auths"],"properties":{"job":{"type":"string","format":"iri-reference","nullable":true},"id":{"type":"string","format":"uuid"},"code":{"type":"string"},"label":{"type":"string"},"runtimeType":{"type":"string"},"runtime":{"type":"array","items":{"type":"string"}},"autoload":{"readOnly":true,"type":"array","items":{"type":"string"}},"packages":{"type":"array","items":{"type":"string"}},"repositories":{"type":"array","items":{"type":"string"}},"auths":{"type":"array","items":{"type":"string"}},"steps":{"type":"array","items":{"type":"string","format":"iri-reference"}}}},"WorkflowJobPipeline-read":{"type":"object","required":["id","code","label","runtimeType","repositories","auths"],"properties":{"id":{"type":"string","format":"uuid"},"code":{"type":"string"},"label":{"type":"string"},"runtimeType":{"type":"string"},"runtime":{"type":"array","items":{"type":"string"}},"autoload":{"readOnly":true,"type":"array","items":{"type":"string"}},"packages":{"type":"array","items":{"type":"string"}},"repositories":{"type":"array","items":{"type":"string"}},"auths":{"type":"array","items":{"type":"string"}},"steps":{"type":"array","items":{"type":"string","format":"iri-reference"}}}},"WorkflowJobPipeline.jsonld":{"type":"object","required":["job","id","code","label","runtimeType","repositories","auths"],"properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"job":{"type":"string","format":"iri-reference","nullable":true},"id":{"type":"string","format":"uuid"},"code":{"type":"string"},"label":{"type":"string"},"runtimeType":{"type":"string"},"runtime":{"type":"array","items":{"type":"string"}},"autoload":{"readOnly":true,"type":"array","items":{"type":"string"}},"packages":{"type":"array","items":{"type":"string"}},"repositories":{"type":"array","items":{"type":"string"}},"auths":{"type":"array","items":{"type":"string"}},"steps":{"type":"array","items":{"type":"string","format":"iri-reference"}}}},"WorkflowJobPipeline.jsonld-read":{"type":"object","required":["id","code","label","runtimeType","repositories","auths"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"type":"string","format":"uuid"},"code":{"type":"string"},"label":{"type":"string"},"runtimeType":{"type":"string"},"runtime":{"type":"array","items":{"type":"string"}},"autoload":{"readOnly":true,"type":"array","items":{"type":"string"}},"packages":{"type":"array","items":{"type":"string"}},"repositories":{"type":"array","items":{"type":"string"}},"auths":{"type":"array","items":{"type":"string"}},"steps":{"type":"array","items":{"type":"string","format":"iri-reference"}}}},"Workspace":{"type":"object","properties":{"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"organization":{"type":"string","format":"iri-reference","nullable":true},"authorizations":{"type":"array","items":{"type":"string","format":"iri-reference"}},"users":{"type":"array","items":{"type":"string","format":"iri-reference"}}},"required":["name","slug","organization"]},"Workspace.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"organization":{"type":"string","format":"iri-reference","nullable":true},"authorizations":{"type":"array","items":{"type":"string","format":"iri-reference"}},"users":{"type":"array","items":{"type":"string","format":"iri-reference"}}},"required":["name","slug","organization"]},"WorkspaceId":{"type":"object"},"WorkspaceId.jsonld":{"type":"object","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"ForgotPassword:reset":{"type":"object","required":["password"],"properties":{"password":{"type":"string"}}},"ForgotPassword:validate":{"type":"object"},"ForgotPassword:request":{"type":"object","required":["email"],"properties":{"email":{"type":"string"}}},"Token":{"type":"object","properties":{"token":{"type":"string","readOnly":true}}},"Credentials":{"type":"object","properties":{"username":{"type":"string","example":"johndoe"},"password":{"type":"string","example":"password"},"organization":{"type":"string","example":"00000000-0000-0000-0000-000000000000"},"workspace":{"type":"string","example":"00000000-0000-0000-0000-000000000000"}},"required":["username","password"]},"Token:update":{"type":"object","properties":{"token":{"type":"string","readOnly":true}}},"Credentials:update":{"type":"object","properties":{"organization":{"type":"string","example":"b56594c3-4d59-4a4a-93b4-3f44b0d785b7"},"workspace":{"type":"string","example":"b56594c3-4d59-4a4a-93b4-3f44b0d785b7"}}}},"responses":{},"parameters":{},"examples":{},"requestBodies":{},"headers":{},"securitySchemes":{"apiKey":{"type":"apiKey","description":"Value for the Authorization header parameter.","name":"Authorization","in":"header"}}},"security":[{"apiKey":[]}],"tags":[]} \ No newline at end of file +{"openapi":"3.0.0","info":{"title":"Gyroscops API","description":"","version":"1.0.0"},"servers":[{"url":"\/","description":""}],"paths":{"\/authentication\/authentication\/organizations\/{id}\/external-collaborators":{"put":{"operationId":"put_external_collaboratorsOrganizationItem","tags":["Organization"],"responses":{"200":{"description":"Organization resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Organization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Organization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Organization"}}},"links":{"GetOrganizationItem":{"operationId":"getOrganizationItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/organizations\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Replaces the Organization resource.","description":"Replaces the Organization resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Organization resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Organization.jsonld-add_collaborators"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Organization-add_collaborators"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Organization-add_collaborators"}}},"required":true},"deprecated":false},"parameters":[]},"\/authentication\/forgot-password\/":{"ref":"ForgotPassword","post":{"operationId":"postForgotPassword","tags":["Forgot password"],"responses":{"204":{"description":"Valid email address, no matter if user exists or not"},"400":{"description":"Missing email parameter or invalid format"}},"summary":"Provides a token through email in order to reset a user's password","description":"","parameters":[],"requestBody":{"description":"Request a new password","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ForgotPassword:request"}}},"required":false},"deprecated":false},"parameters":[]},"\/authentication\/forgot-password\/{token}":{"ref":"ForgotPassword","get":{"operationId":"getForgotPassword","tags":["Forgot password"],"responses":{"200":{"description":"Authenticated user","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ForgotPassword:validate"}}}},"404":{"description":"Token not found or expired"}},"summary":"Validates the token sent by email to reset the user's password","description":"","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"deprecated":false},"post":{"operationId":"postForgotPasswordToken","tags":["Forgot password"],"responses":{"204":{"description":"Email address format valid, no matter if user exists or not"},"400":{"description":"Missing password parameter"},"404":{"description":"Token not found"}},"summary":"Resets user password from token sent by email","description":"","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Reset password","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ForgotPassword:reset"}}},"required":false},"deprecated":false},"parameters":[]},"\/authentication\/me":{"get":{"operationId":"meUserCollection","tags":["User"],"responses":{"200":{"description":"User collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/User.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/User"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/User"}}}}}},"summary":"Get the current user","description":"Get the current user","parameters":[],"deprecated":false},"parameters":[]},"\/authentication\/offers\/{id}\/options":{"get":{"operationId":"api_subscription_offers_options_get_subresourceSubscriptionOfferSubresource","tags":["Option","SubscriptionOffer"],"responses":{"200":{"description":"SubscriptionOffer resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Option.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Option"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Option"}}}}}},"summary":"Retrieves a SubscriptionOffer resource.","description":"Retrieves a SubscriptionOffer resource.","parameters":[{"name":"id","in":"path","description":"SubscriptionOffer identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/authentication\/organizations":{"get":{"operationId":"getOrganizationCollection","tags":["Organization"],"responses":{"200":{"description":"Organization collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Organization.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Organization"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Organization"}}}}}},"summary":"Retrieves the collection of Organization resources.","description":"Retrieves the collection of Organization resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"postOrganizationCollection","tags":["Organization"],"responses":{"201":{"description":"Organization resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Organization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Organization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Organization"}}},"links":{"GetOrganizationItem":{"operationId":"getOrganizationItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/organizations\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Organization resource.","description":"Creates a Organization resource.","parameters":[],"requestBody":{"description":"The new Organization resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Organization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Organization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Organization"}}},"required":true},"deprecated":false},"parameters":[]},"\/authentication\/organizations\/{id}":{"get":{"operationId":"getOrganizationItem","tags":["Organization"],"responses":{"200":{"description":"Organization resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Organization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Organization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Organization"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Organization resource.","description":"Retrieves a Organization resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"put":{"operationId":"putOrganizationItem","tags":["Organization"],"responses":{"200":{"description":"Organization resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Organization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Organization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Organization"}}},"links":{"GetOrganizationItem":{"operationId":"getOrganizationItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/organizations\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Replaces the Organization resource.","description":"Replaces the Organization resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Organization resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Organization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Organization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Organization"}}},"required":true},"deprecated":false},"delete":{"operationId":"deleteOrganizationItem","tags":["Organization"],"responses":{"204":{"description":"Organization resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the Organization resource.","description":"Removes the Organization resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"patchOrganizationItem","tags":["Organization"],"responses":{"200":{"description":"Organization resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Organization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Organization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Organization"}}},"links":{"GetOrganizationItem":{"operationId":"getOrganizationItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/organizations\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the Organization resource.","description":"Updates the Organization resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Organization resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/Organization"}}},"required":true},"deprecated":false},"parameters":[]},"\/authentication\/organizations\/{id}\/authorizations":{"get":{"operationId":"api_organizations_authorizations_get_subresourceOrganizationSubresource","tags":["UserAuthorization","Organization"],"responses":{"200":{"description":"Organization resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/UserAuthorization.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/UserAuthorization"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/UserAuthorization"}}}}}},"summary":"Retrieves a Organization resource.","description":"Retrieves a Organization resource.","parameters":[{"name":"id","in":"path","description":"Organization identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/authentication\/organizations\/{id}\/external-collaborators":{"get":{"operationId":"api_organizations_external_collaborators_get_subresourceOrganizationSubresource","tags":["User","Organization"],"responses":{"200":{"description":"Organization resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/User.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/User"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/User"}}}}}},"summary":"Retrieves a Organization resource.","description":"Retrieves a Organization resource.","parameters":[{"name":"id","in":"path","description":"Organization identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/authentication\/organizations\/{id}\/users":{"get":{"operationId":"api_organizations_users_get_subresourceOrganizationSubresource","tags":["User","Organization"],"responses":{"200":{"description":"Organization resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/User.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/User"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/User"}}}}}},"summary":"Retrieves a Organization resource.","description":"Retrieves a Organization resource.","parameters":[{"name":"id","in":"path","description":"Organization identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/authentication\/organizations\/{id}\/workspaces":{"get":{"operationId":"api_organizations_workspaces_get_subresourceOrganizationSubresource","tags":["Workspace","Organization"],"responses":{"200":{"description":"Organization resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Workspace.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Workspace"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Workspace"}}}}}},"summary":"Retrieves a Organization resource.","description":"Retrieves a Organization resource.","parameters":[{"name":"id","in":"path","description":"Organization identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/authentication\/subscription-offers":{"get":{"operationId":"getSubscriptionOfferCollection","tags":["SubscriptionOffer"],"responses":{"200":{"description":"SubscriptionOffer collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/SubscriptionOffer.jsonld-read"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/SubscriptionOffer-read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/SubscriptionOffer-read"}}}}}},"summary":"Retrieves the collection of SubscriptionOffer resources.","description":"Retrieves the collection of SubscriptionOffer resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/authentication\/subscription-offers\/{id}":{"get":{"operationId":"getSubscriptionOfferItem","tags":["SubscriptionOffer"],"responses":{"200":{"description":"SubscriptionOffer resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/SubscriptionOffer.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SubscriptionOffer-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/SubscriptionOffer-read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a SubscriptionOffer resource.","description":"Retrieves a SubscriptionOffer resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"put":{"operationId":"putSubscriptionOfferItem","tags":["SubscriptionOffer"],"responses":{"200":{"description":"SubscriptionOffer resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/SubscriptionOffer.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SubscriptionOffer-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/SubscriptionOffer-read"}}},"links":{"GetSubscriptionOfferItem":{"operationId":"getSubscriptionOfferItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/subscription-offers\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Replaces the SubscriptionOffer resource.","description":"Replaces the SubscriptionOffer resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated SubscriptionOffer resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/SubscriptionOffer.jsonld-write"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SubscriptionOffer-write"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/SubscriptionOffer-write"}}},"required":true},"deprecated":false},"delete":{"operationId":"deleteSubscriptionOfferItem","tags":["SubscriptionOffer"],"responses":{"204":{"description":"SubscriptionOffer resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the SubscriptionOffer resource.","description":"Removes the SubscriptionOffer resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"patchSubscriptionOfferItem","tags":["SubscriptionOffer"],"responses":{"200":{"description":"SubscriptionOffer resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/SubscriptionOffer.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SubscriptionOffer-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/SubscriptionOffer-read"}}},"links":{"GetSubscriptionOfferItem":{"operationId":"getSubscriptionOfferItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/subscription-offers\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the SubscriptionOffer resource.","description":"Updates the SubscriptionOffer resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated SubscriptionOffer resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/SubscriptionOffer-write"}}},"required":true},"deprecated":false},"parameters":[]},"\/authentication\/subscriptions":{"get":{"operationId":"getSubscriptionCollection","tags":["Subscription"],"responses":{"200":{"description":"Subscription collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Subscription.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Subscription"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Subscription"}}}}}},"summary":"Retrieves the collection of Subscription resources.","description":"Retrieves the collection of Subscription resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"postSubscriptionCollection","tags":["Subscription"],"responses":{"201":{"description":"Subscription resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Subscription.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Subscription"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Subscription"}}},"links":{"GetSubscriptionItem":{"operationId":"getSubscriptionItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/subscriptions\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Subscription resource.","description":"Creates a Subscription resource.","parameters":[],"requestBody":{"description":"The new Subscription resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Subscription.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Subscription"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Subscription"}}},"required":true},"deprecated":false},"parameters":[]},"\/authentication\/subscriptions\/{id}":{"get":{"operationId":"getSubscriptionItem","tags":["Subscription"],"responses":{"200":{"description":"Subscription resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Subscription.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Subscription"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Subscription"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Subscription resource.","description":"Retrieves a Subscription resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"put":{"operationId":"putSubscriptionItem","tags":["Subscription"],"responses":{"200":{"description":"Subscription resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Subscription.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Subscription"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Subscription"}}},"links":{"GetSubscriptionItem":{"operationId":"getSubscriptionItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/subscriptions\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Replaces the Subscription resource.","description":"Replaces the Subscription resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Subscription resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Subscription.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Subscription"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Subscription"}}},"required":true},"deprecated":false},"delete":{"operationId":"deleteSubscriptionItem","tags":["Subscription"],"responses":{"204":{"description":"Subscription resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the Subscription resource.","description":"Removes the Subscription resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"patchSubscriptionItem","tags":["Subscription"],"responses":{"200":{"description":"Subscription resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Subscription.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Subscription"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Subscription"}}},"links":{"GetSubscriptionItem":{"operationId":"getSubscriptionItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/subscriptions\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the Subscription resource.","description":"Updates the Subscription resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Subscription resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/Subscription"}}},"required":true},"deprecated":false},"parameters":[]},"\/authentication\/subscriptions\/{id}\/offer":{"get":{"operationId":"api_subscriptions_offer_get_subresourceSubscriptionSubresource","tags":["SubscriptionOffer","Subscription"],"responses":{"200":{"description":"Subscription resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/SubscriptionOffer.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SubscriptionOffer-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/SubscriptionOffer-read"}}}}},"summary":"Retrieves a Subscription resource.","description":"Retrieves a Subscription resource.","parameters":[{"name":"id","in":"path","description":"Subscription identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/authentication\/subscriptions\/{id}\/options":{"get":{"operationId":"api_subscriptions_options_get_subresourceSubscriptionSubresource","tags":["SubscriptionOption","Subscription"],"responses":{"200":{"description":"Subscription resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/SubscriptionOption.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/SubscriptionOption"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/SubscriptionOption"}}}}}},"summary":"Retrieves a Subscription resource.","description":"Retrieves a Subscription resource.","parameters":[{"name":"id","in":"path","description":"Subscription identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/authentication\/subscriptions\/{id}\/organization":{"get":{"operationId":"api_subscriptions_organization_get_subresourceSubscriptionSubresource","tags":["Organization","Subscription"],"responses":{"200":{"description":"Subscription resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Organization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Organization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Organization"}}}}},"summary":"Retrieves a Subscription resource.","description":"Retrieves a Subscription resource.","parameters":[{"name":"id","in":"path","description":"Subscription identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/authentication\/token":{"ref":"JWT Token","put":{"tags":["Token"],"responses":{"200":{"description":"Update JWT Token","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Token:update"}}}}},"summary":"Update scope of token","description":"","parameters":[],"requestBody":{"description":"Update JWT Token","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Credentials:update"}}},"required":false},"deprecated":false},"post":{"operationId":"postCredentialsItem","tags":["Token"],"responses":{"200":{"description":"Get JWT token","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Token"}}}}},"summary":"Get JWT token to login.","description":"","parameters":[],"requestBody":{"description":"Generate new JWT Token","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Credentials"}}},"required":false},"deprecated":false},"parameters":[]},"\/authentication\/user-authorization\/{id}":{"get":{"operationId":"getUserAuthorizationItem","tags":["UserAuthorization"],"responses":{"200":{"description":"UserAuthorization resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a UserAuthorization resource.","description":"Retrieves a UserAuthorization resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"put":{"operationId":"putUserAuthorizationItem","tags":["UserAuthorization"],"responses":{"200":{"description":"UserAuthorization resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization"}}},"links":{"GetUserAuthorizationItem":{"operationId":"getUserAuthorizationItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/user-authorization\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Replaces the UserAuthorization resource.","description":"Replaces the UserAuthorization resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated UserAuthorization resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization"}}},"required":true},"deprecated":false},"delete":{"operationId":"deleteUserAuthorizationItem","tags":["UserAuthorization"],"responses":{"204":{"description":"UserAuthorization resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the UserAuthorization resource.","description":"Removes the UserAuthorization resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"patchUserAuthorizationItem","tags":["UserAuthorization"],"responses":{"200":{"description":"UserAuthorization resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization"}}},"links":{"GetUserAuthorizationItem":{"operationId":"getUserAuthorizationItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/user-authorization\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the UserAuthorization resource.","description":"Updates the UserAuthorization resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated UserAuthorization resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization"}}},"required":true},"deprecated":false},"parameters":[]},"\/authentication\/user-authorizations":{"get":{"operationId":"getUserAuthorizationCollection","tags":["UserAuthorization"],"responses":{"200":{"description":"UserAuthorization collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/UserAuthorization.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/UserAuthorization"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/UserAuthorization"}}}}}},"summary":"Retrieves the collection of UserAuthorization resources.","description":"Retrieves the collection of UserAuthorization resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"postUserAuthorizationCollection","tags":["UserAuthorization"],"responses":{"201":{"description":"UserAuthorization resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization"}}},"links":{"GetUserAuthorizationItem":{"operationId":"getUserAuthorizationItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/user-authorization\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a UserAuthorization resource.","description":"Creates a UserAuthorization resource.","parameters":[],"requestBody":{"description":"The new UserAuthorization resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/UserAuthorization"}}},"required":true},"deprecated":false},"parameters":[]},"\/authentication\/users":{"get":{"operationId":"getUserCollection","tags":["User"],"responses":{"200":{"description":"User collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/User.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/User"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/User"}}}}}},"summary":"Retrieves the collection of User resources.","description":"Retrieves the collection of User resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"postUserCollection","tags":["User"],"responses":{"201":{"description":"User resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}}},"links":{"GetUserItem":{"operationId":"getUserItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/users\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a User resource.","description":"Creates a User resource.","parameters":[],"requestBody":{"description":"The new User resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}}},"required":true},"deprecated":false},"parameters":[]},"\/authentication\/users\/{id}":{"get":{"operationId":"getUserItem","tags":["User"],"responses":{"200":{"description":"User resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a User resource.","description":"Retrieves a User resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"put":{"operationId":"putUserItem","tags":["User"],"responses":{"200":{"description":"User resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}}},"links":{"GetUserItem":{"operationId":"getUserItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/users\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Replaces the User resource.","description":"Replaces the User resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated User resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}}},"required":true},"deprecated":false},"delete":{"operationId":"deleteUserItem","tags":["User"],"responses":{"204":{"description":"User resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the User resource.","description":"Removes the User resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"patchUserItem","tags":["User"],"responses":{"200":{"description":"User resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}}},"links":{"GetUserItem":{"operationId":"getUserItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/users\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the User resource.","description":"Updates the User resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated User resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/User"}}},"required":true},"deprecated":false},"parameters":[]},"\/authentication\/users\/{id}\/change-password":{"patch":{"operationId":"change_passwordUserItem","tags":["User"],"responses":{"200":{"description":"User resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}}},"links":{"GetUserItem":{"operationId":"getUserItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/users\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the User resource.","description":"Updates the User resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated User resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/User.UserChangePasswordInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/authentication\/workspaces":{"get":{"operationId":"getWorkspaceCollection","tags":["Workspace"],"responses":{"200":{"description":"Workspace collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Workspace.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Workspace"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Workspace"}}}}}},"summary":"Retrieves the collection of Workspace resources.","description":"Retrieves the collection of Workspace resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"postWorkspaceCollection","tags":["Workspace"],"responses":{"201":{"description":"Workspace resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workspace.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}}},"links":{"GetWorkspaceItem":{"operationId":"getWorkspaceItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/workspaces\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Workspace resource.","description":"Creates a Workspace resource.","parameters":[],"requestBody":{"description":"The new Workspace resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workspace.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}}},"required":true},"deprecated":false},"parameters":[]},"\/authentication\/workspaces\/{id}":{"get":{"operationId":"getWorkspaceItem","tags":["Workspace"],"responses":{"200":{"description":"Workspace resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workspace.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Workspace resource.","description":"Retrieves a Workspace resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"put":{"operationId":"putWorkspaceItem","tags":["Workspace"],"responses":{"200":{"description":"Workspace resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workspace.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}}},"links":{"GetWorkspaceItem":{"operationId":"getWorkspaceItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/workspaces\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Replaces the Workspace resource.","description":"Replaces the Workspace resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Workspace resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workspace.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}}},"required":true},"deprecated":false},"delete":{"operationId":"deleteWorkspaceItem","tags":["Workspace"],"responses":{"204":{"description":"Workspace resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the Workspace resource.","description":"Removes the Workspace resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"patchWorkspaceItem","tags":["Workspace"],"responses":{"200":{"description":"Workspace resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workspace.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}}},"links":{"GetWorkspaceItem":{"operationId":"getWorkspaceItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/authentication\/workspaces\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the Workspace resource.","description":"Updates the Workspace resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Workspace resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}}},"required":true},"deprecated":false},"parameters":[]},"\/authentication\/workspaces\/{id}\/authorizations":{"get":{"operationId":"api_workspaces_authorizations_get_subresourceWorkspaceSubresource","tags":["UserAuthorization","Workspace"],"responses":{"200":{"description":"Workspace resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/UserAuthorization.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/UserAuthorization"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/UserAuthorization"}}}}}},"summary":"Retrieves a Workspace resource.","description":"Retrieves a Workspace resource.","parameters":[{"name":"id","in":"path","description":"Workspace identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/authentication\/workspaces\/{id}\/users":{"get":{"operationId":"api_workspaces_users_get_subresourceWorkspaceSubresource","tags":["User","Workspace"],"responses":{"200":{"description":"Workspace resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/User.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/User"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/User"}}}}}},"summary":"Retrieves a Workspace resource.","description":"Retrieves a Workspace resource.","parameters":[{"name":"id","in":"path","description":"Workspace identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/environment\/configurations":{"get":{"operationId":"getConfigurationCollection","tags":["Configuration"],"responses":{"200":{"description":"Configuration collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Configuration.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Configuration"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Configuration"}}}}}},"summary":"Retrieves the collection of Configuration resources.","description":"Retrieves the collection of Configuration resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"postConfigurationCollection","tags":["Configuration"],"responses":{"201":{"description":"Configuration resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Configuration.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Configuration"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Configuration"}}},"links":{"GetConfigurationItem":{"operationId":"getConfigurationItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/environment\/configurations\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Configuration resource.","description":"Creates a Configuration resource.","parameters":[],"requestBody":{"description":"The new Configuration resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Configuration.CreateConfigurationInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Configuration.CreateConfigurationInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Configuration.CreateConfigurationInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/environment\/configurations\/{id}":{"get":{"operationId":"getConfigurationItem","tags":["Configuration"],"responses":{"200":{"description":"Configuration resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Configuration.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Configuration"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Configuration"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Configuration resource.","description":"Retrieves a Configuration resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"put":{"operationId":"editConfigurationItem","tags":["Configuration"],"responses":{"200":{"description":"Configuration resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Configuration.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Configuration"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Configuration"}}},"links":{"GetConfigurationItem":{"operationId":"getConfigurationItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/environment\/configurations\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Replaces the Configuration resource.","description":"Replaces the Configuration resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Configuration resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Configuration.jsonld-edit"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Configuration-edit"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Configuration-edit"}}},"required":true},"deprecated":false},"delete":{"operationId":"deleteConfigurationItem","tags":["Configuration"],"responses":{"204":{"description":"Configuration resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the Configuration resource.","description":"Removes the Configuration resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/environment\/configurations\/{id}\/change":{"put":{"operationId":"change_valuesConfigurationItem","tags":["Configuration"],"responses":{"200":{"description":"Configuration resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Configuration.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Configuration"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Configuration"}}},"links":{"GetConfigurationItem":{"operationId":"getConfigurationItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/environment\/configurations\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Change the configuration values inside an existing configurations storage","description":"Change the configuration values inside an existing configurations storage","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Configuration resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Configuration.ChangeConfigurationValueInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Configuration.ChangeConfigurationValueInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Configuration.ChangeConfigurationValueInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/environment\/configurations\/{id}\/remove":{"put":{"operationId":"remove_valuesConfigurationItem","tags":["Configuration"],"responses":{"200":{"description":"Configuration resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Configuration.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Configuration"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Configuration"}}},"links":{"GetConfigurationItem":{"operationId":"getConfigurationItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/environment\/configurations\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Remove some configuration values inside an existing configurations storage","description":"Remove some configuration values inside an existing configurations storage","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Configuration resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Configuration.RemoveConfigurationValueInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Configuration.RemoveConfigurationValueInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Configuration.RemoveConfigurationValueInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/environment\/environments":{"get":{"operationId":"getEnvironmentCollection","tags":["Environment"],"responses":{"200":{"description":"Environment collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Environment.jsonld-read"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Environment-read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Environment-read"}}}}}},"summary":"Retrieves the collection of Environment resources.","description":"Retrieves the collection of Environment resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"postEnvironmentCollection","tags":["Environment"],"responses":{"201":{"description":"Environment resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Environment.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Environment-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Environment-read"}}},"links":{"GetEnvironmentItem":{"operationId":"getEnvironmentItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/environment\/environments\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Environment resource.","description":"Creates a Environment resource.","parameters":[],"requestBody":{"description":"The new Environment resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Environment.CreateEnvironmentInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Environment.CreateEnvironmentInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Environment.CreateEnvironmentInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/environment\/environments\/{id}":{"get":{"operationId":"getEnvironmentItem","tags":["Environment"],"responses":{"200":{"description":"Environment resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Environment.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Environment-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Environment-read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Environment resource.","description":"Retrieves a Environment resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"put":{"operationId":"editEnvironmentItem","tags":["Environment"],"responses":{"200":{"description":"Environment resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Environment.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Environment-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Environment-read"}}},"links":{"GetEnvironmentItem":{"operationId":"getEnvironmentItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/environment\/environments\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Replaces the Environment resource.","description":"Replaces the Environment resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Environment resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Environment.jsonld-write"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Environment-write"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Environment-write"}}},"required":true},"deprecated":false},"delete":{"operationId":"deleteEnvironmentItem","tags":["Environment"],"responses":{"204":{"description":"Environment resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the Environment resource.","description":"Removes the Environment resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/environment\/environments\/{id}\/add-variables-from-configuration\/{configuration}":{"put":{"operationId":"add_variables_from_configurationEnvironmentItem","tags":["Environment"],"responses":{"200":{"description":"Environment resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Environment.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Environment-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Environment-read"}}},"links":{"GetEnvironmentItem":{"operationId":"getEnvironmentItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/environment\/environments\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Add variables from an existing configuration storage","description":"Add variables from an existing configuration storage","parameters":[{"name":"configuration","in":"path","description":"Configuration identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Environment resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Environment.AddMultipleVariableFromConfigurationInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Environment.AddMultipleVariableFromConfigurationInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Environment.AddMultipleVariableFromConfigurationInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/environment\/environments\/{id}\/add-variables-from-constant":{"put":{"operationId":"add_variables_from_constantEnvironmentItem","tags":["Environment"],"responses":{"200":{"description":"Environment resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Environment.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Environment-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Environment-read"}}},"links":{"GetEnvironmentItem":{"operationId":"getEnvironmentItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/environment\/environments\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Add variables with a constant value","description":"Add variables with a constant value","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Environment resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Environment.AddMultipleVariableFromConstantInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Environment.AddMultipleVariableFromConstantInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Environment.AddMultipleVariableFromConstantInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/environment\/environments\/{id}\/add-variables-from-secret\/{secret}":{"put":{"operationId":"add_variables_from_secretEnvironmentItem","tags":["Environment"],"responses":{"200":{"description":"Environment resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Environment.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Environment-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Environment-read"}}},"links":{"GetEnvironmentItem":{"operationId":"getEnvironmentItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/environment\/environments\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Add variables from an existing secret storage","description":"Add variables from an existing secret storage","parameters":[{"name":"secret","in":"path","description":"Secret identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Environment resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Environment.AddMultipleVariableFromSecretInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Environment.AddMultipleVariableFromSecretInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Environment.AddMultipleVariableFromSecretInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/environment\/environments\/{id}\/variables":{"get":{"operationId":"api_environments_variables_get_subresourceEnvironmentSubresource","tags":["Variable","Environment"],"responses":{"200":{"description":"Environment resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Variable.jsonld-read"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Variable-read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Variable-read"}}}}}},"summary":"Retrieves a Environment resource.","description":"Retrieves a Environment resource.","parameters":[{"name":"id","in":"path","description":"Environment identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/environment\/secrets":{"get":{"operationId":"getSecretCollection","tags":["Secret"],"responses":{"200":{"description":"Secret collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Secret.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Secret"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Secret"}}}}}},"summary":"Retrieves the collection of Secret resources.","description":"Retrieves the collection of Secret resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"postSecretCollection","tags":["Secret"],"responses":{"201":{"description":"Secret resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Secret.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Secret"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Secret"}}},"links":{"GetSecretItem":{"operationId":"getSecretItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/environment\/secrets\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Secret resource.","description":"Creates a Secret resource.","parameters":[],"requestBody":{"description":"The new Secret resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Secret.CreateSecretInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Secret.CreateSecretInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Secret.CreateSecretInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/environment\/secrets\/{id}":{"get":{"operationId":"getSecretItem","tags":["Secret"],"responses":{"200":{"description":"Secret resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Secret.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Secret"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Secret"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Secret resource.","description":"Retrieves a Secret resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"put":{"operationId":"editSecretItem","tags":["Secret"],"responses":{"200":{"description":"Secret resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Secret.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Secret"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Secret"}}},"links":{"GetSecretItem":{"operationId":"getSecretItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/environment\/secrets\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Replaces the Secret resource.","description":"Replaces the Secret resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Secret resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Secret.jsonld-edit"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Secret-edit"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Secret-edit"}}},"required":true},"deprecated":false},"delete":{"operationId":"deleteSecretItem","tags":["Secret"],"responses":{"204":{"description":"Secret resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the Secret resource.","description":"Removes the Secret resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/environment\/secrets\/{id}\/change":{"put":{"operationId":"change_valuesSecretItem","tags":["Secret"],"responses":{"200":{"description":"Secret resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Secret.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Secret"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Secret"}}},"links":{"GetSecretItem":{"operationId":"getSecretItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/environment\/secrets\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Change the secret values values inside an existing secrets storage","description":"Change the secret values values inside an existing secrets storage","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Secret resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Secret.ChangeSecretValueInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Secret.ChangeSecretValueInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Secret.ChangeSecretValueInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/environment\/secrets\/{id}\/remove":{"put":{"operationId":"remove_valuesSecretItem","tags":["Secret"],"responses":{"200":{"description":"Secret resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Secret.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Secret"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Secret"}}},"links":{"GetSecretItem":{"operationId":"getSecretItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/environment\/secrets\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Remove some secret values inside an existing secrets storage","description":"Remove some secret values inside an existing secrets storage","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Secret resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Secret.RemoveSecretValueInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Secret.RemoveSecretValueInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Secret.RemoveSecretValueInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/environment\/variables-from-configuration\/{id}":{"get":{"operationId":"getVariableFromConfigurationItem","tags":["VariableFromConfiguration"],"responses":{"200":{"description":"VariableFromConfiguration resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConfiguration.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConfiguration-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConfiguration-read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a VariableFromConfiguration resource.","description":"Retrieves a VariableFromConfiguration resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"put":{"operationId":"editVariableFromConfigurationItem","tags":["VariableFromConfiguration"],"responses":{"200":{"description":"VariableFromConfiguration resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConfiguration.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConfiguration-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConfiguration-read"}}},"links":{"GetVariableFromConfigurationItem":{"operationId":"getVariableFromConfigurationItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/environment\/variables-from-configuration\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Replaces the VariableFromConfiguration resource.","description":"Replaces the VariableFromConfiguration resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated VariableFromConfiguration resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConfiguration.jsonld-write"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConfiguration-write"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConfiguration-write"}}},"required":true},"deprecated":false},"delete":{"operationId":"deleteVariableFromConfigurationItem","tags":["VariableFromConfiguration"],"responses":{"204":{"description":"VariableFromConfiguration resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the VariableFromConfiguration resource.","description":"Removes the VariableFromConfiguration resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/gateway\/akeneo\/instance":{"post":{"operationId":"postAkeneoInstanceCollection","tags":["AkeneoInstance"],"responses":{"201":{"description":"AkeneoInstance resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoInstance.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoInstance"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/AkeneoInstance"}}},"links":{"GetAkeneoInstanceItem":{"operationId":"getAkeneoInstanceItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/gateway\/akeneo\/instances\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a AkeneoInstance resource.","description":"Creates a AkeneoInstance resource.","parameters":[],"requestBody":{"description":"The new AkeneoInstance resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoInstance.AkeneoInstanceInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoInstance.AkeneoInstanceInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/AkeneoInstance.AkeneoInstanceInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/gateway\/akeneo\/instances":{"get":{"operationId":"getAkeneoInstanceCollection","tags":["AkeneoInstance"],"responses":{"200":{"description":"AkeneoInstance collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoInstance.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoInstance"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoInstance"}}}}}},"summary":"Retrieves the collection of AkeneoInstance resources.","description":"Retrieves the collection of AkeneoInstance resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/gateway\/akeneo\/instances\/from-url":{"get":{"operationId":"get_akeneo_instance_by_pim_urlAkeneoInstanceCollection","tags":["AkeneoInstance"],"responses":{"200":{"description":"AkeneoInstance collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoInstance.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoInstance"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoInstance"}}}}}},"summary":"Check if an organization exists in the database","description":"Check if an organization exists in the database","parameters":[{"name":"url","in":"query","description":"","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/gateway\/akeneo\/instances\/oauth-state":{"get":{"operationId":"get_akeneo_instance_oauthAkeneoInstanceCollection","tags":["AkeneoInstance"],"responses":{"200":{"description":"AkeneoInstance collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoInstance.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoInstance"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoInstance"}}}}}},"summary":"Check if an organization exists in the database","description":"Check if an organization exists in the database","parameters":[{"name":"url","in":"query","description":"","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/gateway\/akeneo\/instances\/{id}":{"get":{"operationId":"getAkeneoInstanceItem","tags":["AkeneoInstance"],"responses":{"200":{"description":"AkeneoInstance resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoInstance.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoInstance"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/AkeneoInstance"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a AkeneoInstance resource.","description":"Retrieves a AkeneoInstance resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/gateway\/akeneo\/linked-account":{"post":{"operationId":"postAkeneoLinkedAccountCollection","tags":["AkeneoLinkedAccount"],"responses":{"201":{"description":"AkeneoLinkedAccount resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount"}}},"links":{"GetAkeneoLinkedAccountItem":{"operationId":"getAkeneoLinkedAccountItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/gateway\/akeneo\/linked-account\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a AkeneoLinkedAccount resource.","description":"Creates a AkeneoLinkedAccount resource.","parameters":[],"requestBody":{"description":"The new AkeneoLinkedAccount resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount.AkeneoLinkedAccountsInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount.AkeneoLinkedAccountsInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount.AkeneoLinkedAccountsInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/gateway\/akeneo\/linked-account\/{akeneoUserId}":{"get":{"operationId":"get_akeneo_linked_accountAkeneoLinkedAccountCollection","tags":["AkeneoLinkedAccount"],"responses":{"200":{"description":"AkeneoLinkedAccount collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount"}}}}}},"summary":"Check if an akeneo user exists in the database","description":"Check if an akeneo user exists in the database","parameters":[{"name":"akeneoUserId","in":"path","description":"","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/gateway\/akeneo\/linked-account\/{id}":{"get":{"operationId":"getAkeneoLinkedAccountItem","tags":["AkeneoLinkedAccount"],"responses":{"200":{"description":"AkeneoLinkedAccount resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a AkeneoLinkedAccount resource.","description":"Retrieves a AkeneoLinkedAccount resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/gateway\/akeneo\/linked-accounts":{"get":{"operationId":"getAkeneoLinkedAccountCollection","tags":["AkeneoLinkedAccount"],"responses":{"200":{"description":"AkeneoLinkedAccount collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoLinkedAccount"}}}}}},"summary":"Retrieves the collection of AkeneoLinkedAccount resources.","description":"Retrieves the collection of AkeneoLinkedAccount resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/gateway\/akeneo\/oauth\/akeneo-oauth-tokens":{"post":{"operationId":"postAkeneoOauthTokenCollection","tags":["AkeneoOauthToken"],"responses":{"201":{"description":"AkeneoOauthToken resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoOauthToken.OauthStateOutput.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoOauthToken.OauthStateOutput-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/AkeneoOauthToken.OauthStateOutput-read"}}},"links":{"GetAkeneoOauthTokenItem":{"operationId":"getAkeneoOauthTokenItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/gateway\/akeneo\/oauth\/akeneo-oauth-tokens\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Generate an Akeneo OAuth state","description":"Generate an Akeneo OAuth state","parameters":[],"requestBody":{"description":"The new AkeneoOauthToken resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoOauthToken.OauthStateInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoOauthToken.OauthStateInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/AkeneoOauthToken.OauthStateInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/gateway\/akeneo\/oauth\/akeneo-oauth-tokens\/{id}":{"get":{"operationId":"getAkeneoOauthTokenItem","tags":["AkeneoOauthToken"],"responses":{"200":{"description":"AkeneoOauthToken resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoOauthToken.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AkeneoOauthToken-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/AkeneoOauthToken-read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a AkeneoOauthToken resource.","description":"Retrieves a AkeneoOauthToken resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/gateway\/akeneo\/oauth\/states":{"get":{"operationId":"getAkeneoOauthTokenCollection","tags":["AkeneoOauthToken"],"responses":{"200":{"description":"AkeneoOauthToken collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoOauthToken.jsonld-read"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoOauthToken-read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoOauthToken-read"}}}}}},"summary":"Retrieves the collection of AkeneoOauthToken resources.","description":"Retrieves the collection of AkeneoOauthToken resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/gateway\/akeneo\/oauth\/token":{"put":{"operationId":"put_akeneo_oauth_tokenAkeneoOauthTokenCollection","tags":["AkeneoOauthToken"],"responses":{"200":{"description":"AkeneoOauthToken resource updated","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoOauthToken.OauthTokenOutput.jsonld-read"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoOauthToken.OauthTokenOutput-read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoOauthToken.OauthTokenOutput-read"}}}},"links":{"GetAkeneoOauthTokenItem":{"operationId":"getAkeneoOauthTokenItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/gateway\/akeneo\/oauth\/akeneo-oauth-tokens\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Generate an Akeneo OAuth token","description":"Generate an Akeneo OAuth token","parameters":[],"requestBody":{"description":"The updated AkeneoOauthToken resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoOauthToken.OauthTokenInput.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoOauthToken.OauthTokenInput"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AkeneoOauthToken.OauthTokenInput"}}}},"required":true},"deprecated":false},"parameters":[]},"\/referral\/code\/{id}":{"get":{"operationId":"getReferralCodeItem","tags":["ReferralCode"],"responses":{"200":{"description":"ReferralCode resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ReferralCode.jsonld-referral-code.read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ReferralCode-referral-code.read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ReferralCode-referral-code.read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a ReferralCode resource.","description":"Retrieves a ReferralCode resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"delete":{"operationId":"deleteReferralCodeItem","tags":["ReferralCode"],"responses":{"204":{"description":"ReferralCode resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the ReferralCode resource.","description":"Removes the ReferralCode resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/referral\/codes":{"get":{"operationId":"getReferralCodeCollection","tags":["ReferralCode"],"responses":{"200":{"description":"ReferralCode collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/ReferralCode.jsonld-referral-code.read"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ReferralCode-referral-code.read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ReferralCode-referral-code.read"}}}}}},"summary":"Retrieves the collection of ReferralCode resources.","description":"Retrieves the collection of ReferralCode resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"postReferralCodeCollection","tags":["ReferralCode"],"responses":{"201":{"description":"ReferralCode resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ReferralCode.jsonld-referral-code.read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ReferralCode-referral-code.read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ReferralCode-referral-code.read"}}},"links":{"GetReferralCodeItem":{"operationId":"getReferralCodeItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/referral\/code\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a ReferralCode resource.","description":"Creates a ReferralCode resource.","parameters":[],"requestBody":{"description":"The new ReferralCode resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ReferralCode.jsonld-referral-code.write"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ReferralCode-referral-code.write"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ReferralCode-referral-code.write"}}},"required":true},"deprecated":false},"parameters":[]},"\/referral\/on-premise-request\/{id}":{"get":{"operationId":"getOnPremiseRequestItem","tags":["OnPremiseRequest"],"responses":{"200":{"description":"OnPremiseRequest resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/OnPremiseRequest.jsonld-on-premise-request.read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OnPremiseRequest-on-premise-request.read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/OnPremiseRequest-on-premise-request.read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a OnPremiseRequest resource.","description":"Retrieves a OnPremiseRequest resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/referral\/on-premise-requests":{"get":{"operationId":"getOnPremiseRequestCollection","tags":["OnPremiseRequest"],"responses":{"200":{"description":"OnPremiseRequest collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/OnPremiseRequest.jsonld-on-premise-request.read"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/OnPremiseRequest-on-premise-request.read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/OnPremiseRequest-on-premise-request.read"}}}}}},"summary":"Retrieves the collection of OnPremiseRequest resources.","description":"Retrieves the collection of OnPremiseRequest resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"postOnPremiseRequestCollection","tags":["OnPremiseRequest"],"responses":{"201":{"description":"OnPremiseRequest resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/OnPremiseRequest.jsonld-on-premise-request.read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OnPremiseRequest-on-premise-request.read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/OnPremiseRequest-on-premise-request.read"}}},"links":{"GetOnPremiseRequestItem":{"operationId":"getOnPremiseRequestItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/referral\/on-premise-request\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a OnPremiseRequest resource.","description":"Creates a OnPremiseRequest resource.","parameters":[],"requestBody":{"description":"The new OnPremiseRequest resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/OnPremiseRequest.jsonld-on-premise-request.write"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OnPremiseRequest-on-premise-request.write"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/OnPremiseRequest-on-premise-request.write"}}},"required":true},"deprecated":false},"parameters":[]},"\/referral\/referral-request\/{id}":{"get":{"operationId":"getReferralRequestItem","tags":["ReferralRequest"],"responses":{"200":{"description":"ReferralRequest resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest.jsonld-referral-request.read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest-referral-request.read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest-referral-request.read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a ReferralRequest resource.","description":"Retrieves a ReferralRequest resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/referral\/referral-request\/{id}\/accept":{"patch":{"operationId":"accept_referral_requestReferralRequestItem","tags":["ReferralRequest"],"responses":{"200":{"description":"ReferralRequest resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest.jsonld-referral-request.read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest-referral-request.read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest-referral-request.read"}}},"links":{"GetReferralRequestItem":{"operationId":"getReferralRequestItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/referral\/referral-request\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Accepts a referral request","description":"Accepts a referral request","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"","content":{},"required":false},"deprecated":false},"parameters":[]},"\/referral\/referral-request\/{id}\/reject":{"patch":{"operationId":"reject_referral_requestReferralRequestItem","tags":["ReferralRequest"],"responses":{"200":{"description":"ReferralRequest resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest.jsonld-referral-request.read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest-referral-request.read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest-referral-request.read"}}},"links":{"GetReferralRequestItem":{"operationId":"getReferralRequestItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/referral\/referral-request\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Rejects a referral request","description":"Rejects a referral request","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"","content":{},"required":false},"deprecated":false},"parameters":[]},"\/referral\/referral-requests":{"post":{"operationId":"postReferralRequestCollection","tags":["ReferralRequest"],"responses":{"201":{"description":"ReferralRequest resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest.jsonld-referral-request.read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest-referral-request.read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest-referral-request.read"}}},"links":{"GetReferralRequestItem":{"operationId":"getReferralRequestItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/referral\/referral-request\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a ReferralRequest resource.","description":"Creates a ReferralRequest resource.","parameters":[],"requestBody":{"description":"The new ReferralRequest resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest.ReferralRequestInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest.ReferralRequestInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ReferralRequest.ReferralRequestInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/referral\/requests":{"get":{"operationId":"getReferralRequestCollection","tags":["ReferralRequest"],"responses":{"200":{"description":"ReferralRequest collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/ReferralRequest.jsonld-referral-request.read"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ReferralRequest-referral-request.read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ReferralRequest-referral-request.read"}}}}}},"summary":"Retrieves the collection of ReferralRequest resources.","description":"Retrieves the collection of ReferralRequest resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/actions":{"get":{"operationId":"getActionCollection","tags":["Action"],"responses":{"200":{"description":"Action collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Action.jsonld-read"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Action-read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Action-read"}}}}}},"summary":"Retrieves the collection of Action resources.","description":"Retrieves the collection of Action resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/actions\/{id}":{"get":{"operationId":"getActionItem","tags":["Action"],"responses":{"200":{"description":"Action resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Action.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Action-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Action-read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Action resource.","description":"Retrieves a Action resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/actions\/{id}\/organization":{"get":{"operationId":"api_actions_organization_get_subresourceActionSubresource","tags":["Organization","Action"],"responses":{"200":{"description":"Action resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Organization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Organization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Organization"}}}}},"summary":"Retrieves a Action resource.","description":"Retrieves a Action resource.","parameters":[{"name":"id","in":"path","description":"Action identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/actions\/{id}\/owner":{"get":{"operationId":"api_actions_owner_get_subresourceActionSubresource","tags":["User","Action"],"responses":{"200":{"description":"Action resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}}}}},"summary":"Retrieves a Action resource.","description":"Retrieves a Action resource.","parameters":[{"name":"id","in":"path","description":"Action identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/actions\/{id}\/workspace":{"get":{"operationId":"api_actions_workspace_get_subresourceActionSubresource","tags":["Workspace","Action"],"responses":{"200":{"description":"Action resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workspace.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}}}}},"summary":"Retrieves a Action resource.","description":"Retrieves a Action resource.","parameters":[{"name":"id","in":"path","description":"Action identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/compilations":{"get":{"operationId":"getCompilationCollection","tags":["Compilation"],"responses":{"200":{"description":"Compilation collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Compilation.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Compilation"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Compilation"}}}}}},"summary":"Retrieves the collection of Compilation resources.","description":"Retrieves the collection of Compilation resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/compilations\/{id}":{"get":{"operationId":"getCompilationItem","tags":["Compilation"],"responses":{"200":{"description":"Compilation resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Compilation.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Compilation"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Compilation"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Compilation resource.","description":"Retrieves a Compilation resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/compilations\/{id}\/organization":{"get":{"operationId":"api_compilations_organization_get_subresourceCompilationSubresource","tags":["Organization","Compilation"],"responses":{"200":{"description":"Compilation resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Organization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Organization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Organization"}}}}},"summary":"Retrieves a Compilation resource.","description":"Retrieves a Compilation resource.","parameters":[{"name":"id","in":"path","description":"Compilation identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/compilations\/{id}\/user":{"get":{"operationId":"api_compilations_user_get_subresourceCompilationSubresource","tags":["User","Compilation"],"responses":{"200":{"description":"Compilation resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}}}}},"summary":"Retrieves a Compilation resource.","description":"Retrieves a Compilation resource.","parameters":[{"name":"id","in":"path","description":"Compilation identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/compilations\/{id}\/workspace":{"get":{"operationId":"api_compilations_workspace_get_subresourceCompilationSubresource","tags":["Workspace","Compilation"],"responses":{"200":{"description":"Compilation resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workspace.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}}}}},"summary":"Retrieves a Compilation resource.","description":"Retrieves a Compilation resource.","parameters":[{"name":"id","in":"path","description":"Compilation identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/execution-pipeline-jobs":{"get":{"operationId":"getExecutionPipelineJobCollection","tags":["ExecutionPipelineJob"],"responses":{"200":{"description":"ExecutionPipelineJob collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipelineJob.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipelineJob"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipelineJob"}}}}}},"summary":"Retrieves the collection of ExecutionPipelineJob resources.","description":"Retrieves the collection of ExecutionPipelineJob resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/execution-pipeline-jobs\/{id}\/steps":{"get":{"operationId":"api_execution_pipeline_jobs_steps_get_subresourceExecutionPipelineJobSubresource","tags":["ExecutionPipelineStep","ExecutionPipelineJob"],"responses":{"200":{"description":"ExecutionPipelineJob resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipelineStep.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipelineStep"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipelineStep"}}}}}},"summary":"Retrieves a ExecutionPipelineJob resource.","description":"Retrieves a ExecutionPipelineJob resource.","parameters":[{"name":"id","in":"path","description":"ExecutionPipelineJob identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions":{"get":{"operationId":"getExecutionCollection","tags":["Execution"],"responses":{"200":{"description":"Execution collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Execution.jsonld-read"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Execution-read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Execution-read"}}}}}},"summary":"Retrieves the collection of Execution resources.","description":"Retrieves the collection of Execution resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"declare_executionExecutionCollection","tags":["Execution"],"responses":{"202":{"description":"Execution resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Execution.DeclarePipelineExecutionCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Execution.DeclarePipelineExecutionCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Execution.DeclarePipelineExecutionCommand-read"}}},"links":{"GetExecutionItem":{"operationId":"getExecutionItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/executions\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Declares a pipeline execution","description":"Declares a pipeline execution","parameters":[],"requestBody":{"description":"The new Execution resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Execution.DeclarePipelineExecutionCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Execution.DeclarePipelineExecutionCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Execution.DeclarePipelineExecutionCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/executions\/execution-actions\/{id}":{"get":{"operationId":"getExecutionActionItem","tags":["ExecutionAction"],"responses":{"200":{"description":"ExecutionAction resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionAction.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionAction"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionAction"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a ExecutionAction resource.","description":"Retrieves a ExecutionAction resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions\/execution-pipelines\/{id}":{"get":{"operationId":"getExecutionPipelineItem","tags":["ExecutionPipeline"],"responses":{"200":{"description":"ExecutionPipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipeline.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipeline"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipeline"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a ExecutionPipeline resource.","description":"Retrieves a ExecutionPipeline resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions\/execution-workflows\/{id}":{"get":{"operationId":"getExecutionWorkflowItem","tags":["ExecutionWorkflow"],"responses":{"200":{"description":"ExecutionWorkflow resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a ExecutionWorkflow resource.","description":"Retrieves a ExecutionWorkflow resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions\/pipelines":{"get":{"operationId":"getExecutionPipelineCollection","tags":["ExecutionPipeline"],"responses":{"200":{"description":"ExecutionPipeline collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipeline.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipeline"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipeline"}}}}}},"summary":"Retrieves the collection of ExecutionPipeline resources.","description":"Retrieves the collection of ExecutionPipeline resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions\/pipelines\/execution-pipeline-steps\/{id}":{"get":{"operationId":"getExecutionPipelineStepItem","tags":["ExecutionPipelineStep"],"responses":{"200":{"description":"ExecutionPipelineStep resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipelineStep.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipelineStep"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipelineStep"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a ExecutionPipelineStep resource.","description":"Retrieves a ExecutionPipelineStep resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions\/pipelines\/jobs\/{id}":{"get":{"operationId":"getExecutionPipelineJobItem","tags":["ExecutionPipelineJob"],"responses":{"200":{"description":"ExecutionPipelineJob resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipelineJob.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipelineJob"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipelineJob"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a ExecutionPipelineJob resource.","description":"Retrieves a ExecutionPipelineJob resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions\/pipelines\/{id}\/steps":{"get":{"operationId":"api_execution_pipelines_steps_get_subresourceExecutionPipelineSubresource","tags":["ExecutionPipelineStep","ExecutionPipeline"],"responses":{"200":{"description":"ExecutionPipeline resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipelineStep.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipelineStep"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipelineStep"}}}}}},"summary":"Retrieves a ExecutionPipeline resource.","description":"Retrieves a ExecutionPipeline resource.","parameters":[{"name":"id","in":"path","description":"ExecutionPipeline identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions\/runtime\/executions\/pipelines\/{id}\/steps\/{stepCode}\/logs":{"get":{"operationId":"get_execution_logsExecutionPipelineItem","tags":["ExecutionPipeline"],"responses":{"202":{"description":"ExecutionPipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipeline.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipeline"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipeline"}}}},"404":{"description":"Resource not found"}},"summary":"Get logs from a selected step","description":"Get logs from a selected step","parameters":[{"name":"stepCode","in":"path","description":"Step resource code","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions\/runtime\/executions\/pipelines\/{id}\/steps\/{stepCode}\/rejects":{"get":{"operationId":"get_execution_rejectsExecutionPipelineItem","tags":["ExecutionPipeline"],"responses":{"202":{"description":"ExecutionPipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipeline.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipeline"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipeline"}}}},"404":{"description":"Resource not found"}},"summary":"Get rejects from a selected step","description":"Get rejects from a selected step","parameters":[{"name":"stepCode","in":"path","description":"Step resource code","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions\/runtime\/executions\/workflows\/{id}\/pipelines\/{jobCode}\/steps\/{stepCode}\/logs":{"get":{"operationId":"get_execution_action_logsExecutionWorkflowItem","tags":["ExecutionWorkflow"],"responses":{"202":{"description":"ExecutionWorkflow resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow"}}}},"404":{"description":"Resource not found"}},"summary":"Get logs from an executed step","description":"Get logs from an executed step","parameters":[{"name":"jobCode","in":"path","description":"Job resource code","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions\/runtime\/executions\/workflows\/{id}\/pipelines\/{jobCode}\/steps\/{stepCode}\/rejects":{"get":{"operationId":"get_execution_pipeline_rejectsExecutionWorkflowItem","tags":["ExecutionWorkflow"],"responses":{"202":{"description":"ExecutionWorkflow resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow"}}}},"404":{"description":"Resource not found"}},"summary":"Get rejects from an executed step","description":"Get rejects from an executed step","parameters":[{"name":"jobCode","in":"path","description":"Job resource id","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"stepCode","in":"path","description":"Step resource id","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions\/workflows":{"get":{"operationId":"getExecutionWorkflowCollection","tags":["ExecutionWorkflow"],"responses":{"200":{"description":"ExecutionWorkflow collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionWorkflow.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionWorkflow"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionWorkflow"}}}}}},"summary":"Retrieves the collection of ExecutionWorkflow resources.","description":"Retrieves the collection of ExecutionWorkflow resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions\/workflows\/execution-workflow-job-actions\/{id}":{"get":{"operationId":"getExecutionWorkflowJobActionItem","tags":["ExecutionWorkflowJobAction"],"responses":{"200":{"description":"ExecutionWorkflowJobAction resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJobAction.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJobAction"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJobAction"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a ExecutionWorkflowJobAction resource.","description":"Retrieves a ExecutionWorkflowJobAction resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions\/workflows\/execution-workflow-jobs\/{id}":{"get":{"operationId":"getExecutionWorkflowJobItem","tags":["ExecutionWorkflowJob"],"responses":{"200":{"description":"ExecutionWorkflowJob resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJob.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJob"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJob"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a ExecutionWorkflowJob resource.","description":"Retrieves a ExecutionWorkflowJob resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions\/workflows\/jobs":{"get":{"operationId":"getExecutionWorkflowJobCollection","tags":["ExecutionWorkflowJob"],"responses":{"200":{"description":"ExecutionWorkflowJob collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJob.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJob"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJob"}}}}}},"summary":"Retrieves the collection of ExecutionWorkflowJob resources.","description":"Retrieves the collection of ExecutionWorkflowJob resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions\/workflows\/jobs\/{id}\/action":{"get":{"operationId":"api_execution_workflow_jobs_action_get_subresourceExecutionWorkflowJobSubresource","tags":["ExecutionWorkflowJobAction","ExecutionWorkflowJob"],"responses":{"200":{"description":"ExecutionWorkflowJob resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJobAction.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJobAction"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJobAction"}}}}},"summary":"Retrieves a ExecutionWorkflowJob resource.","description":"Retrieves a ExecutionWorkflowJob resource.","parameters":[{"name":"id","in":"path","description":"ExecutionWorkflowJob identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions\/workflows\/jobs\/{id}\/pipelines":{"get":{"operationId":"api_execution_workflow_jobs_pipeline_get_subresourceExecutionWorkflowJobSubresource","tags":["ExecutionPipelineJob","ExecutionWorkflowJob"],"responses":{"200":{"description":"ExecutionWorkflowJob resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipelineJob.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipelineJob"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipelineJob"}}}}},"summary":"Retrieves a ExecutionWorkflowJob resource.","description":"Retrieves a ExecutionWorkflowJob resource.","parameters":[{"name":"id","in":"path","description":"ExecutionWorkflowJob identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions\/workflows\/jobs\/{id}\/pipelines\/steps":{"get":{"operationId":"api_execution_workflow_jobs_pipeline_steps_get_subresourceExecutionWorkflowJobSubresource","tags":["ExecutionPipelineStep","ExecutionPipelineJob"],"responses":{"200":{"description":"ExecutionWorkflowJob resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipelineStep.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipelineStep"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionPipelineStep"}}}}}},"summary":"Retrieves a ExecutionWorkflowJob resource.","description":"Retrieves a ExecutionWorkflowJob resource.","parameters":[{"name":"id","in":"path","description":"ExecutionWorkflowJob identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"pipeline","in":"path","description":"ExecutionPipelineJob identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions\/workflows\/{id}\/jobs":{"get":{"operationId":"api_execution_workflows_jobs_get_subresourceExecutionWorkflowSubresource","tags":["ExecutionWorkflowJob","ExecutionWorkflow"],"responses":{"200":{"description":"ExecutionWorkflow resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJob.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJob"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJob"}}}}}},"summary":"Retrieves a ExecutionWorkflow resource.","description":"Retrieves a ExecutionWorkflow resource.","parameters":[{"name":"id","in":"path","description":"ExecutionWorkflow identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions\/workflows\/{id}\/jobs\/{job}\/action":{"get":{"operationId":"api_execution_workflows_jobs_action_get_subresourceExecutionWorkflowSubresource","tags":["ExecutionWorkflowJobAction","ExecutionWorkflowJob"],"responses":{"200":{"description":"ExecutionWorkflow resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJobAction.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJobAction"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJobAction"}}}}},"summary":"Retrieves a ExecutionWorkflow resource.","description":"Retrieves a ExecutionWorkflow resource.","parameters":[{"name":"id","in":"path","description":"ExecutionWorkflow identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"jobs","in":"path","description":"ExecutionWorkflowJob identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions\/workflows\/{id}\/jobs\/{job}\/pipelines":{"get":{"operationId":"api_execution_workflows_jobs_pipeline_get_subresourceExecutionWorkflowSubresource","tags":["ExecutionPipelineJob","ExecutionWorkflowJob"],"responses":{"200":{"description":"ExecutionWorkflow resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipelineJob.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipelineJob"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipelineJob"}}}}},"summary":"Retrieves a ExecutionWorkflow resource.","description":"Retrieves a ExecutionWorkflow resource.","parameters":[{"name":"id","in":"path","description":"ExecutionWorkflow identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"jobs","in":"path","description":"ExecutionWorkflowJob identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions\/{id}":{"get":{"operationId":"getExecutionItem","tags":["Execution"],"responses":{"200":{"description":"Execution resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Execution.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Execution-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Execution-read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Execution resource.","description":"Retrieves a Execution resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions\/{id}\/action":{"get":{"operationId":"api_executions_action_get_subresourceExecutionSubresource","tags":["ExecutionAction","Execution"],"responses":{"200":{"description":"Execution resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionAction.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionAction"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionAction"}}}}},"summary":"Retrieves a Execution resource.","description":"Retrieves a Execution resource.","parameters":[{"name":"id","in":"path","description":"Execution identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions\/{id}\/interrupt":{"put":{"operationId":"interrupt_executionExecutionWorkflowItem","tags":["ExecutionWorkflow"],"responses":{"202":{"description":"ExecutionWorkflow resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow.InterruptWorkflowExecutionCommand.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow.InterruptWorkflowExecutionCommand"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow.InterruptWorkflowExecutionCommand"}}},"links":{"GetExecutionWorkflowItem":{"operationId":"getExecutionWorkflowItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/executions\/execution-workflows\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Interrupts a workflow execution","description":"Interrupts a workflow execution","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated ExecutionWorkflow resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow.InterruptWorkflowExecutionCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow.InterruptWorkflowExecutionCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow.InterruptWorkflowExecutionCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/executions\/{id}\/organization":{"get":{"operationId":"api_executions_organization_get_subresourceExecutionSubresource","tags":["Organization","Execution"],"responses":{"200":{"description":"Execution resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Organization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Organization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Organization"}}}}},"summary":"Retrieves a Execution resource.","description":"Retrieves a Execution resource.","parameters":[{"name":"id","in":"path","description":"Execution identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions\/{id}\/owner":{"get":{"operationId":"api_executions_owner_get_subresourceExecutionSubresource","tags":["User","Execution"],"responses":{"200":{"description":"Execution resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}}}}},"summary":"Retrieves a Execution resource.","description":"Retrieves a Execution resource.","parameters":[{"name":"id","in":"path","description":"Execution identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions\/{id}\/pipelines":{"get":{"operationId":"api_executions_pipeline_get_subresourceExecutionSubresource","tags":["ExecutionPipeline","Execution"],"responses":{"200":{"description":"Execution resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipeline.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipeline"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionPipeline"}}}}},"summary":"Retrieves a Execution resource.","description":"Retrieves a Execution resource.","parameters":[{"name":"id","in":"path","description":"Execution identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions\/{id}\/resume":{"put":{"operationId":"resume_executionExecutionWorkflowItem","tags":["ExecutionWorkflow"],"responses":{"202":{"description":"ExecutionWorkflow resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow.ResumeWorkflowExecutionCommand.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow.ResumeWorkflowExecutionCommand"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow.ResumeWorkflowExecutionCommand"}}},"links":{"GetExecutionWorkflowItem":{"operationId":"getExecutionWorkflowItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/executions\/execution-workflows\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Resumes a workflow execution","description":"Resumes a workflow execution","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated ExecutionWorkflow resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow.ResumeWorkflowExecutionCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow.ResumeWorkflowExecutionCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow.ResumeWorkflowExecutionCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/executions\/{id}\/terminate":{"put":{"operationId":"terminate_executionExecutionWorkflowItem","tags":["ExecutionWorkflow"],"responses":{"202":{"description":"ExecutionWorkflow resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow.TerminateWorkflowExecutionCommand.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow.TerminateWorkflowExecutionCommand"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow.TerminateWorkflowExecutionCommand"}}},"links":{"GetExecutionWorkflowItem":{"operationId":"getExecutionWorkflowItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/executions\/execution-workflows\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Terminates a workflow execution","description":"Terminates a workflow execution","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated ExecutionWorkflow resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow.TerminateWorkflowExecutionCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow.TerminateWorkflowExecutionCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow.TerminateWorkflowExecutionCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/executions\/{id}\/workflows":{"get":{"operationId":"api_executions_workflow_get_subresourceExecutionSubresource","tags":["ExecutionWorkflow","Execution"],"responses":{"200":{"description":"Execution resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/ExecutionWorkflow"}}}}},"summary":"Retrieves a Execution resource.","description":"Retrieves a Execution resource.","parameters":[{"name":"id","in":"path","description":"Execution identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions\/{id}\/workflows\/jobs":{"get":{"operationId":"api_executions_workflow_jobs_get_subresourceExecutionSubresource","tags":["ExecutionWorkflowJob","ExecutionWorkflow"],"responses":{"200":{"description":"Execution resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJob.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJob"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ExecutionWorkflowJob"}}}}}},"summary":"Retrieves a Execution resource.","description":"Retrieves a Execution resource.","parameters":[{"name":"id","in":"path","description":"Execution identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"workflow","in":"path","description":"ExecutionWorkflow identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/executions\/{id}\/workspace":{"get":{"operationId":"api_executions_workspace_get_subresourceExecutionSubresource","tags":["Workspace","Execution"],"responses":{"200":{"description":"Execution resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workspace.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}}}}},"summary":"Retrieves a Execution resource.","description":"Retrieves a Execution resource.","parameters":[{"name":"id","in":"path","description":"Execution identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/pipeline-step-probes":{"get":{"operationId":"getPipelineStepProbeCollection","tags":["PipelineStepProbe"],"responses":{"200":{"description":"PipelineStepProbe collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStepProbe.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStepProbe"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStepProbe"}}}}}},"summary":"Retrieves the collection of PipelineStepProbe resources.","description":"Retrieves the collection of PipelineStepProbe resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/pipeline-step-probes\/{id}":{"get":{"operationId":"getPipelineStepProbeItem","tags":["PipelineStepProbe"],"responses":{"200":{"description":"PipelineStepProbe resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/PipelineStepProbe.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PipelineStepProbe"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/PipelineStepProbe"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a PipelineStepProbe resource.","description":"Retrieves a PipelineStepProbe resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/pipeline-steps":{"get":{"operationId":"getPipelineStepCollection","tags":["PipelineStep"],"responses":{"200":{"description":"PipelineStep collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStep.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStep"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStep"}}}}}},"summary":"Retrieves the collection of PipelineStep resources.","description":"Retrieves the collection of PipelineStep resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/pipeline-steps\/{id}":{"get":{"operationId":"getPipelineStepItem","tags":["PipelineStep"],"responses":{"200":{"description":"PipelineStep resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/PipelineStep.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PipelineStep"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/PipelineStep"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a PipelineStep resource.","description":"Retrieves a PipelineStep resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/pipelines":{"get":{"operationId":"getPipelineCollection","tags":["Pipeline"],"responses":{"200":{"description":"Pipeline collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Pipeline.jsonld-read"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Pipeline-read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Pipeline-read"}}}}}},"summary":"Retrieves the collection of Pipeline resources.","description":"Retrieves the collection of Pipeline resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false},{"name":"code","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"code[]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"allowReserved":false}],"deprecated":false},"post":{"operationId":"declare_pipelinePipelineCollection","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.DeclarePipelineCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.DeclarePipelineCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.DeclarePipelineCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipelines\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Declares a pipeline","description":"Declares a pipeline","parameters":[],"requestBody":{"description":"The new Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.DeclarePipelineCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.DeclarePipelineCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.DeclarePipelineCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipelines\/steps\/{id}\/probes":{"get":{"operationId":"api_pipeline_steps_probes_get_subresourcePipelineStepSubresource","tags":["PipelineStepProbe","PipelineStep"],"responses":{"200":{"description":"PipelineStep resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStepProbe.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStepProbe"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStepProbe"}}}}}},"summary":"Retrieves a PipelineStep resource.","description":"Retrieves a PipelineStep resource.","parameters":[{"name":"id","in":"path","description":"PipelineStep identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/pipelines\/{id}":{"get":{"operationId":"getPipelineItem","tags":["Pipeline"],"responses":{"200":{"description":"Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline-read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Pipeline resource.","description":"Retrieves a Pipeline resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"delete":{"operationId":"delete_pipelinePipelineItem","tags":["Pipeline"],"responses":{"204":{"description":"Pipeline resource deleted"},"404":{"description":"Resource not found"}},"summary":"Deletes a pipeline","description":"Deletes a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/pipelines\/{id}\/add-composer-auth":{"put":{"operationId":"add_composer_auth_pipelinePipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerAuthCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerAuthCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerAuthCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipelines\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Adds a composer auth to a pipeline","description":"Adds a composer auth to a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerAuthCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerAuthCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerAuthCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipelines\/{id}\/add-composer-package":{"put":{"operationId":"add_composer_package_pipelinePipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerPackageCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerPackageCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerPackageCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipelines\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Adds a composer package to a pipeline","description":"Adds a composer package to a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerPackageCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerPackageCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerPackageCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipelines\/{id}\/add-composer-repository":{"put":{"operationId":"add_composer_repository_pipelinePipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerRepositoryCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerRepositoryCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerRepositoryCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipelines\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Adds a composer repository to a pipeline","description":"Adds a composer repository to a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerRepositoryCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerRepositoryCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerRepositoryCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipelines\/{id}\/add-psr4-autoload":{"put":{"operationId":"add_composer_autoload_pipelinePipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerPSR4AutoloadCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerPSR4AutoloadCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerPSR4AutoloadCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipelines\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Adds PSR4 autoload composer to a pipeline","description":"Adds PSR4 autoload composer to a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerPSR4AutoloadCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerPSR4AutoloadCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineComposerPSR4AutoloadCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipelines\/{id}\/compilations":{"get":{"operationId":"api_pipelines_compilations_get_subresourcePipelineSubresource","tags":["Compilation","Pipeline"],"responses":{"200":{"description":"Pipeline resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Compilation.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Compilation"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Compilation"}}}}}},"summary":"Retrieves a Pipeline resource.","description":"Retrieves a Pipeline resource.","parameters":[{"name":"id","in":"path","description":"Pipeline identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/pipelines\/{id}\/compile":{"put":{"operationId":"pipeline_compilationPipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.CompilePipelineCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.CompilePipelineCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.CompilePipelineCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipelines\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Launches a pipeline compilation","description":"Launches a pipeline compilation","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.CompilePipelineCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.CompilePipelineCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.CompilePipelineCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipelines\/{id}\/organization":{"get":{"operationId":"api_pipelines_organization_get_subresourcePipelineSubresource","tags":["Organization","Pipeline"],"responses":{"200":{"description":"Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Organization.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Organization"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Organization"}}}}},"summary":"Retrieves a Pipeline resource.","description":"Retrieves a Pipeline resource.","parameters":[{"name":"id","in":"path","description":"Pipeline identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/pipelines\/{id}\/owner":{"get":{"operationId":"api_pipelines_owner_get_subresourcePipelineSubresource","tags":["User","Pipeline"],"responses":{"200":{"description":"Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}}}}},"summary":"Retrieves a Pipeline resource.","description":"Retrieves a Pipeline resource.","parameters":[{"name":"id","in":"path","description":"Pipeline identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/pipelines\/{id}\/remove-composer-auth":{"put":{"operationId":"remove_composer_auth_pipelinePipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerAuthCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerAuthCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerAuthCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipelines\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Removes a composer auth from a pipeline","description":"Removes a composer auth from a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerAuthCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerAuthCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerAuthCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipelines\/{id}\/remove-composer-package":{"put":{"operationId":"remove_composer_package_pipelinePipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerPackageCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerPackageCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerPackageCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipelines\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Removes a composer package from a pipeline","description":"Removes a composer package from a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerPackageCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerPackageCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerPackageCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipelines\/{id}\/remove-composer-repository":{"put":{"operationId":"remove_composer_repository_pipelinePipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerRepositoryCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerRepositoryCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerRepositoryCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipelines\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Removes a repository from a pipeline","description":"Adds a repository from a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerRepositoryCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerRepositoryCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerRepositoryCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipelines\/{id}\/remove-psr4-autoload":{"put":{"operationId":"remove_composer_autoload_pipelinePipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerPSR4AutoloadCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerPSR4AutoloadCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerPSR4AutoloadCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipelines\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Removes PSR4 autoload composer from a pipeline","description":"Removes PSR4 autoload composer from a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerPSR4AutoloadCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerPSR4AutoloadCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.RemovePipelineComposerPSR4AutoloadCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipelines\/{id}\/schedule-now":{"put":{"operationId":"pipeline_schedule_immediatePipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.DeclarePipelineScheduleImmediateCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.DeclarePipelineScheduleImmediateCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.DeclarePipelineScheduleImmediateCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipelines\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Schedule a pipeline for immediate execution","description":"Schedule a pipeline for immediate execution","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.DeclarePipelineScheduleImmediateCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.DeclarePipelineScheduleImmediateCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.DeclarePipelineScheduleImmediateCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipelines\/{id}\/schedule-once":{"put":{"operationId":"pipeline_schedule_oncePipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.DeclarePipelineScheduleOnceCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.DeclarePipelineScheduleOnceCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.DeclarePipelineScheduleOnceCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipelines\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Schedule a pipeline to a specific date","description":"Schedule a pipeline to a specific date","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.DeclarePipelineScheduleOnceCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.DeclarePipelineScheduleOnceCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.DeclarePipelineScheduleOnceCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipelines\/{id}\/schedules":{"get":{"operationId":"api_pipelines_schedules_get_subresourcePipelineSubresource","tags":["Schedule","Pipeline"],"responses":{"200":{"description":"Pipeline resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Schedule.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Schedule"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Schedule"}}}}}},"summary":"Retrieves a Pipeline resource.","description":"Retrieves a Pipeline resource.","parameters":[{"name":"id","in":"path","description":"Pipeline identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/pipelines\/{id}\/steps":{"get":{"operationId":"api_pipelines_steps_get_subresourcePipelineSubresource","tags":["PipelineStep","Pipeline"],"responses":{"200":{"description":"Pipeline resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStep.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStep"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStep"}}}}}},"summary":"Retrieves a Pipeline resource.","description":"Retrieves a Pipeline resource.","parameters":[{"name":"id","in":"path","description":"Pipeline identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"put":{"operationId":"append_pipeline_stepPipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AppendPipelineStepCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AppendPipelineStepCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AppendPipelineStepCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipelines\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Appends a step to a pipeline","description":"Appends a step to a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AppendPipelineStepCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AppendPipelineStepCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AppendPipelineStepCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipelines\/{id}\/steps\/reorder":{"put":{"operationId":"reorder_pipeline_stepsPipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.ReorderPipelineStepsCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.ReorderPipelineStepsCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.ReorderPipelineStepsCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipelines\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Reorganizes the steps of a pipeline according to a given order","description":"Reorganizes the steps of a pipeline according to a given order","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.ReorderPipelineStepsCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.ReorderPipelineStepsCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.ReorderPipelineStepsCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipelines\/{id}\/steps\/{code}":{"delete":{"operationId":"delete_pipeline_stepPipelineItem","tags":["Pipeline"],"responses":{"204":{"description":"Pipeline resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes a step from a pipeline","description":"Removes a step from a pipeline","parameters":[{"name":"code","in":"path","description":"Step resource code","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/pipelines\/{id}\/steps\/{code}\/add-after":{"put":{"operationId":"add_after_pipeline_stepPipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddAfterPipelineStepCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddAfterPipelineStepCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddAfterPipelineStepCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipelines\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Adds a step after another one in a pipeline","description":"Adds a step after another one in a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddAfterPipelineStepCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddAfterPipelineStepCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddAfterPipelineStepCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipelines\/{id}\/steps\/{code}\/add-before":{"put":{"operationId":"add_before_pipeline_stepPipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddBeforePipelineStepCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddBeforePipelineStepCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddBeforePipelineStepCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipelines\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Adds a step before another one in a pipeline","description":"Adds a step before another one in a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddBeforePipelineStepCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddBeforePipelineStepCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddBeforePipelineStepCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipelines\/{id}\/steps\/{code}\/move-after":{"put":{"operationId":"move_after_pipeline_stepPipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.MoveAfterPipelineStepCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.MoveAfterPipelineStepCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.MoveAfterPipelineStepCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipelines\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Moves a step after another one in a pipeline","description":"Moves a step after another one in a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.MoveAfterPipelineStepCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.MoveAfterPipelineStepCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.MoveAfterPipelineStepCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipelines\/{id}\/steps\/{code}\/move-before":{"put":{"operationId":"move_before_pipeline_stepPipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.MoveBeforePipelineStepCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.MoveBeforePipelineStepCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.MoveBeforePipelineStepCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipelines\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Moves a step before another one in a pipeline","description":"Moves a step before another one in a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.MoveBeforePipelineStepCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.MoveBeforePipelineStepCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.MoveBeforePipelineStepCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipelines\/{id}\/steps\/{code}\/probe":{"put":{"operationId":"add_pipeline_step_probePipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineStepProbeCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineStepProbeCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineStepProbeCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipelines\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Adds a probe to a step","description":"Adds a probe to a step","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineStepProbeCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineStepProbeCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.AddPipelineStepProbeCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipelines\/{id}\/steps\/{code}\/probes\/{probeCode}":{"delete":{"operationId":"remove_pipeline_step_probePipelineItem","tags":["Pipeline"],"responses":{"204":{"description":"Pipeline resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes a probe from a step","description":"Removes a probe from a step","parameters":[{"name":"code","in":"path","description":"Step resource code","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"probe_code","in":"path","description":"Probe resource code","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/pipelines\/{id}\/steps\/{code}\/replace":{"put":{"operationId":"replace_pipeline_stepPipelineItem","tags":["Pipeline"],"responses":{"202":{"description":"Pipeline resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.ReplacePipelineStepCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.ReplacePipelineStepCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.ReplacePipelineStepCommand-read"}}},"links":{"GetPipelineItem":{"operationId":"getPipelineItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/pipelines\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Replaces a step by another one in a pipeline","description":"Replaces a step by another one in a pipeline","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.ReplacePipelineStepCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.ReplacePipelineStepCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Pipeline.ReplacePipelineStepCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/pipelines\/{id}\/workspace":{"get":{"operationId":"api_pipelines_workspace_get_subresourcePipelineSubresource","tags":["Workspace","Pipeline"],"responses":{"200":{"description":"Pipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workspace.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workspace"}}}}},"summary":"Retrieves a Pipeline resource.","description":"Retrieves a Pipeline resource.","parameters":[{"name":"id","in":"path","description":"Pipeline identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/schedules":{"get":{"operationId":"getScheduleCollection","tags":["Schedule"],"responses":{"200":{"description":"Schedule collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Schedule.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Schedule"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Schedule"}}}}}},"summary":"Retrieves the collection of Schedule resources.","description":"Retrieves the collection of Schedule resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/schedules\/{id}":{"get":{"operationId":"getScheduleItem","tags":["Schedule"],"responses":{"200":{"description":"Schedule resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Schedule.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Schedule"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Schedule"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Schedule resource.","description":"Retrieves a Schedule resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/schedules\/{id}\/executions":{"get":{"operationId":"api_schedules_executions_get_subresourceScheduleSubresource","tags":["Execution","Schedule"],"responses":{"200":{"description":"Schedule resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Execution.jsonld-read"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Execution-read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Execution-read"}}}}}},"summary":"Retrieves a Schedule resource.","description":"Retrieves a Schedule resource.","parameters":[{"name":"id","in":"path","description":"Schedule identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/workflows":{"get":{"operationId":"getWorkflowCollection","tags":["Workflow"],"responses":{"200":{"description":"Workflow collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Workflow.jsonld-read"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Workflow-read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Workflow-read"}}}}}},"summary":"Retrieves the collection of Workflow resources.","description":"Retrieves the collection of Workflow resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"declare_workflowWorkflowCollection","tags":["Workflow"],"responses":{"202":{"description":"Workflow resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workflow.DeclareWorkflowCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workflow.DeclareWorkflowCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workflow.DeclareWorkflowCommand-read"}}},"links":{"GetWorkflowItem":{"operationId":"getWorkflowItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/workflows\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Declares a workflow","description":"Declares a workflow","parameters":[],"requestBody":{"description":"The new Workflow resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workflow.DeclareWorkflowCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workflow.DeclareWorkflowCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workflow.DeclareWorkflowCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/workflows\/jobs\/{id}":{"get":{"operationId":"getWorkflowJobItem","tags":["WorkflowJob"],"responses":{"200":{"description":"WorkflowJob resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/WorkflowJob.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WorkflowJob-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/WorkflowJob-read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a WorkflowJob resource.","description":"Retrieves a WorkflowJob resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/workflows\/pipelines":{"get":{"operationId":"getWorkflowJobPipelineCollection","tags":["WorkflowJobPipeline"],"responses":{"200":{"description":"WorkflowJobPipeline collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/WorkflowJobPipeline.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/WorkflowJobPipeline"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/WorkflowJobPipeline"}}}}}},"summary":"Retrieves the collection of WorkflowJobPipeline resources.","description":"Retrieves the collection of WorkflowJobPipeline resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/workflows\/pipelines\/{id}":{"get":{"operationId":"getWorkflowJobPipelineItem","tags":["WorkflowJobPipeline"],"responses":{"200":{"description":"WorkflowJobPipeline resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/WorkflowJobPipeline.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WorkflowJobPipeline"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/WorkflowJobPipeline"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a WorkflowJobPipeline resource.","description":"Retrieves a WorkflowJobPipeline resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/workflows\/workflow-job-actions\/{id}":{"get":{"operationId":"getWorkflowJobActionItem","tags":["WorkflowJobAction"],"responses":{"200":{"description":"WorkflowJobAction resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/WorkflowJobAction.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WorkflowJobAction"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/WorkflowJobAction"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a WorkflowJobAction resource.","description":"Retrieves a WorkflowJobAction resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/workflows\/workflow-job-pipelines\/{id}\/steps":{"get":{"operationId":"api_workflow_job_pipelines_steps_get_subresourceWorkflowJobPipelineSubresource","tags":["PipelineStep","WorkflowJobPipeline"],"responses":{"200":{"description":"WorkflowJobPipeline resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStep.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStep"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStep"}}}}}},"summary":"Retrieves a WorkflowJobPipeline resource.","description":"Retrieves a WorkflowJobPipeline resource.","parameters":[{"name":"id","in":"path","description":"WorkflowJobPipeline identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/workflows\/{id}":{"get":{"operationId":"getWorkflowItem","tags":["Workflow"],"responses":{"200":{"description":"Workflow resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workflow.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workflow-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workflow-read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Workflow resource.","description":"Retrieves a Workflow resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/workflows\/{id}\/compilations":{"get":{"operationId":"api_workflows_compilations_get_subresourceWorkflowSubresource","tags":["Compilation","Workflow"],"responses":{"200":{"description":"Workflow resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Compilation.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Compilation"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Compilation"}}}}}},"summary":"Retrieves a Workflow resource.","description":"Retrieves a Workflow resource.","parameters":[{"name":"id","in":"path","description":"Workflow identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/workflows\/{id}\/compile":{"put":{"operationId":"workflow_compilationWorkflowItem","tags":["Workflow"],"responses":{"202":{"description":"Workflow resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workflow.CompileWorkflowCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workflow.CompileWorkflowCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workflow.CompileWorkflowCommand-read"}}},"links":{"GetWorkflowItem":{"operationId":"getWorkflowItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/workflows\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Launches a workflow compilation","description":"Launches a workflow compilation","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Workflow resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workflow.CompileWorkflowCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workflow.CompileWorkflowCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workflow.CompileWorkflowCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/workflows\/{id}\/delete":{"put":{"operationId":"soft_deleteWorkflowItem","tags":["Workflow"],"responses":{"202":{"description":"Workflow resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workflow.RemoveWorkflowCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workflow.RemoveWorkflowCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workflow.RemoveWorkflowCommand-read"}}},"links":{"GetWorkflowItem":{"operationId":"getWorkflowItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/workflows\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Replaces the Workflow resource.","description":"Replaces the Workflow resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Workflow resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workflow.RemoveWorkflowCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workflow.RemoveWorkflowCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workflow.RemoveWorkflowCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/workflows\/{id}\/jobs":{"get":{"operationId":"api_workflows_jobs_get_subresourceWorkflowSubresource","tags":["WorkflowJob","Workflow"],"responses":{"200":{"description":"Workflow resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/WorkflowJob.jsonld-read"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/WorkflowJob-read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/WorkflowJob-read"}}}}}},"summary":"Retrieves a Workflow resource.","description":"Retrieves a Workflow resource.","parameters":[{"name":"id","in":"path","description":"Workflow identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/runtime\/workflows\/{id}\/schedule-crontab":{"put":{"operationId":"workflow_schedule_crontabWorkflowItem","tags":["Workflow"],"responses":{"202":{"description":"Workflow resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workflow.DeclareWorkflowScheduleCrontabCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workflow.DeclareWorkflowScheduleCrontabCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workflow.DeclareWorkflowScheduleCrontabCommand-read"}}},"links":{"GetWorkflowItem":{"operationId":"getWorkflowItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/workflows\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Schedule a crontab for a workflow","description":"Schedule a crontab for a workflow","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Workflow resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workflow.DeclareWorkflowScheduleCrontabCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workflow.DeclareWorkflowScheduleCrontabCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workflow.DeclareWorkflowScheduleCrontabCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/workflows\/{id}\/schedule-immediate":{"put":{"operationId":"workflow_schedule_immediateWorkflowItem","tags":["Workflow"],"responses":{"202":{"description":"Workflow resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workflow.DeclareWorkflowScheduleImmediateCommand.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workflow.DeclareWorkflowScheduleImmediateCommand-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workflow.DeclareWorkflowScheduleImmediateCommand-read"}}},"links":{"GetWorkflowItem":{"operationId":"getWorkflowItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/runtime\/workflows\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Schedule a workflow to start immediately","description":"Schedule a workflow to start immediately","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Workflow resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Workflow.DeclareWorkflowScheduleImmediateCommandInput.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Workflow.DeclareWorkflowScheduleImmediateCommandInput"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Workflow.DeclareWorkflowScheduleImmediateCommandInput"}}},"required":true},"deprecated":false},"parameters":[]},"\/runtime\/workflows\/{id}\/schedules":{"get":{"operationId":"api_workflows_schedules_get_subresourceWorkflowSubresource","tags":["Schedule","Workflow"],"responses":{"200":{"description":"Workflow resource","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Schedule.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}},"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Schedule"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Schedule"}}}}}},"summary":"Retrieves a Workflow resource.","description":"Retrieves a Workflow resource.","parameters":[{"name":"id","in":"path","description":"Workflow identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false},{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/variables-from-constant\/{id}":{"get":{"operationId":"getVariableFromConstantItem","tags":["VariableFromConstant"],"responses":{"200":{"description":"VariableFromConstant resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConstant.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConstant-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConstant-read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a VariableFromConstant resource.","description":"Retrieves a VariableFromConstant resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"put":{"operationId":"editVariableFromConstantItem","tags":["VariableFromConstant"],"responses":{"200":{"description":"VariableFromConstant resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConstant.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConstant-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConstant-read"}}},"links":{"GetVariableFromConstantItem":{"operationId":"getVariableFromConstantItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/variables-from-constant\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Replaces the VariableFromConstant resource.","description":"Replaces the VariableFromConstant resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated VariableFromConstant resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConstant.jsonld-write"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConstant-write"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/VariableFromConstant-write"}}},"required":true},"deprecated":false},"delete":{"operationId":"deleteVariableFromConstantItem","tags":["VariableFromConstant"],"responses":{"204":{"description":"VariableFromConstant resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the VariableFromConstant resource.","description":"Removes the VariableFromConstant resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/variables-from-secret\/{id}":{"get":{"operationId":"getVariableFromSecretItem","tags":["VariableFromSecret"],"responses":{"200":{"description":"VariableFromSecret resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromSecret.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromSecret-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/VariableFromSecret-read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a VariableFromSecret resource.","description":"Retrieves a VariableFromSecret resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"put":{"operationId":"editVariableFromSecretItem","tags":["VariableFromSecret"],"responses":{"200":{"description":"VariableFromSecret resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromSecret.jsonld-read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromSecret-read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/VariableFromSecret-read"}}},"links":{"GetVariableFromSecretItem":{"operationId":"getVariableFromSecretItem","parameters":{"id":"$response.body#\/id"},"description":"The `id` value returned in the response can be used as the `id` parameter in `GET \/variables-from-secret\/{id}`."}}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Replaces the VariableFromSecret resource.","description":"Replaces the VariableFromSecret resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated VariableFromSecret resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromSecret.jsonld-write"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/VariableFromSecret-write"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/VariableFromSecret-write"}}},"required":true},"deprecated":false},"delete":{"operationId":"deleteVariableFromSecretItem","tags":["VariableFromSecret"],"responses":{"204":{"description":"VariableFromSecret resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the VariableFromSecret resource.","description":"Removes the VariableFromSecret resource.","parameters":[{"name":"id","in":"path","description":"Resource identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]}},"components":{"schemas":{"AbstractCloudEngine":{"type":"object","description":"","properties":{"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"environments":{"type":"array","items":{"type":"string","format":"iri-reference"}}}},"AbstractCloudEngine.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"environments":{"type":"array","items":{"type":"string","format":"iri-reference"}}}},"AbstractPipeline":{"type":"object","description":"","properties":{"id":{"readOnly":true,"type":"string","format":"uuid"},"steps":{"minItems":1,"type":"array","items":{"type":"string","format":"iri-reference"}}}},"AbstractPipeline.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"readOnly":true,"type":"string","format":"uuid"},"steps":{"minItems":1,"type":"array","items":{"type":"string","format":"iri-reference"}}}},"Action":{"type":"object","description":"","required":["configuration"],"properties":{"configuration":{"type":"object","additionalProperties":{"type":"string"}}}},"Action-read":{"type":"object","description":"","properties":{"id":{"readOnly":true,"type":"string","format":"uuid"},"code":{"type":"string"},"label":{"type":"string"},"configuration":{"type":"array","items":{"type":"string"}}},"required":["code","label","configuration"]},"Action.jsonld":{"type":"object","description":"","required":["configuration"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"configuration":{"type":"object","additionalProperties":{"type":"string"}}}},"Action.jsonld-read":{"type":"object","description":"","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"readOnly":true,"type":"string","format":"uuid"},"code":{"type":"string"},"label":{"type":"string"},"configuration":{"type":"array","items":{"type":"string"}}},"required":["code","label","configuration"]},"AkeneoInstance":{"type":"object","description":"","properties":{"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"url":{"type":"string"},"organization":{"type":"string","format":"iri-reference"},"workspace":{"type":"string","format":"iri-reference","nullable":true},"secret":{"type":"string","format":"iri-reference"},"linkedAccounts":{"type":"array","items":{"type":"string","format":"iri-reference"}},"oauthTokens":{"type":"array","items":{"type":"string","format":"iri-reference"}}}},"AkeneoInstance.AkeneoInstanceInput":{"type":"object","description":"","properties":{"pimUrl":{"type":"string"},"organization":{"type":"string","format":"uuid"},"secret":{"$ref":"#\/components\/schemas\/CreateSecretInput"}}},"AkeneoInstance.AkeneoInstanceInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"pimUrl":{"type":"string"},"organization":{"type":"string","format":"uuid"},"secret":{"$ref":"#\/components\/schemas\/CreateSecretInput.jsonld"}}},"AkeneoInstance.jsonld":{"type":"object","description":"","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"url":{"type":"string"},"organization":{"type":"string","format":"iri-reference"},"workspace":{"type":"string","format":"iri-reference","nullable":true},"secret":{"type":"string","format":"iri-reference"},"linkedAccounts":{"type":"array","items":{"type":"string","format":"iri-reference"}},"oauthTokens":{"type":"array","items":{"type":"string","format":"iri-reference"}}}},"AkeneoLinkedAccount":{"type":"object","description":"","properties":{"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"user":{"type":"string","format":"iri-reference","nullable":true},"tokenId":{"format":"uuid","externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"akeneoUserId":{"format":"uuid","externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"token":{"type":"string"},"akeneoInstance":{"type":"string","format":"iri-reference","nullable":true}},"required":["user","token"]},"AkeneoLinkedAccount.AkeneoLinkedAccountsInput":{"type":"object","description":"","properties":{"akeneoInstance":{"type":"string","format":"uuid"},"tokenId":{"type":"string","format":"uuid"},"akeneoUserId":{"type":"string","format":"uuid"},"token":{"type":"string"}}},"AkeneoLinkedAccount.AkeneoLinkedAccountsInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"akeneoInstance":{"type":"string","format":"uuid"},"tokenId":{"type":"string","format":"uuid"},"akeneoUserId":{"type":"string","format":"uuid"},"token":{"type":"string"}}},"AkeneoLinkedAccount.jsonld":{"type":"object","description":"","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"user":{"type":"string","format":"iri-reference","nullable":true},"tokenId":{"format":"uuid","externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"akeneoUserId":{"format":"uuid","externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"token":{"type":"string"},"akeneoInstance":{"type":"string","format":"iri-reference","nullable":true}},"required":["user","token"]},"AkeneoOauthToken-read":{"type":"object","description":"","properties":{"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"url":{"externalDocs":{"url":"http:\/\/schema.org\/url"},"type":"string"},"scopes":{"minItems":1,"type":"array","items":{"type":"string"}},"responseType":{"enum":["code"],"default":"code","example":"code","type":"string"}},"required":["url","responseType"]},"AkeneoOauthToken.OauthStateInput":{"type":"object","description":"","properties":{"url":{"type":"string"},"scope":{"type":"array","items":{"type":"string"}}}},"AkeneoOauthToken.OauthStateInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"url":{"type":"string"},"scope":{"type":"array","items":{"type":"string"}}}},"AkeneoOauthToken.OauthStateOutput-read":{"type":"object","description":""},"AkeneoOauthToken.OauthStateOutput.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"AkeneoOauthToken.OauthTokenInput":{"type":"object","description":"","properties":{"url":{"type":"string"},"state":{"type":"string"},"code":{"type":"string"}}},"AkeneoOauthToken.OauthTokenInput.jsonld":{"type":"object","description":"","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"url":{"type":"string"},"state":{"type":"string"},"code":{"type":"string"}}},"AkeneoOauthToken.OauthTokenOutput-read":{"type":"object","description":""},"AkeneoOauthToken.OauthTokenOutput.jsonld-read":{"type":"object","description":"","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"AkeneoOauthToken.jsonld-read":{"type":"object","description":"","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"url":{"externalDocs":{"url":"http:\/\/schema.org\/url"},"type":"string"},"scopes":{"minItems":1,"type":"array","items":{"type":"string"}},"responseType":{"enum":["code"],"default":"code","example":"code","type":"string"}},"required":["url","responseType"]},"BigDecimal":{"type":"object","description":"","properties":{"scale":{"readOnly":true,"description":"The scale (number of digits after the decimal point) of this decimal number.","type":"integer"},"sign":{"readOnly":true,"description":"{@inheritdoc}","type":"integer"},"unscaledValue":{"readOnly":true,"$ref":"#\/components\/schemas\/BigInteger"},"integralPart":{"readOnly":true,"description":"Returns a string representing the integral part of this decimal number.","type":"string"},"fractionalPart":{"readOnly":true,"description":"Returns a string representing the fractional part of this decimal number.","type":"string"},"nonZeroFractionalPart":{"readOnly":true,"description":"Returns whether this decimal number has a non-zero fractional part.","type":"boolean"},"zero":{"readOnly":true,"description":"Checks if this number equals zero.","type":"boolean"},"negative":{"readOnly":true,"description":"Checks if this number is strictly negative.","type":"boolean"},"negativeOrZero":{"readOnly":true,"description":"Checks if this number is negative or zero.","type":"boolean"},"positive":{"readOnly":true,"description":"Checks if this number is strictly positive.","type":"boolean"},"positiveOrZero":{"readOnly":true,"description":"Checks if this number is positive or zero.","type":"boolean"}}},"BigDecimal.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"scale":{"readOnly":true,"description":"The scale (number of digits after the decimal point) of this decimal number.","type":"integer"},"sign":{"readOnly":true,"description":"{@inheritdoc}","type":"integer"},"unscaledValue":{"readOnly":true,"$ref":"#\/components\/schemas\/BigInteger.jsonld"},"integralPart":{"readOnly":true,"description":"Returns a string representing the integral part of this decimal number.","type":"string"},"fractionalPart":{"readOnly":true,"description":"Returns a string representing the fractional part of this decimal number.","type":"string"},"nonZeroFractionalPart":{"readOnly":true,"description":"Returns whether this decimal number has a non-zero fractional part.","type":"boolean"},"zero":{"readOnly":true,"description":"Checks if this number equals zero.","type":"boolean"},"negative":{"readOnly":true,"description":"Checks if this number is strictly negative.","type":"boolean"},"negativeOrZero":{"readOnly":true,"description":"Checks if this number is negative or zero.","type":"boolean"},"positive":{"readOnly":true,"description":"Checks if this number is strictly positive.","type":"boolean"},"positiveOrZero":{"readOnly":true,"description":"Checks if this number is positive or zero.","type":"boolean"}}},"BigInteger":{"type":"object","description":"","properties":{"bitLength":{"readOnly":true,"description":"Returns the number of bits in the minimal two's-complement representation of this BigInteger, excluding a sign bit.","type":"integer"},"lowestSetBit":{"readOnly":true,"description":"Returns the index of the rightmost (lowest-order) one bit in this BigInteger.","type":"integer"},"even":{"readOnly":true,"description":"Returns whether this number is even.","type":"boolean"},"odd":{"readOnly":true,"description":"Returns whether this number is odd.","type":"boolean"},"sign":{"readOnly":true,"description":"{@inheritdoc}","type":"integer"},"zero":{"readOnly":true,"description":"Checks if this number equals zero.","type":"boolean"},"negative":{"readOnly":true,"description":"Checks if this number is strictly negative.","type":"boolean"},"negativeOrZero":{"readOnly":true,"description":"Checks if this number is negative or zero.","type":"boolean"},"positive":{"readOnly":true,"description":"Checks if this number is strictly positive.","type":"boolean"},"positiveOrZero":{"readOnly":true,"description":"Checks if this number is positive or zero.","type":"boolean"}}},"BigInteger.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"bitLength":{"readOnly":true,"description":"Returns the number of bits in the minimal two's-complement representation of this BigInteger, excluding a sign bit.","type":"integer"},"lowestSetBit":{"readOnly":true,"description":"Returns the index of the rightmost (lowest-order) one bit in this BigInteger.","type":"integer"},"even":{"readOnly":true,"description":"Returns whether this number is even.","type":"boolean"},"odd":{"readOnly":true,"description":"Returns whether this number is odd.","type":"boolean"},"sign":{"readOnly":true,"description":"{@inheritdoc}","type":"integer"},"zero":{"readOnly":true,"description":"Checks if this number equals zero.","type":"boolean"},"negative":{"readOnly":true,"description":"Checks if this number is strictly negative.","type":"boolean"},"negativeOrZero":{"readOnly":true,"description":"Checks if this number is negative or zero.","type":"boolean"},"positive":{"readOnly":true,"description":"Checks if this number is strictly positive.","type":"boolean"},"positiveOrZero":{"readOnly":true,"description":"Checks if this number is positive or zero.","type":"boolean"}}},"BigNumber":{"type":"object","description":"","properties":{"zero":{"readOnly":true,"description":"Checks if this number equals zero.","type":"boolean"},"negative":{"readOnly":true,"description":"Checks if this number is strictly negative.","type":"boolean"},"negativeOrZero":{"readOnly":true,"description":"Checks if this number is negative or zero.","type":"boolean"},"positive":{"readOnly":true,"description":"Checks if this number is strictly positive.","type":"boolean"},"positiveOrZero":{"readOnly":true,"description":"Checks if this number is positive or zero.","type":"boolean"},"sign":{"readOnly":true,"description":"Returns the sign of this number.","type":"integer"}}},"BigNumber.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"zero":{"readOnly":true,"description":"Checks if this number equals zero.","type":"boolean"},"negative":{"readOnly":true,"description":"Checks if this number is strictly negative.","type":"boolean"},"negativeOrZero":{"readOnly":true,"description":"Checks if this number is negative or zero.","type":"boolean"},"positive":{"readOnly":true,"description":"Checks if this number is strictly positive.","type":"boolean"},"positiveOrZero":{"readOnly":true,"description":"Checks if this number is positive or zero.","type":"boolean"},"sign":{"readOnly":true,"description":"Returns the sign of this number.","type":"integer"}}},"Buyable":{"type":"object","description":"","properties":{"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"sku":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"shortDescription":{"type":"string"},"description":{"type":"string"},"features":{"type":"array","items":{"type":"string"}},"priceList":{"type":"array","items":{"$ref":"#\/components\/schemas\/Price"}},"rank":{"minimum":0,"exclusiveMinimum":true,"type":"integer"},"active":{"type":"boolean"},"activeFrom":{"type":"string","format":"date-time"},"activeUntil":{"type":"string","format":"date-time"}},"required":["sku","name","slug","shortDescription","description","features"]},"Buyable.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"sku":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"shortDescription":{"type":"string"},"description":{"type":"string"},"features":{"type":"array","items":{"type":"string"}},"priceList":{"type":"array","items":{"$ref":"#\/components\/schemas\/Price.jsonld"}},"rank":{"minimum":0,"exclusiveMinimum":true,"type":"integer"},"active":{"type":"boolean"},"activeFrom":{"type":"string","format":"date-time"},"activeUntil":{"type":"string","format":"date-time"}},"required":["sku","name","slug","shortDescription","description","features"]},"Color-read":{"type":"object","description":""},"Color.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Compilation":{"type":"object","description":"","required":["id","pipeline"],"properties":{"id":{"type":"string","format":"uuid"},"currentVersion":{"type":"integer"},"createdAt":{"writeOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time"},"workflow":{"type":"string","format":"iri-reference","nullable":true},"pipeline":{"type":"string","format":"iri-reference","nullable":true},"workspace":{"type":"string","format":"iri-reference","nullable":true},"organization":{"type":"string","format":"iri-reference","nullable":true},"owner":{"type":"string","format":"iri-reference"}}},"Compilation.jsonld":{"type":"object","description":"","required":["id","pipeline"],"properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"type":"string","format":"uuid"},"currentVersion":{"type":"integer"},"createdAt":{"writeOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time"},"workflow":{"type":"string","format":"iri-reference","nullable":true},"pipeline":{"type":"string","format":"iri-reference","nullable":true},"workspace":{"type":"string","format":"iri-reference","nullable":true},"organization":{"type":"string","format":"iri-reference","nullable":true},"owner":{"type":"string","format":"iri-reference"}}},"Composer":{"type":"object","description":"","properties":{"autoloads":{"type":"array","items":{"$ref":"#\/components\/schemas\/ComposerAutoload"}},"packages":{"type":"object","additionalProperties":{"type":"string"}},"repositories":{"type":"array","items":{"$ref":"#\/components\/schemas\/ComposerRepository"}},"authentications":{"type":"array","items":{"$ref":"#\/components\/schemas\/ComposerAuthentication"}}}},"Composer.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"autoloads":{"type":"array","items":{"$ref":"#\/components\/schemas\/ComposerAutoload.jsonld"}},"packages":{"type":"object","additionalProperties":{"type":"string"}},"repositories":{"type":"array","items":{"$ref":"#\/components\/schemas\/ComposerRepository.jsonld"}},"authentications":{"type":"array","items":{"$ref":"#\/components\/schemas\/ComposerAuthentication.jsonld"}}}},"ComposerAuthentication":{"type":"object","description":"","properties":{"url":{"externalDocs":{"url":"http:\/\/schema.org\/url"},"type":"string"},"token":{"type":"string"}},"required":["token"]},"ComposerAuthentication.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"url":{"externalDocs":{"url":"http:\/\/schema.org\/url"},"type":"string"},"token":{"type":"string"}},"required":["token"]},"ComposerAutoload":{"type":"object","description":"","properties":{"type":{"enum":["psr-4"],"type":"string"},"namespace":{"type":"string"},"paths":{"type":"array","items":{"type":"string"}}},"required":["paths"]},"ComposerAutoload.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"type":{"enum":["psr-4"],"type":"string"},"namespace":{"type":"string"},"paths":{"type":"array","items":{"type":"string"}}},"required":["paths"]},"ComposerRepository":{"type":"object","description":"","required":["name"],"properties":{"name":{"type":"string"},"type":{"enum":["git","vcs"],"type":"string"},"url":{"oneOf":[{"pattern":"^(.*(((git|ssh|http(s)?)|(git@[\\w\\.]+))(:(\/\/)?)([\\w\\.@\\:\/\\-~]+)(\\.git)(\/)?).*)$"}],"type":"string"}}},"ComposerRepository.jsonld":{"type":"object","description":"","required":["name"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"type":"string"},"type":{"enum":["git","vcs"],"type":"string"},"url":{"oneOf":[{"pattern":"^(.*(((git|ssh|http(s)?)|(git@[\\w\\.]+))(:(\/\/)?)([\\w\\.@\\:\/\\-~]+)(\\.git)(\/)?).*)$"}],"type":"string"}}},"Configuration":{"type":"object","description":"","properties":{"id":{"readOnly":true,"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":"string"},"organization":{"type":"string","format":"iri-reference"},"workspace":{"type":"string","format":"iri-reference"},"contents":{"readOnly":true,"type":"object","additionalProperties":{"type":"string","nullable":true}}}},"Configuration-edit":{"type":"object","description":"","properties":{"name":{"type":"string"},"description":{"type":"string"}}},"Configuration-read":{"type":"object","description":"","properties":{"id":{"readOnly":true,"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string"},"organization":{"type":"string","format":"iri-reference"},"workspace":{"type":"string","format":"iri-reference"},"contents":{"readOnly":true,"type":"object","additionalProperties":{"type":"string","nullable":true}}}},"Configuration.ChangeConfigurationValueInput":{"type":"object","description":"","properties":{"contents":{"type":"object","additionalProperties":{"type":"string"}},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable"}}},"Configuration.ChangeConfigurationValueInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"contents":{"type":"object","additionalProperties":{"type":"string"}},"iterator":{"readOnly":true,"$ref":"#\/components\/schemas\/Traversable.jsonld"}}},"Configuration.CreateConfigurationInput":{"type":"object","description":"","properties":{"name":{"type":"string"},"description":{"type":"string"},"contents":{"type":"object","additionalProperties":{"type":"string"}}}},"Configuration.CreateConfigurationInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"contents":{"type":"object","additionalProperties":{"type":"string"}}}},"Configuration.RemoveConfigurationValueInput":{"type":"object","description":"","properties":{"contents":{"type":"array","items":{"type":"string"}}}},"Configuration.RemoveConfigurationValueInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"contents":{"type":"array","items":{"type":"string"}}}},"Configuration.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"readOnly":true,"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":"string"},"organization":{"type":"string","format":"iri-reference"},"workspace":{"type":"string","format":"iri-reference"},"contents":{"readOnly":true,"type":"object","additionalProperties":{"type":"string","nullable":true}}}},"Configuration.jsonld-edit":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"type":"string"},"description":{"type":"string"}}},"Configuration.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"readOnly":true,"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string"},"organization":{"type":"string","format":"iri-reference"},"workspace":{"type":"string","format":"iri-reference"},"contents":{"readOnly":true,"type":"object","additionalProperties":{"type":"string","nullable":true}}}},"Context":{"type":"object","description":"","properties":{"step":{"readOnly":true,"description":"Returns the step used by this context.","type":"integer"},"fixedScale":{"readOnly":true,"description":"Returns whether this context uses a fixed scale and step.","type":"boolean"}}},"Context.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"step":{"readOnly":true,"description":"Returns the step used by this context.","type":"integer"},"fixedScale":{"readOnly":true,"description":"Returns whether this context uses a fixed scale and step.","type":"boolean"}}},"CreateSecretInput":{"type":"object","description":"","properties":{"name":{"type":"string"},"description":{"type":"string"},"contents":{"type":"object","additionalProperties":{"type":"string"}}}},"CreateSecretInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"contents":{"type":"object","additionalProperties":{"type":"string"}}}},"Currency":{"type":"object","description":"","properties":{"currencyCode":{"description":"The currency code.","type":"string"},"numericCode":{"description":"The numeric currency code.","type":"integer"},"name":{"description":"The name of the currency.","type":"string"},"defaultFractionDigits":{"description":"The default number of fraction digits (typical scale) used with this currency.","type":"integer"}}},"Currency.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"currencyCode":{"description":"The currency code.","type":"string"},"numericCode":{"description":"The numeric currency code.","type":"integer"},"name":{"description":"The name of the currency.","type":"string"},"defaultFractionDigits":{"description":"The default number of fraction digits (typical scale) used with this currency.","type":"integer"}}},"Environment-read":{"type":"object","description":"","properties":{"id":{"readOnly":true,"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string"},"organization":{"type":"string","format":"iri-reference"},"workspace":{"type":"string","format":"iri-reference"}}},"Environment-write":{"type":"object","description":"","properties":{"name":{"type":"string"},"description":{"type":"string"}}},"Environment.AddMultipleVariableFromConfigurationInput":{"type":"object","description":"","properties":{"variables":{"type":"array","items":{"$ref":"#\/components\/schemas\/VariableFromConfigurationInput"}}}},"Environment.AddMultipleVariableFromConfigurationInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"variables":{"type":"array","items":{"$ref":"#\/components\/schemas\/VariableFromConfigurationInput.jsonld"}}}},"Environment.AddMultipleVariableFromConstantInput":{"type":"object","description":"","properties":{"variables":{"type":"array","items":{"$ref":"#\/components\/schemas\/VariableFromConstantInput"}}}},"Environment.AddMultipleVariableFromConstantInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"variables":{"type":"array","items":{"$ref":"#\/components\/schemas\/VariableFromConstantInput.jsonld"}}}},"Environment.AddMultipleVariableFromSecretInput":{"type":"object","description":"","properties":{"variables":{"type":"array","items":{"$ref":"#\/components\/schemas\/VariableFromSecretInput"}}}},"Environment.AddMultipleVariableFromSecretInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"variables":{"type":"array","items":{"$ref":"#\/components\/schemas\/VariableFromSecretInput.jsonld"}}}},"Environment.CreateEnvironmentInput":{"type":"object","description":"","properties":{"name":{"type":"string"},"description":{"type":"string"},"variables":{"type":"array","items":{"type":"string","format":"iri-reference"}}}},"Environment.CreateEnvironmentInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"variables":{"type":"array","items":{"type":"string","format":"iri-reference"}}}},"Environment.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"readOnly":true,"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string"},"organization":{"type":"string","format":"iri-reference"},"workspace":{"type":"string","format":"iri-reference"}}},"Environment.jsonld-write":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"type":"string"},"description":{"type":"string"}}},"Execution-read":{"type":"object","description":"","required":["id","code","status","errors","scheduledAt","reason"],"properties":{"id":{"type":"string","format":"uuid"},"code":{"type":"string"},"status":{"enum":["declared","scheduled","starting","started","stopped","finished","halted","unknown"],"default":"unknown","example":"unknown","type":"string"},"errors":{"minimum":0,"type":"integer"},"scheduledAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"startedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"finishedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"interruptedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"resumedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"updatedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"terminatedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"reason":{"type":"string","nullable":true},"currentVersion":{"type":"integer"}}},"Execution.DeclarePipelineExecutionCommand-read":{"type":"object","description":""},"Execution.DeclarePipelineExecutionCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Execution.DeclarePipelineExecutionCommandInput":{"type":"object","description":"","required":["schedule","pipeline"],"properties":{"schedule":{"$ref":"#\/components\/schemas\/Schedule"},"pipeline":{"$ref":"#\/components\/schemas\/Pipeline"}}},"Execution.DeclarePipelineExecutionCommandInput.jsonld":{"type":"object","description":"","required":["schedule","pipeline"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"schedule":{"$ref":"#\/components\/schemas\/Schedule.jsonld"},"pipeline":{"$ref":"#\/components\/schemas\/Pipeline.jsonld"}}},"Execution.InterruptPipelineExecutionCommand-read":{"type":"object","description":""},"Execution.InterruptPipelineExecutionCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Execution.InterruptPipelineExecutionCommandInput":{"type":"object","description":""},"Execution.InterruptPipelineExecutionCommandInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Execution.ResumePipelineExecutionCommand-read":{"type":"object","description":""},"Execution.ResumePipelineExecutionCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Execution.ResumePipelineExecutionCommandInput":{"type":"object","description":""},"Execution.ResumePipelineExecutionCommandInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Execution.TerminatePipelineExecutionCommand-read":{"type":"object","description":""},"Execution.TerminatePipelineExecutionCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Execution.TerminatePipelineExecutionCommandInput":{"type":"object","description":"","required":["reason"],"properties":{"reason":{"type":"string"}}},"Execution.TerminatePipelineExecutionCommandInput.jsonld":{"type":"object","description":"","required":["reason"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"reason":{"type":"string"}}},"Execution.jsonld-read":{"type":"object","description":"","required":["id","code","status","errors","scheduledAt","reason"],"properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"type":"string","format":"uuid"},"code":{"type":"string"},"status":{"enum":["declared","scheduled","starting","started","stopped","finished","halted","unknown"],"default":"unknown","example":"unknown","type":"string"},"errors":{"minimum":0,"type":"integer"},"scheduledAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"startedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"finishedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"interruptedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"resumedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"updatedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"terminatedAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"reason":{"type":"string","nullable":true},"currentVersion":{"type":"integer"}}},"ExecutionAction":{"type":"object","description":"","required":["execution","id"],"properties":{"execution":{"type":"string","format":"iri-reference","nullable":true},"id":{"type":"string","format":"uuid"}}},"ExecutionAction.jsonld":{"type":"object","description":"","required":["execution","id"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"execution":{"type":"string","format":"iri-reference","nullable":true},"id":{"type":"string","format":"uuid"}}},"ExecutionId":{"type":"object","description":"","properties":{"nil":{"readOnly":true,"type":"boolean"}}},"ExecutionId.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"nil":{"readOnly":true,"type":"boolean"}}},"ExecutionPipeline":{"type":"object","description":"","required":["execution"],"properties":{"execution":{"type":"string","format":"iri-reference","nullable":true},"id":{"readOnly":true,"type":"string","format":"uuid"},"steps":{"minItems":1,"type":"array","items":{"type":"string","format":"iri-reference"}}}},"ExecutionPipeline.jsonld":{"type":"object","description":"","required":["execution"],"properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"execution":{"type":"string","format":"iri-reference","nullable":true},"id":{"readOnly":true,"type":"string","format":"uuid"},"steps":{"minItems":1,"type":"array","items":{"type":"string","format":"iri-reference"}}}},"ExecutionPipelineJob":{"type":"object","description":"","required":["job"],"properties":{"job":{"type":"string","format":"iri-reference","nullable":true},"id":{"readOnly":true,"type":"string","format":"uuid"},"steps":{"minItems":1,"type":"array","items":{"type":"string","format":"iri-reference"}}}},"ExecutionPipelineJob.jsonld":{"type":"object","description":"","required":["job"],"properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"job":{"type":"string","format":"iri-reference","nullable":true},"id":{"readOnly":true,"type":"string","format":"uuid"},"steps":{"minItems":1,"type":"array","items":{"type":"string","format":"iri-reference"}}}},"ExecutionPipelineStep":{"type":"object","description":"","properties":{"id":{"readOnly":true,"type":"string","format":"uuid"},"pipeline":{"$ref":"#\/components\/schemas\/AbstractPipeline"},"metrics":{"type":"array","items":{"type":"string"}}},"required":["pipeline"]},"ExecutionPipelineStep.jsonld":{"type":"object","description":"","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"readOnly":true,"type":"string","format":"uuid"},"pipeline":{"$ref":"#\/components\/schemas\/AbstractPipeline.jsonld"},"metrics":{"type":"array","items":{"type":"string"}}},"required":["pipeline"]},"ExecutionWorkflow":{"type":"object","description":"","properties":{"id":{"readOnly":true,"type":"string","format":"uuid"},"jobs":{"minItems":1,"type":"array","items":{"type":"string","format":"iri-reference"}},"execution":{"type":"string","format":"iri-reference"}},"required":["execution"]},"ExecutionWorkflow.InterruptWorkflowExecutionCommand":{"type":"object","description":"","properties":{"id":{"$ref":"#\/components\/schemas\/ExecutionId"},"date":{"type":"string","format":"date-time"},"user":{"anyOf":[{"$ref":"#\/components\/schemas\/UserId"}],"nullable":true}}},"ExecutionWorkflow.InterruptWorkflowExecutionCommand.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"$ref":"#\/components\/schemas\/ExecutionId.jsonld"},"date":{"type":"string","format":"date-time"},"user":{"anyOf":[{"$ref":"#\/components\/schemas\/UserId.jsonld"}],"nullable":true}}},"ExecutionWorkflow.InterruptWorkflowExecutionCommandInput":{"type":"object","description":""},"ExecutionWorkflow.InterruptWorkflowExecutionCommandInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"ExecutionWorkflow.ResumeWorkflowExecutionCommand":{"type":"object","description":"","properties":{"id":{"$ref":"#\/components\/schemas\/ExecutionId"},"date":{"type":"string","format":"date-time"},"user":{"anyOf":[{"$ref":"#\/components\/schemas\/UserId"}],"nullable":true}}},"ExecutionWorkflow.ResumeWorkflowExecutionCommand.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"$ref":"#\/components\/schemas\/ExecutionId.jsonld"},"date":{"type":"string","format":"date-time"},"user":{"anyOf":[{"$ref":"#\/components\/schemas\/UserId.jsonld"}],"nullable":true}}},"ExecutionWorkflow.ResumeWorkflowExecutionCommandInput":{"type":"object","description":""},"ExecutionWorkflow.ResumeWorkflowExecutionCommandInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"ExecutionWorkflow.TerminateWorkflowExecutionCommand":{"type":"object","description":"","properties":{"id":{"$ref":"#\/components\/schemas\/ExecutionId"},"date":{"type":"string","format":"date-time"},"reason":{"type":"string"},"user":{"anyOf":[{"$ref":"#\/components\/schemas\/UserId"}],"nullable":true}}},"ExecutionWorkflow.TerminateWorkflowExecutionCommand.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"$ref":"#\/components\/schemas\/ExecutionId.jsonld"},"date":{"type":"string","format":"date-time"},"reason":{"type":"string"},"user":{"anyOf":[{"$ref":"#\/components\/schemas\/UserId.jsonld"}],"nullable":true}}},"ExecutionWorkflow.TerminateWorkflowExecutionCommandInput":{"type":"object","description":"","required":["reason"],"properties":{"reason":{"type":"string"}}},"ExecutionWorkflow.TerminateWorkflowExecutionCommandInput.jsonld":{"type":"object","description":"","required":["reason"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"reason":{"type":"string"}}},"ExecutionWorkflow.jsonld":{"type":"object","description":"","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"readOnly":true,"type":"string","format":"uuid"},"jobs":{"minItems":1,"type":"array","items":{"type":"string","format":"iri-reference"}},"execution":{"type":"string","format":"iri-reference"}},"required":["execution"]},"ExecutionWorkflowJob":{"type":"object","description":"","required":["id","workflow","pipeline","action"],"properties":{"id":{"type":"string","format":"uuid"},"workflow":{"type":"string","format":"iri-reference","nullable":true},"pipeline":{"type":"string","format":"iri-reference","nullable":true},"action":{"type":"string","format":"iri-reference","nullable":true}}},"ExecutionWorkflowJob.jsonld":{"type":"object","description":"","required":["id","workflow","pipeline","action"],"properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"type":"string","format":"uuid"},"workflow":{"type":"string","format":"iri-reference","nullable":true},"pipeline":{"type":"string","format":"iri-reference","nullable":true},"action":{"type":"string","format":"iri-reference","nullable":true}}},"ExecutionWorkflowJobAction":{"type":"object","description":"","required":["job","id"],"properties":{"job":{"type":"string","format":"iri-reference","nullable":true},"id":{"type":"string","format":"uuid"}}},"ExecutionWorkflowJobAction.jsonld":{"type":"object","description":"","required":["job","id"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"job":{"type":"string","format":"iri-reference","nullable":true},"id":{"type":"string","format":"uuid"}}},"Job":{"type":"object","description":"","properties":{"pipeline":{"anyOf":[{"$ref":"#\/components\/schemas\/Pipeline"}],"nullable":true},"action":{"anyOf":[{"$ref":"#\/components\/schemas\/Action"}],"nullable":true},"code":{"type":"string"},"label":{"type":"string"}},"required":["code","label"]},"Job.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"pipeline":{"anyOf":[{"$ref":"#\/components\/schemas\/Pipeline.jsonld"}],"nullable":true},"action":{"anyOf":[{"$ref":"#\/components\/schemas\/Action.jsonld"}],"nullable":true},"code":{"type":"string"},"label":{"type":"string"}},"required":["code","label"]},"Money":{"type":"object","description":"","properties":{"amount":{"readOnly":true,"description":"The amount.","$ref":"#\/components\/schemas\/BigDecimal"},"currency":{"readOnly":true,"description":"The currency.","$ref":"#\/components\/schemas\/Currency"},"context":{"readOnly":true,"description":"The context that defines the capability of this Money.","$ref":"#\/components\/schemas\/Context"},"minorAmount":{"readOnly":true,"description":"Returns the amount of this Money in minor units (cents) for the currency.","$ref":"#\/components\/schemas\/BigDecimal"},"unscaledAmount":{"readOnly":true,"description":"Returns a BigInteger containing the unscaled value (all digits) of this money.","$ref":"#\/components\/schemas\/BigInteger"},"amounts":{"readOnly":true,"description":"Required by interface MoneyContainer.","type":"array","items":{"$ref":"#\/components\/schemas\/BigNumber"}},"sign":{"readOnly":true,"description":"Returns the sign of this money.","type":"integer"},"zero":{"readOnly":true,"description":"Returns whether this money has zero value.","type":"boolean"},"negative":{"readOnly":true,"description":"Returns whether this money has a negative value.","type":"boolean"},"negativeOrZero":{"readOnly":true,"description":"Returns whether this money has a negative or zero value.","type":"boolean"},"positive":{"readOnly":true,"description":"Returns whether this money has a positive value.","type":"boolean"},"positiveOrZero":{"readOnly":true,"description":"Returns whether this money has a positive or zero value.","type":"boolean"}}},"Money.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"amount":{"readOnly":true,"description":"The amount.","$ref":"#\/components\/schemas\/BigDecimal.jsonld"},"currency":{"readOnly":true,"description":"The currency.","$ref":"#\/components\/schemas\/Currency.jsonld"},"context":{"readOnly":true,"description":"The context that defines the capability of this Money.","$ref":"#\/components\/schemas\/Context.jsonld"},"minorAmount":{"readOnly":true,"description":"Returns the amount of this Money in minor units (cents) for the currency.","$ref":"#\/components\/schemas\/BigDecimal.jsonld"},"unscaledAmount":{"readOnly":true,"description":"Returns a BigInteger containing the unscaled value (all digits) of this money.","$ref":"#\/components\/schemas\/BigInteger.jsonld"},"amounts":{"readOnly":true,"description":"Required by interface MoneyContainer.","type":"array","items":{"$ref":"#\/components\/schemas\/BigNumber.jsonld"}},"sign":{"readOnly":true,"description":"Returns the sign of this money.","type":"integer"},"zero":{"readOnly":true,"description":"Returns whether this money has zero value.","type":"boolean"},"negative":{"readOnly":true,"description":"Returns whether this money has a negative value.","type":"boolean"},"negativeOrZero":{"readOnly":true,"description":"Returns whether this money has a negative or zero value.","type":"boolean"},"positive":{"readOnly":true,"description":"Returns whether this money has a positive value.","type":"boolean"},"positiveOrZero":{"readOnly":true,"description":"Returns whether this money has a positive or zero value.","type":"boolean"}}},"OnPremiseRequest-on-premise-request.read":{"type":"object","description":"","properties":{"id":{"readOnly":true,"type":"string","format":"uuid"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"format":"email","externalDocs":{"url":"http:\/\/schema.org\/email"},"type":"string"},"message":{"minLength":2,"maxLength":1500,"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["firstName","lastName","message"]},"OnPremiseRequest-on-premise-request.write":{"type":"object","description":"","required":["firstName","lastName","message"],"properties":{"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"format":"email","externalDocs":{"url":"http:\/\/schema.org\/email"},"type":"string"},"message":{"minLength":2,"maxLength":1500,"type":"string"}}},"OnPremiseRequest.jsonld-on-premise-request.read":{"type":"object","description":"","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"readOnly":true,"type":"string","format":"uuid"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"format":"email","externalDocs":{"url":"http:\/\/schema.org\/email"},"type":"string"},"message":{"minLength":2,"maxLength":1500,"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["firstName","lastName","message"]},"OnPremiseRequest.jsonld-on-premise-request.write":{"type":"object","description":"","required":["firstName","lastName","message"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"format":"email","externalDocs":{"url":"http:\/\/schema.org\/email"},"type":"string"},"message":{"minLength":2,"maxLength":1500,"type":"string"}}},"OpaqueInterface":{"type":"object","description":""},"OpaqueInterface.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Option":{"type":"object","description":"","required":["offer","sku","name","slug","shortDescription","description","features"],"properties":{"offer":{"type":"string","format":"iri-reference","nullable":true},"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"sku":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"shortDescription":{"type":"string"},"description":{"type":"string"},"features":{"type":"array","items":{"type":"string"}},"priceList":{"type":"array","items":{"$ref":"#\/components\/schemas\/Price"}},"rank":{"minimum":0,"exclusiveMinimum":true,"type":"integer"},"active":{"type":"boolean"},"activeFrom":{"type":"string","format":"date-time"},"activeUntil":{"type":"string","format":"date-time"}}},"Option.jsonld":{"type":"object","description":"","required":["offer","sku","name","slug","shortDescription","description","features"],"properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"offer":{"type":"string","format":"iri-reference","nullable":true},"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"sku":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"shortDescription":{"type":"string"},"description":{"type":"string"},"features":{"type":"array","items":{"type":"string"}},"priceList":{"type":"array","items":{"$ref":"#\/components\/schemas\/Price.jsonld"}},"rank":{"minimum":0,"exclusiveMinimum":true,"type":"integer"},"active":{"type":"boolean"},"activeFrom":{"type":"string","format":"date-time"},"activeUntil":{"type":"string","format":"date-time"}}},"Organization":{"type":"object","description":"","properties":{"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"authorizations":{"type":"array","items":{"type":"string","format":"iri-reference"}},"name":{"type":"string"},"slug":{"type":"string"},"stripeCode":{"type":"string","nullable":true},"users":{"type":"array","items":{"type":"string","format":"iri-reference"}},"externalCollaborators":{"type":"array","items":{"type":"string","format":"iri-reference"}},"workspaces":{"type":"array","items":{"type":"string","format":"iri-reference"}},"activeUntil":{"type":"string","format":"date-time","nullable":true}},"required":["name"]},"Organization-add_collaborators":{"type":"object","description":"","properties":{"externalCollaborators":{"type":"array","items":{"type":"string","format":"iri-reference"}}}},"Organization.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"authorizations":{"type":"array","items":{"type":"string","format":"iri-reference"}},"name":{"type":"string"},"slug":{"type":"string"},"stripeCode":{"type":"string","nullable":true},"users":{"type":"array","items":{"type":"string","format":"iri-reference"}},"externalCollaborators":{"type":"array","items":{"type":"string","format":"iri-reference"}},"workspaces":{"type":"array","items":{"type":"string","format":"iri-reference"}},"activeUntil":{"type":"string","format":"date-time","nullable":true}},"required":["name"]},"Organization.jsonld-add_collaborators":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"externalCollaborators":{"type":"array","items":{"type":"string","format":"iri-reference"}}}},"Pipeline":{"type":"object","description":"","required":["steps","code"],"properties":{"steps":{"type":"array","items":{"$ref":"#\/components\/schemas\/Step"}},"code":{"type":"string"}}},"Pipeline-read":{"type":"object","description":"","properties":{"currentVersion":{"type":"integer"},"isSoftDeleted":{"type":"boolean"},"compiledAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"autoload":{"readOnly":true,"type":"array","items":{"type":"string"}},"packages":{"type":"array","items":{"type":"string"}},"repositories":{"type":"array","items":{"type":"string"}},"auths":{"type":"array","items":{"type":"string"}},"id":{"type":"string","format":"uuid"},"code":{"type":"string"},"label":{"type":"string"},"runtime":{"type":"array","items":{"type":"string"}},"steps":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStep-read"}}},"required":["repositories","auths","id","code","label"]},"Pipeline.AddAfterPipelineStepCommand-read":{"type":"object","description":""},"Pipeline.AddAfterPipelineStepCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.AddAfterPipelineStepCommandInput":{"type":"object","description":"","required":["code","label","configuration","probes"],"properties":{"code":{"type":"string"},"label":{"type":"string"},"configuration":{"type":"object","additionalProperties":{"type":"string"}},"probes":{"type":"array","items":{"$ref":"#\/components\/schemas\/Probe"}}}},"Pipeline.AddAfterPipelineStepCommandInput.jsonld":{"type":"object","description":"","required":["code","label","configuration","probes"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"code":{"type":"string"},"label":{"type":"string"},"configuration":{"type":"object","additionalProperties":{"type":"string"}},"probes":{"type":"array","items":{"$ref":"#\/components\/schemas\/Probe.jsonld"}}}},"Pipeline.AddBeforePipelineStepCommand-read":{"type":"object","description":""},"Pipeline.AddBeforePipelineStepCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.AddBeforePipelineStepCommandInput":{"type":"object","description":"","required":["code","label","configuration","probes"],"properties":{"code":{"type":"string"},"label":{"type":"string"},"configuration":{"type":"object","additionalProperties":{"type":"string"}},"probes":{"type":"array","items":{"$ref":"#\/components\/schemas\/Probe"}}}},"Pipeline.AddBeforePipelineStepCommandInput.jsonld":{"type":"object","description":"","required":["code","label","configuration","probes"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"code":{"type":"string"},"label":{"type":"string"},"configuration":{"type":"object","additionalProperties":{"type":"string"}},"probes":{"type":"array","items":{"$ref":"#\/components\/schemas\/Probe.jsonld"}}}},"Pipeline.AddPipelineComposerAuthCommand-read":{"type":"object","description":""},"Pipeline.AddPipelineComposerAuthCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.AddPipelineComposerAuthCommandInput":{"type":"object","description":"","properties":{"url":{"externalDocs":{"url":"http:\/\/schema.org\/url"},"type":"string"},"token":{"type":"string"}},"required":["token"]},"Pipeline.AddPipelineComposerAuthCommandInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"url":{"externalDocs":{"url":"http:\/\/schema.org\/url"},"type":"string"},"token":{"type":"string"}},"required":["token"]},"Pipeline.AddPipelineComposerPSR4AutoloadCommand-read":{"type":"object","description":""},"Pipeline.AddPipelineComposerPSR4AutoloadCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.AddPipelineComposerPSR4AutoloadCommandInput":{"type":"object","description":"","required":["namespace","paths"],"properties":{"namespace":{"type":"string"},"paths":{"type":"array","items":{"type":"string"}}}},"Pipeline.AddPipelineComposerPSR4AutoloadCommandInput.jsonld":{"type":"object","description":"","required":["namespace","paths"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"namespace":{"type":"string"},"paths":{"type":"array","items":{"type":"string"}}}},"Pipeline.AddPipelineComposerPackageCommand-read":{"type":"object","description":""},"Pipeline.AddPipelineComposerPackageCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.AddPipelineComposerPackageCommandInput":{"type":"object","description":"","required":["package","version"],"properties":{"package":{"type":"string"},"version":{"type":"string"}}},"Pipeline.AddPipelineComposerPackageCommandInput.jsonld":{"type":"object","description":"","required":["package","version"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"package":{"type":"string"},"version":{"type":"string"}}},"Pipeline.AddPipelineComposerRepositoryCommand-read":{"type":"object","description":""},"Pipeline.AddPipelineComposerRepositoryCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.AddPipelineComposerRepositoryCommandInput":{"type":"object","description":"","required":["name","type","url"],"properties":{"name":{"type":"string"},"type":{"type":"string"},"url":{"type":"string"}}},"Pipeline.AddPipelineComposerRepositoryCommandInput.jsonld":{"type":"object","description":"","required":["name","type","url"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"url":{"type":"string"}}},"Pipeline.AddPipelineStepProbeCommand-read":{"type":"object","description":""},"Pipeline.AddPipelineStepProbeCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.AddPipelineStepProbeCommandInput":{"type":"object","description":"","required":["probe"],"properties":{"probe":{"$ref":"#\/components\/schemas\/Probe"}}},"Pipeline.AddPipelineStepProbeCommandInput.jsonld":{"type":"object","description":"","required":["probe"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"probe":{"$ref":"#\/components\/schemas\/Probe.jsonld"}}},"Pipeline.AppendPipelineStepCommand-read":{"type":"object","description":""},"Pipeline.AppendPipelineStepCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.AppendPipelineStepCommandInput":{"type":"object","description":"","required":["code","label","configuration","probes"],"properties":{"code":{"type":"string"},"label":{"type":"string"},"configuration":{"type":"object","additionalProperties":{"type":"string"}},"probes":{"type":"array","items":{"$ref":"#\/components\/schemas\/Probe"}}}},"Pipeline.AppendPipelineStepCommandInput.jsonld":{"type":"object","description":"","required":["code","label","configuration","probes"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"code":{"type":"string"},"label":{"type":"string"},"configuration":{"type":"object","additionalProperties":{"type":"string"}},"probes":{"type":"array","items":{"$ref":"#\/components\/schemas\/Probe.jsonld"}}}},"Pipeline.CompilePipelineCommand-read":{"type":"object","description":""},"Pipeline.CompilePipelineCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.CompilePipelineCommandInput":{"type":"object","description":""},"Pipeline.CompilePipelineCommandInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.DeclarePipelineCommand-read":{"type":"object","description":""},"Pipeline.DeclarePipelineCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.DeclarePipelineCommandInput":{"type":"object","description":"","required":["steps","composer","code","label"],"properties":{"steps":{"type":"array","items":{"$ref":"#\/components\/schemas\/Step"}},"composer":{"$ref":"#\/components\/schemas\/Composer"},"code":{"type":"string"},"label":{"type":"string"}}},"Pipeline.DeclarePipelineCommandInput.jsonld":{"type":"object","description":"","required":["steps","composer","code","label"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"steps":{"type":"array","items":{"$ref":"#\/components\/schemas\/Step.jsonld"}},"composer":{"$ref":"#\/components\/schemas\/Composer.jsonld"},"code":{"type":"string"},"label":{"type":"string"}}},"Pipeline.DeclarePipelineScheduleImmediateCommand-read":{"type":"object","description":""},"Pipeline.DeclarePipelineScheduleImmediateCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.DeclarePipelineScheduleImmediateCommandInput":{"type":"object","description":"","properties":{"environment":{"oneOf":[{"format":"uuid"}],"type":"string","nullable":true}}},"Pipeline.DeclarePipelineScheduleImmediateCommandInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"environment":{"oneOf":[{"format":"uuid"}],"type":"string","nullable":true}}},"Pipeline.DeclarePipelineScheduleOnceCommand-read":{"type":"object","description":""},"Pipeline.DeclarePipelineScheduleOnceCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.DeclarePipelineScheduleOnceCommandInput":{"type":"object","description":"","properties":{"date":{"type":"string","format":"date-time"},"environment":{"oneOf":[{"format":"uuid"}],"type":"string","nullable":true}}},"Pipeline.DeclarePipelineScheduleOnceCommandInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"date":{"type":"string","format":"date-time"},"environment":{"oneOf":[{"format":"uuid"}],"type":"string","nullable":true}}},"Pipeline.MoveAfterPipelineStepCommand-read":{"type":"object","description":""},"Pipeline.MoveAfterPipelineStepCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.MoveAfterPipelineStepCommandInput":{"type":"object","description":"","required":["after","code"],"properties":{"after":{"type":"string"},"code":{"type":"string"}}},"Pipeline.MoveAfterPipelineStepCommandInput.jsonld":{"type":"object","description":"","required":["after","code"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"after":{"type":"string"},"code":{"type":"string"}}},"Pipeline.MoveBeforePipelineStepCommand-read":{"type":"object","description":""},"Pipeline.MoveBeforePipelineStepCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.MoveBeforePipelineStepCommandInput":{"type":"object","description":"","required":["before","code"],"properties":{"before":{"type":"string"},"code":{"type":"string"}}},"Pipeline.MoveBeforePipelineStepCommandInput.jsonld":{"type":"object","description":"","required":["before","code"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"before":{"type":"string"},"code":{"type":"string"}}},"Pipeline.RemovePipelineComposerAuthCommand-read":{"type":"object","description":""},"Pipeline.RemovePipelineComposerAuthCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.RemovePipelineComposerAuthCommandInput":{"type":"object","description":"","properties":{"url":{"type":"string"}}},"Pipeline.RemovePipelineComposerAuthCommandInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"url":{"type":"string"}}},"Pipeline.RemovePipelineComposerPSR4AutoloadCommand-read":{"type":"object","description":""},"Pipeline.RemovePipelineComposerPSR4AutoloadCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.RemovePipelineComposerPSR4AutoloadCommandInput":{"type":"object","description":"","properties":{"namespace":{"type":"string"}}},"Pipeline.RemovePipelineComposerPSR4AutoloadCommandInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"namespace":{"type":"string"}}},"Pipeline.RemovePipelineComposerPackageCommand-read":{"type":"object","description":""},"Pipeline.RemovePipelineComposerPackageCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.RemovePipelineComposerPackageCommandInput":{"type":"object","description":"","properties":{"package":{"type":"string"}}},"Pipeline.RemovePipelineComposerPackageCommandInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"package":{"type":"string"}}},"Pipeline.RemovePipelineComposerRepositoryCommand-read":{"type":"object","description":""},"Pipeline.RemovePipelineComposerRepositoryCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.RemovePipelineComposerRepositoryCommandInput":{"type":"object","description":"","properties":{"name":{"type":"string"}}},"Pipeline.RemovePipelineComposerRepositoryCommandInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"type":"string"}}},"Pipeline.RemovePipelineStepProbeCommand-read":{"type":"object","description":""},"Pipeline.RemovePipelineStepProbeCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.ReorderPipelineStepsCommand-read":{"type":"object","description":""},"Pipeline.ReorderPipelineStepsCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.ReorderPipelineStepsCommandInput":{"type":"object","description":"","required":["codes"],"properties":{"codes":{"type":"array","items":{"type":"string"}}}},"Pipeline.ReorderPipelineStepsCommandInput.jsonld":{"type":"object","description":"","required":["codes"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"codes":{"type":"array","items":{"type":"string"}}}},"Pipeline.ReplacePipelineStepCommand-read":{"type":"object","description":""},"Pipeline.ReplacePipelineStepCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Pipeline.ReplacePipelineStepCommandInput":{"type":"object","description":"","required":["code","label","configuration","probes"],"properties":{"code":{"type":"string"},"label":{"type":"string"},"configuration":{"type":"object","additionalProperties":{"type":"string"}},"probes":{"type":"array","items":{"$ref":"#\/components\/schemas\/Probe"}}}},"Pipeline.ReplacePipelineStepCommandInput.jsonld":{"type":"object","description":"","required":["code","label","configuration","probes"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"code":{"type":"string"},"label":{"type":"string"},"configuration":{"type":"object","additionalProperties":{"type":"string"}},"probes":{"type":"array","items":{"$ref":"#\/components\/schemas\/Probe.jsonld"}}}},"Pipeline.jsonld":{"type":"object","description":"","required":["steps","code"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"steps":{"type":"array","items":{"$ref":"#\/components\/schemas\/Step.jsonld"}},"code":{"type":"string"}}},"Pipeline.jsonld-read":{"type":"object","description":"","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"currentVersion":{"type":"integer"},"isSoftDeleted":{"type":"boolean"},"compiledAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"autoload":{"readOnly":true,"type":"array","items":{"type":"string"}},"packages":{"type":"array","items":{"type":"string"}},"repositories":{"type":"array","items":{"type":"string"}},"auths":{"type":"array","items":{"type":"string"}},"id":{"type":"string","format":"uuid"},"code":{"type":"string"},"label":{"type":"string"},"runtime":{"type":"array","items":{"type":"string"}},"steps":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStep.jsonld-read"}}},"required":["repositories","auths","id","code","label"]},"PipelineStep":{"type":"object","description":"","properties":{"id":{"readOnly":true,"type":"string","format":"uuid"},"order":{"type":"integer"},"code":{"type":"string"},"label":{"type":"string"},"pipeline":{"$ref":"#\/components\/schemas\/AbstractPipeline"},"probes":{"type":"array","items":{"type":"string","format":"iri-reference"}},"configuration":{"type":"array","items":{"type":"string"}}},"required":["order","code","label","pipeline","configuration"]},"PipelineStep-read":{"type":"object","description":"","required":["code","label","configuration"],"properties":{"code":{"type":"string"},"label":{"type":"string"},"configuration":{"type":"array","items":{"type":"string"}}}},"PipelineStep.jsonld":{"type":"object","description":"","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"readOnly":true,"type":"string","format":"uuid"},"order":{"type":"integer"},"code":{"type":"string"},"label":{"type":"string"},"pipeline":{"$ref":"#\/components\/schemas\/AbstractPipeline.jsonld"},"probes":{"type":"array","items":{"type":"string","format":"iri-reference"}},"configuration":{"type":"array","items":{"type":"string"}}},"required":["order","code","label","pipeline","configuration"]},"PipelineStep.jsonld-read":{"type":"object","description":"","required":["code","label","configuration"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"code":{"type":"string"},"label":{"type":"string"},"configuration":{"type":"array","items":{"type":"string"}}}},"PipelineStepProbe":{"type":"object","description":"","properties":{"id":{"readOnly":true,"type":"string","format":"uuid"},"code":{"type":"string"},"order":{"type":"integer"},"label":{"type":"string"},"step":{"type":"string","format":"iri-reference"}},"required":["code","order","label","step"]},"PipelineStepProbe.jsonld":{"type":"object","description":"","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"readOnly":true,"type":"string","format":"uuid"},"code":{"type":"string"},"order":{"type":"integer"},"label":{"type":"string"},"step":{"type":"string","format":"iri-reference"}},"required":["code","order","label","step"]},"Price":{"type":"object","description":"","properties":{"id":{"format":"uuid","externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"buyable":{"$ref":"#\/components\/schemas\/Buyable"},"type":{"$ref":"#\/components\/schemas\/SubscriptionType"},"amount":{"type":"string"},"price":{"$ref":"#\/components\/schemas\/Money"},"currency":{"type":"string","nullable":true}},"required":["amount"]},"Price-read":{"type":"object","description":"","properties":{"type":{"$ref":"#\/components\/schemas\/SubscriptionType-read"},"amount":{"type":"string"},"currency":{"type":"string","nullable":true}},"required":["amount"]},"Price.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"format":"uuid","externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"buyable":{"$ref":"#\/components\/schemas\/Buyable.jsonld"},"type":{"$ref":"#\/components\/schemas\/SubscriptionType.jsonld"},"amount":{"type":"string"},"price":{"$ref":"#\/components\/schemas\/Money.jsonld"},"currency":{"type":"string","nullable":true}},"required":["amount"]},"Price.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"type":{"$ref":"#\/components\/schemas\/SubscriptionType.jsonld-read"},"amount":{"type":"string"},"currency":{"type":"string","nullable":true}},"required":["amount"]},"Probe":{"type":"object","description":"","required":["code","label"],"properties":{"code":{"type":"string"},"label":{"type":"string"}}},"Probe.jsonld":{"type":"object","description":"","required":["code","label"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"code":{"type":"string"},"label":{"type":"string"}}},"ReferralCode-referral-code.read":{"type":"object","description":"","properties":{"id":{"readOnly":true,"type":"string","format":"uuid"},"user":{"type":"string","format":"iri-reference","nullable":true},"code":{"type":"string"},"referralRequests":{"readOnly":true,"type":"array","items":{"type":"string","format":"iri-reference"}}}},"ReferralCode-referral-code.write":{"type":"object","description":"","properties":{"user":{"type":"string","format":"iri-reference","nullable":true}}},"ReferralCode.jsonld-referral-code.read":{"type":"object","description":"","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"readOnly":true,"type":"string","format":"uuid"},"user":{"type":"string","format":"iri-reference","nullable":true},"code":{"type":"string"},"referralRequests":{"readOnly":true,"type":"array","items":{"type":"string","format":"iri-reference"}}}},"ReferralCode.jsonld-referral-code.write":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"user":{"type":"string","format":"iri-reference","nullable":true}}},"ReferralRequest-referral-request.read":{"type":"object","description":"","properties":{"id":{"readOnly":true,"type":"string","format":"uuid"},"email":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"userName":{"type":"string"},"companyName":{"type":"string"},"creationDate":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time"},"referralCode":{"type":"string","format":"iri-reference","nullable":true},"approver":{"type":"string","format":"iri-reference","nullable":true},"status":{"enum":["pending","approved","rejected"],"default":"pending","example":"pending","type":"string"}},"required":["email","firstName","lastName","userName","companyName"]},"ReferralRequest.ReferralRequestInput":{"type":"object","description":"","properties":{"email":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"username":{"type":"string"},"companyName":{"type":"string"},"referralCode":{"type":"string"}}},"ReferralRequest.ReferralRequestInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"email":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"username":{"type":"string"},"companyName":{"type":"string"},"referralCode":{"type":"string"}}},"ReferralRequest.jsonld-referral-request.read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"readOnly":true,"type":"string","format":"uuid"},"email":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"userName":{"type":"string"},"companyName":{"type":"string"},"creationDate":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time"},"referralCode":{"type":"string","format":"iri-reference","nullable":true},"approver":{"type":"string","format":"iri-reference","nullable":true},"status":{"enum":["pending","approved","rejected"],"default":"pending","example":"pending","type":"string"}},"required":["email","firstName","lastName","userName","companyName"]},"Region":{"type":"object","description":"","properties":{"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"provider":{"type":"string"},"datacenterName":{"type":"string"},"datacenterAddress":{"type":"string"},"cloudEngine":{"$ref":"#\/components\/schemas\/AbstractCloudEngine"},"workspaces":{"type":"array","items":{"type":"string","format":"iri-reference"}}},"required":["provider","datacenterName","datacenterAddress"]},"Region.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"provider":{"type":"string"},"datacenterName":{"type":"string"},"datacenterAddress":{"type":"string"},"cloudEngine":{"$ref":"#\/components\/schemas\/AbstractCloudEngine.jsonld"},"workspaces":{"type":"array","items":{"type":"string","format":"iri-reference"}}},"required":["provider","datacenterName","datacenterAddress"]},"Schedule":{"type":"object","description":""},"Schedule.jsonld":{"type":"object","description":"","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]}}},"Secret":{"type":"object","description":"","properties":{"id":{"readOnly":true,"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":"string"},"organization":{"type":"string","format":"iri-reference"},"workspace":{"type":"string","format":"iri-reference","nullable":true},"contents":{"readOnly":true,"type":"object","additionalProperties":{"type":"string","nullable":true}}}},"Secret-edit":{"type":"object","description":"","properties":{"name":{"type":"string"},"description":{"type":"string"}}},"Secret-read":{"type":"object","description":"","properties":{"id":{"readOnly":true,"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string"},"organization":{"type":"string","format":"iri-reference"},"workspace":{"type":"string","format":"iri-reference","nullable":true},"contents":{"readOnly":true,"type":"object","additionalProperties":{"type":"string","nullable":true}}}},"Secret.ChangeSecretValueInput":{"type":"object","description":"","properties":{"contents":{"type":"object","additionalProperties":{"$ref":"#\/components\/schemas\/OpaqueInterface"}}}},"Secret.ChangeSecretValueInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"contents":{"type":"object","additionalProperties":{"$ref":"#\/components\/schemas\/OpaqueInterface.jsonld"}}}},"Secret.CreateSecretInput":{"type":"object","description":"","properties":{"name":{"type":"string"},"description":{"type":"string"},"contents":{"type":"object","additionalProperties":{"type":"string"}}}},"Secret.CreateSecretInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"contents":{"type":"object","additionalProperties":{"type":"string"}}}},"Secret.RemoveSecretValueInput":{"type":"object","description":"","properties":{"contents":{"type":"array","items":{"type":"string"}}}},"Secret.RemoveSecretValueInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"contents":{"type":"array","items":{"type":"string"}}}},"Secret.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"readOnly":true,"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":"string"},"organization":{"type":"string","format":"iri-reference"},"workspace":{"type":"string","format":"iri-reference","nullable":true},"contents":{"readOnly":true,"type":"object","additionalProperties":{"type":"string","nullable":true}}}},"Secret.jsonld-edit":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"type":"string"},"description":{"type":"string"}}},"Secret.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"readOnly":true,"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string"},"organization":{"type":"string","format":"iri-reference"},"workspace":{"type":"string","format":"iri-reference","nullable":true},"contents":{"readOnly":true,"type":"object","additionalProperties":{"type":"string","nullable":true}}}},"Step":{"type":"object","description":"","required":["configuration","code","label","probes"],"properties":{"configuration":{"type":"object","additionalProperties":{"type":"string"}},"code":{"type":"string"},"label":{"type":"string"},"probes":{"type":"array","items":{"$ref":"#\/components\/schemas\/Probe"}}}},"Step.jsonld":{"type":"object","description":"","required":["configuration","code","label","probes"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"configuration":{"type":"object","additionalProperties":{"type":"string"}},"code":{"type":"string"},"label":{"type":"string"},"probes":{"type":"array","items":{"$ref":"#\/components\/schemas\/Probe.jsonld"}}}},"Subscription":{"type":"object","description":"","properties":{"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"organization":{"type":"string","format":"iri-reference"},"offer":{"type":"string","format":"iri-reference","nullable":true},"options":{"type":"array","items":{"type":"string","format":"iri-reference"}},"cost":{"$ref":"#\/components\/schemas\/Price"},"periods":{"type":"object","additionalProperties":{"type":"string","format":"iri-reference"}}},"required":["organization","cost"]},"Subscription.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"organization":{"type":"string","format":"iri-reference"},"offer":{"type":"string","format":"iri-reference","nullable":true},"options":{"type":"array","items":{"type":"string","format":"iri-reference"}},"cost":{"$ref":"#\/components\/schemas\/Price.jsonld"},"periods":{"type":"object","additionalProperties":{"type":"string","format":"iri-reference"}}},"required":["organization","cost"]},"SubscriptionOffer-read":{"type":"object","description":"","required":["color","sku","name","slug","shortDescription","description","features"],"properties":{"color":{"$ref":"#\/components\/schemas\/Color-read"},"colorDepth":{"type":"integer"},"sku":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"shortDescription":{"type":"string"},"description":{"type":"string"},"features":{"type":"array","items":{"type":"string"}},"priceList":{"type":"array","items":{"$ref":"#\/components\/schemas\/Price-read"}},"rank":{"minimum":0,"exclusiveMinimum":true,"type":"integer"},"active":{"type":"boolean"},"activeFrom":{"type":"string","format":"date-time"},"activeUntil":{"type":"string","format":"date-time"}}},"SubscriptionOffer-write":{"type":"object","description":"","properties":{"rank":{"minimum":0,"exclusiveMinimum":true,"type":"integer"},"active":{"type":"boolean"},"activeFrom":{"type":"string","format":"date-time"},"activeUntil":{"type":"string","format":"date-time"}}},"SubscriptionOffer.jsonld-read":{"type":"object","description":"","required":["color","sku","name","slug","shortDescription","description","features"],"properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"color":{"$ref":"#\/components\/schemas\/Color.jsonld-read"},"colorDepth":{"type":"integer"},"sku":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"shortDescription":{"type":"string"},"description":{"type":"string"},"features":{"type":"array","items":{"type":"string"}},"priceList":{"type":"array","items":{"$ref":"#\/components\/schemas\/Price.jsonld-read"}},"rank":{"minimum":0,"exclusiveMinimum":true,"type":"integer"},"active":{"type":"boolean"},"activeFrom":{"type":"string","format":"date-time"},"activeUntil":{"type":"string","format":"date-time"}}},"SubscriptionOffer.jsonld-write":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"rank":{"minimum":0,"exclusiveMinimum":true,"type":"integer"},"active":{"type":"boolean"},"activeFrom":{"type":"string","format":"date-time"},"activeUntil":{"type":"string","format":"date-time"}}},"SubscriptionOption":{"type":"object","description":"","properties":{"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"subscription":{"type":"string","format":"iri-reference","nullable":true},"option":{"type":"string","format":"iri-reference","nullable":true},"price":{"$ref":"#\/components\/schemas\/Price"}},"required":["subscription","option","price"]},"SubscriptionOption.jsonld":{"type":"object","description":"","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"subscription":{"type":"string","format":"iri-reference","nullable":true},"option":{"type":"string","format":"iri-reference","nullable":true},"price":{"$ref":"#\/components\/schemas\/Price.jsonld"}},"required":["subscription","option","price"]},"SubscriptionType":{"type":"object","description":"","properties":{"name":{"readOnly":true,"type":"string"},"value":{"readOnly":true,"type":"string"}}},"SubscriptionType-read":{"type":"object","description":""},"SubscriptionType.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"readOnly":true,"type":"string"},"value":{"readOnly":true,"type":"string"}}},"SubscriptionType.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Traversable":{"type":"object","description":""},"Traversable.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"User":{"type":"object","description":"","properties":{"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"username":{"type":"string"},"email":{"format":"email","externalDocs":{"url":"http:\/\/schema.org\/email"},"type":"string"},"password":{"type":"string"},"enabled":{"type":"boolean"},"roles":{"type":"array","items":{"type":"array","items":{"type":"string"}}},"authorizations":{"type":"array","items":{"type":"string","format":"iri-reference"}},"organization":{"type":"string","format":"iri-reference"},"additionalOrganizations":{"type":"array","items":{"type":"string","format":"iri-reference"}},"workspaces":{"type":"array","items":{"type":"string","format":"iri-reference"}},"currentWorkspace":{"type":"string","format":"iri-reference","nullable":true},"currentOrganization":{"type":"string","format":"iri-reference","nullable":true},"referralCodes":{"readOnly":true,"type":"array","items":{"type":"string","format":"iri-reference"}},"acceptedReferralRequests":{"readOnly":true,"type":"array","items":{"type":"string","format":"iri-reference"}},"akeneoLinkedAccounts":{"type":"array","items":{"type":"string","format":"iri-reference"}},"userIdentifier":{"readOnly":true,"type":"string"},"fullName":{"readOnly":true,"type":"string","nullable":true},"salt":{"readOnly":true,"type":"string"},"workspace":{"writeOnly":true,"type":"array","items":{"type":"string","format":"iri-reference"}}},"required":["firstName","lastName","username"]},"User.UserChangePasswordInput":{"type":"object","description":"","properties":{"currentPassword":{"type":"string"},"newPassword":{"type":"string"},"confirmPassword":{"type":"string"}}},"User.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"username":{"type":"string"},"email":{"format":"email","externalDocs":{"url":"http:\/\/schema.org\/email"},"type":"string"},"password":{"type":"string"},"enabled":{"type":"boolean"},"roles":{"type":"array","items":{"type":"array","items":{"type":"string"}}},"authorizations":{"type":"array","items":{"type":"string","format":"iri-reference"}},"organization":{"type":"string","format":"iri-reference"},"additionalOrganizations":{"type":"array","items":{"type":"string","format":"iri-reference"}},"workspaces":{"type":"array","items":{"type":"string","format":"iri-reference"}},"currentWorkspace":{"type":"string","format":"iri-reference","nullable":true},"currentOrganization":{"type":"string","format":"iri-reference","nullable":true},"referralCodes":{"readOnly":true,"type":"array","items":{"type":"string","format":"iri-reference"}},"acceptedReferralRequests":{"readOnly":true,"type":"array","items":{"type":"string","format":"iri-reference"}},"akeneoLinkedAccounts":{"type":"array","items":{"type":"string","format":"iri-reference"}},"userIdentifier":{"readOnly":true,"type":"string"},"fullName":{"readOnly":true,"type":"string","nullable":true},"salt":{"readOnly":true,"type":"string"},"workspace":{"writeOnly":true,"type":"array","items":{"type":"string","format":"iri-reference"}}},"required":["firstName","lastName","username"]},"UserAuthorization":{"type":"object","description":"","properties":{"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"user":{"type":"string","format":"iri-reference","nullable":true},"workspace":{"type":"string","format":"iri-reference","nullable":true},"organization":{"type":"string","format":"iri-reference","nullable":true},"resource":{"enum":["runtime.pipeline","runtime.schedule","runtime.execution","runtime.workflow","runtime.action","environment.environment","environment.secret","environment.configuration","environment.variable"],"type":"string"},"authorizations":{"type":"array","items":{"type":"string"}}},"required":["resource","authorizations"]},"UserAuthorization.jsonld":{"type":"object","description":"","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"user":{"type":"string","format":"iri-reference","nullable":true},"workspace":{"type":"string","format":"iri-reference","nullable":true},"organization":{"type":"string","format":"iri-reference","nullable":true},"resource":{"enum":["runtime.pipeline","runtime.schedule","runtime.execution","runtime.workflow","runtime.action","environment.environment","environment.secret","environment.configuration","environment.variable"],"type":"string"},"authorizations":{"type":"array","items":{"type":"string"}}},"required":["resource","authorizations"]},"UserId":{"type":"object","description":"","properties":{"nil":{"readOnly":true,"type":"boolean"}}},"UserId.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"nil":{"readOnly":true,"type":"boolean"}}},"Variable-read":{"type":"object","description":"","properties":{"environment":{"anyOf":[{"$ref":"#\/components\/schemas\/Environment-read"}],"nullable":true},"name":{"type":"string"}}},"Variable.jsonld-read":{"type":"object","description":"","properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"environment":{"anyOf":[{"$ref":"#\/components\/schemas\/Environment.jsonld-read"}],"nullable":true},"name":{"type":"string"}}},"VariableFromConfiguration-read":{"type":"object","description":"","properties":{"configuration":{"anyOf":[{"$ref":"#\/components\/schemas\/Configuration-read"}],"nullable":true},"item":{"type":"string"},"environment":{"anyOf":[{"$ref":"#\/components\/schemas\/Environment-read"}],"nullable":true},"name":{"type":"string"}}},"VariableFromConfiguration-write":{"type":"object","description":""},"VariableFromConfiguration.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"configuration":{"anyOf":[{"$ref":"#\/components\/schemas\/Configuration.jsonld-read"}],"nullable":true},"item":{"type":"string"},"environment":{"anyOf":[{"$ref":"#\/components\/schemas\/Environment.jsonld-read"}],"nullable":true},"name":{"type":"string"}}},"VariableFromConfiguration.jsonld-write":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"VariableFromConfigurationInput":{"type":"object","description":"","properties":{"name":{"type":"string"},"from":{"type":"string"}}},"VariableFromConfigurationInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"type":"string"},"from":{"type":"string"}}},"VariableFromConstant-read":{"type":"object","description":"","properties":{"value":{"type":"string"},"environment":{"anyOf":[{"$ref":"#\/components\/schemas\/Environment-read"}],"nullable":true},"name":{"type":"string"}}},"VariableFromConstant-write":{"type":"object","description":""},"VariableFromConstant.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"value":{"type":"string"},"environment":{"anyOf":[{"$ref":"#\/components\/schemas\/Environment.jsonld-read"}],"nullable":true},"name":{"type":"string"}}},"VariableFromConstant.jsonld-write":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"VariableFromConstantInput":{"type":"object","description":"","properties":{"name":{"type":"string"},"value":{"type":"string"}}},"VariableFromConstantInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"type":"string"},"value":{"type":"string"}}},"VariableFromSecret-read":{"type":"object","description":"","properties":{"secret":{"anyOf":[{"$ref":"#\/components\/schemas\/Secret-read"}],"nullable":true},"item":{"type":"string"},"environment":{"anyOf":[{"$ref":"#\/components\/schemas\/Environment-read"}],"nullable":true},"name":{"type":"string"}}},"VariableFromSecret-write":{"type":"object","description":""},"VariableFromSecret.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"secret":{"anyOf":[{"$ref":"#\/components\/schemas\/Secret.jsonld-read"}],"nullable":true},"item":{"type":"string"},"environment":{"anyOf":[{"$ref":"#\/components\/schemas\/Environment.jsonld-read"}],"nullable":true},"name":{"type":"string"}}},"VariableFromSecret.jsonld-write":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"VariableFromSecretInput":{"type":"object","description":"","properties":{"name":{"type":"string"},"from":{"type":"string"}}},"VariableFromSecretInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"type":"string"},"from":{"type":"string"}}},"Workflow-read":{"type":"object","description":"","required":["id","code","label","repositories","auths"],"properties":{"id":{"type":"string","format":"uuid"},"isSoftDeleted":{"type":"boolean"},"code":{"type":"string"},"label":{"type":"string"},"autoload":{"readOnly":true,"type":"array","items":{"type":"string"}},"packages":{"type":"array","items":{"type":"string"}},"repositories":{"type":"array","items":{"type":"string"}},"auths":{"type":"array","items":{"type":"string"}},"compiledAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"currentVersion":{"type":"integer"},"jobs":{"type":"array","items":{"$ref":"#\/components\/schemas\/WorkflowJob-read"}}}},"Workflow.CompileWorkflowCommand-read":{"type":"object","description":""},"Workflow.CompileWorkflowCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Workflow.CompileWorkflowCommandInput":{"type":"object","description":""},"Workflow.CompileWorkflowCommandInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Workflow.DeclareWorkflowCommand-read":{"type":"object","description":""},"Workflow.DeclareWorkflowCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Workflow.DeclareWorkflowCommandInput":{"type":"object","description":"","required":["jobs","composer","code","label"],"properties":{"jobs":{"type":"array","items":{"$ref":"#\/components\/schemas\/Job"}},"composer":{"$ref":"#\/components\/schemas\/Composer"},"code":{"type":"string"},"label":{"type":"string"}}},"Workflow.DeclareWorkflowCommandInput.jsonld":{"type":"object","description":"","required":["jobs","composer","code","label"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"jobs":{"type":"array","items":{"$ref":"#\/components\/schemas\/Job.jsonld"}},"composer":{"$ref":"#\/components\/schemas\/Composer.jsonld"},"code":{"type":"string"},"label":{"type":"string"}}},"Workflow.DeclareWorkflowScheduleCrontabCommand-read":{"type":"object","description":""},"Workflow.DeclareWorkflowScheduleCrontabCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Workflow.DeclareWorkflowScheduleCrontabCommandInput":{"type":"object","description":"","properties":{"crontab":{"pattern":"^(.*((?:@(?:annually|yearly|monthly|weekly|daily|midnight|hourly))|(?:@every (?:\\d+(?:ns|us|\u00b5s|ms|s|m|h))+)|(?:(?:(?:(?:\\d+,)+\\d+|(?:\\d+(?:\/|-)\\d+)|\\d+|\\*) ?){5})).*)$","type":"string"},"environment":{"oneOf":[{"format":"uuid"}],"type":"string","nullable":true}}},"Workflow.DeclareWorkflowScheduleCrontabCommandInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"crontab":{"pattern":"^(.*((?:@(?:annually|yearly|monthly|weekly|daily|midnight|hourly))|(?:@every (?:\\d+(?:ns|us|\u00b5s|ms|s|m|h))+)|(?:(?:(?:(?:\\d+,)+\\d+|(?:\\d+(?:\/|-)\\d+)|\\d+|\\*) ?){5})).*)$","type":"string"},"environment":{"oneOf":[{"format":"uuid"}],"type":"string","nullable":true}}},"Workflow.DeclareWorkflowScheduleImmediateCommand-read":{"type":"object","description":""},"Workflow.DeclareWorkflowScheduleImmediateCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Workflow.DeclareWorkflowScheduleImmediateCommandInput":{"type":"object","description":"","properties":{"environment":{"oneOf":[{"format":"uuid"}],"type":"string","nullable":true}}},"Workflow.DeclareWorkflowScheduleImmediateCommandInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"environment":{"oneOf":[{"format":"uuid"}],"type":"string","nullable":true}}},"Workflow.RemoveWorkflowCommand-read":{"type":"object","description":""},"Workflow.RemoveWorkflowCommand.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Workflow.RemoveWorkflowCommandInput":{"type":"object","description":""},"Workflow.RemoveWorkflowCommandInput.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"}}},"Workflow.jsonld-read":{"type":"object","description":"","required":["id","code","label","repositories","auths"],"properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"id":{"type":"string","format":"uuid"},"isSoftDeleted":{"type":"boolean"},"code":{"type":"string"},"label":{"type":"string"},"autoload":{"readOnly":true,"type":"array","items":{"type":"string"}},"packages":{"type":"array","items":{"type":"string"}},"repositories":{"type":"array","items":{"type":"string"}},"auths":{"type":"array","items":{"type":"string"}},"compiledAt":{"externalDocs":{"url":"http:\/\/schema.org\/DateTime"},"type":"string","format":"date-time","nullable":true},"currentVersion":{"type":"integer"},"jobs":{"type":"array","items":{"$ref":"#\/components\/schemas\/WorkflowJob.jsonld-read"}}}},"WorkflowJob-read":{"type":"object","description":"","properties":{"id":{"readOnly":true,"type":"string","format":"uuid"},"workflow":{"anyOf":[{"$ref":"#\/components\/schemas\/Workflow-read"}],"nullable":true},"pipeline":{"anyOf":[{"$ref":"#\/components\/schemas\/WorkflowJobPipeline-read"}],"nullable":true},"action":{"anyOf":[{"$ref":"#\/components\/schemas\/WorkflowJobAction-read"}],"nullable":true}},"required":["workflow"]},"WorkflowJob.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"readOnly":true,"type":"string","format":"uuid"},"workflow":{"anyOf":[{"$ref":"#\/components\/schemas\/Workflow.jsonld-read"}],"nullable":true},"pipeline":{"anyOf":[{"$ref":"#\/components\/schemas\/WorkflowJobPipeline.jsonld-read"}],"nullable":true},"action":{"anyOf":[{"$ref":"#\/components\/schemas\/WorkflowJobAction.jsonld-read"}],"nullable":true}},"required":["workflow"]},"WorkflowJobAction":{"type":"object","description":"","required":["job","code","label","configuration"],"properties":{"job":{"type":"string","format":"iri-reference","nullable":true},"id":{"readOnly":true,"type":"string","format":"uuid"},"code":{"type":"string"},"label":{"type":"string"},"configuration":{"type":"array","items":{"type":"string"}}}},"WorkflowJobAction-read":{"type":"object","description":"","properties":{"id":{"readOnly":true,"type":"string","format":"uuid"},"code":{"type":"string"},"label":{"type":"string"},"configuration":{"type":"array","items":{"type":"string"}}},"required":["code","label","configuration"]},"WorkflowJobAction.jsonld":{"type":"object","description":"","required":["job","code","label","configuration"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"job":{"type":"string","format":"iri-reference","nullable":true},"id":{"readOnly":true,"type":"string","format":"uuid"},"code":{"type":"string"},"label":{"type":"string"},"configuration":{"type":"array","items":{"type":"string"}}}},"WorkflowJobAction.jsonld-read":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"readOnly":true,"type":"string","format":"uuid"},"code":{"type":"string"},"label":{"type":"string"},"configuration":{"type":"array","items":{"type":"string"}}},"required":["code","label","configuration"]},"WorkflowJobPipeline":{"type":"object","description":"","required":["job","id","code","label"],"properties":{"job":{"type":"string","format":"iri-reference","nullable":true},"id":{"type":"string","format":"uuid"},"code":{"type":"string"},"label":{"type":"string"},"runtime":{"type":"array","items":{"type":"string"}},"steps":{"type":"array","items":{"type":"string","format":"iri-reference"}}}},"WorkflowJobPipeline-read":{"type":"object","description":"","required":["id","code","label"],"properties":{"id":{"type":"string","format":"uuid"},"code":{"type":"string"},"label":{"type":"string"},"runtime":{"type":"array","items":{"type":"string"}},"steps":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStep-read"}}}},"WorkflowJobPipeline.jsonld":{"type":"object","description":"","required":["job","id","code","label"],"properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"job":{"type":"string","format":"iri-reference","nullable":true},"id":{"type":"string","format":"uuid"},"code":{"type":"string"},"label":{"type":"string"},"runtime":{"type":"array","items":{"type":"string"}},"steps":{"type":"array","items":{"type":"string","format":"iri-reference"}}}},"WorkflowJobPipeline.jsonld-read":{"type":"object","description":"","required":["id","code","label"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"type":"string","format":"uuid"},"code":{"type":"string"},"label":{"type":"string"},"runtime":{"type":"array","items":{"type":"string"}},"steps":{"type":"array","items":{"$ref":"#\/components\/schemas\/PipelineStep.jsonld-read"}}}},"Workspace":{"type":"object","description":"","properties":{"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"organization":{"type":"string","format":"iri-reference","nullable":true},"region":{"anyOf":[{"$ref":"#\/components\/schemas\/Region"}],"nullable":true},"authorizations":{"type":"array","items":{"type":"string","format":"iri-reference"}},"users":{"type":"array","items":{"type":"string","format":"iri-reference"}}},"required":["name","organization","region"]},"Workspace.jsonld":{"type":"object","description":"","properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"format":"uuid","readOnly":true,"externalDocs":{"url":"http:\/\/schema.org\/identifier"},"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"organization":{"type":"string","format":"iri-reference","nullable":true},"region":{"anyOf":[{"$ref":"#\/components\/schemas\/Region.jsonld"}],"nullable":true},"authorizations":{"type":"array","items":{"type":"string","format":"iri-reference"}},"users":{"type":"array","items":{"type":"string","format":"iri-reference"}}},"required":["name","organization","region"]},"ForgotPassword:reset":{"type":"object","required":["password"],"properties":{"password":{"type":"string"}}},"ForgotPassword:validate":{"type":"object"},"ForgotPassword:request":{"type":"object","required":["email"],"properties":{"email":{"type":"string"}}},"Token":{"type":"object","properties":{"token":{"type":"string","readOnly":true}}},"Credentials":{"type":"object","properties":{"username":{"type":"string","example":"johndoe"},"password":{"type":"string","example":"password"},"organization":{"type":"string","example":"00000000-0000-0000-0000-000000000000"},"workspace":{"type":"string","example":"00000000-0000-0000-0000-000000000000"}},"required":["username","password"]},"Token:update":{"type":"object","properties":{"token":{"type":"string","readOnly":true}}},"Credentials:update":{"type":"object","properties":{"organization":{"type":"string","example":"b56594c3-4d59-4a4a-93b4-3f44b0d785b7"},"workspace":{"type":"string","example":"b56594c3-4d59-4a4a-93b4-3f44b0d785b7"}}}},"responses":{},"parameters":{},"examples":{},"requestBodies":{},"headers":{},"securitySchemes":{"apiKey":{"type":"apiKey","description":"Value for the Authorization header parameter.","name":"Authorization","in":"header"}}},"security":[{"apiKey":[]}],"tags":[]} \ No newline at end of file diff --git a/src/Authentication/ApiKeyAuthentication.php b/src/Authentication/ApiKeyAuthentication.php index 4b87179e..fb29ca6b 100644 --- a/src/Authentication/ApiKeyAuthentication.php +++ b/src/Authentication/ApiKeyAuthentication.php @@ -21,7 +21,9 @@ public function __construct(string $apiKey) public function authentication(\Psr\Http\Message\RequestInterface $request): \Psr\Http\Message\RequestInterface { - return $request->withHeader('Authorization', $this->{'apiKey'}); + $request = $request->withHeader('Authorization', $this->{'apiKey'}); + + return $request; } public function getScope(): string diff --git a/src/Client.php b/src/Client.php index 878ba43b..b01c8da1 100644 --- a/src/Client.php +++ b/src/Client.php @@ -12,6 +12,25 @@ class Client extends \Gyroscops\Api\Runtime\Client\Client { + /** + * Replaces the Organization resource. + * + * @param string $id Resource identifier + * @param \Gyroscops\Api\Model\OrganizationJsonldAddCollaborators|\Gyroscops\Api\Model\OrganizationAddCollaborators|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html + * + * @return \Gyroscops\Api\Model\OrganizationJsonld|\Gyroscops\Api\Model\Organization|\Psr\Http\Message\ResponseInterface|null + * + * @throws \Gyroscops\Api\Exception\PutExternalCollaboratorsOrganizationItemBadRequestException + * @throws \Gyroscops\Api\Exception\PutExternalCollaboratorsOrganizationItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\PutExternalCollaboratorsOrganizationItemNotFoundException + */ + public function putExternalCollaboratorsOrganizationItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PutExternalCollaboratorsOrganizationItem($id, $requestBody, $accept), $fetch); + } + /** * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -50,113 +69,70 @@ public function postForgotPasswordToken(string $token, ?\stdClass $requestBody = } /** - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * - * @return \Gyroscops\Api\Model\User[]|\Psr\Http\Message\ResponseInterface|null - */ - public function meUserCollection(string $fetch = self::FETCH_OBJECT) - { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\MeUserCollection(), $fetch); - } - - /** - * Removes the Offer resource. - * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * - * @return \Psr\Http\Message\ResponseInterface|null - * - * @throws \Gyroscops\Api\Exception\DeleteOfferItemNotFoundException - */ - public function deleteOfferItem(string $id, string $fetch = self::FETCH_OBJECT) - { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\DeleteOfferItem($id), $fetch); - } - - /** - * Retrieves a Offer resource. - * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * Get the current user. * - * @return \Gyroscops\Api\Model\Offer|\Psr\Http\Message\ResponseInterface|null + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @throws \Gyroscops\Api\Exception\GetOfferItemNotFoundException + * @return \Gyroscops\Api\Model\AuthenticationMeGetLdjsonResponse200|\Gyroscops\Api\Model\User[]|\Psr\Http\Message\ResponseInterface|null */ - public function getOfferItem(string $id, string $fetch = self::FETCH_OBJECT) + public function meUserCollection(string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetOfferItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\MeUserCollection($accept), $fetch); } /** - * Updates the Offer resource. + * Retrieves a SubscriptionOffer resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * - * @return \Gyroscops\Api\Model\Offer|\Psr\Http\Message\ResponseInterface|null - * - * @throws \Gyroscops\Api\Exception\PatchOfferItemBadRequestException - * @throws \Gyroscops\Api\Exception\PatchOfferItemUnprocessableEntityException - * @throws \Gyroscops\Api\Exception\PatchOfferItemNotFoundException - */ - public function patchOfferItem(string $id, ?Model\Offer $requestBody = null, string $fetch = self::FETCH_OBJECT) - { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PatchOfferItem($id, $requestBody), $fetch); - } - - /** - * Replaces the Offer resource. + * @param string $id SubscriptionOffer identifier + * @param array $queryParameters { * - * @param string $id Resource identifier - * @param \Gyroscops\Api\Model\OfferJsonld|\Gyroscops\Api\Model\Offer|null $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @var int $page The collection page number + * } * - * @return \Gyroscops\Api\Model\Offer|\Psr\Http\Message\ResponseInterface|null + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @throws \Gyroscops\Api\Exception\PutOfferItemBadRequestException - * @throws \Gyroscops\Api\Exception\PutOfferItemUnprocessableEntityException - * @throws \Gyroscops\Api\Exception\PutOfferItemNotFoundException + * @return \Gyroscops\Api\Model\AuthenticationOffersIdOptionsGetLdjsonResponse200|\Gyroscops\Api\Model\Option[]|\Psr\Http\Message\ResponseInterface|null */ - public function putOfferItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function apiSubscriptionOffersOptionsGetSubresourceSubscriptionOfferSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PutOfferItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiSubscriptionOffersOptionsGetSubresourceSubscriptionOfferSubresource($id, $queryParameters, $accept), $fetch); } /** - * Retrieves a Offer resource. + * Retrieves the collection of Organization resources. * - * @param string $id Offer identifier - * @param array $queryParameters { + * @param array $queryParameters { * * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Option[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\AuthenticationOrganizationsGetLdjsonResponse200|\Gyroscops\Api\Model\Organization[]|\Psr\Http\Message\ResponseInterface|null */ - public function apiOffersOptionsGetSubresourceOfferSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getOrganizationCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiOffersOptionsGetSubresourceOfferSubresource($id, $queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetOrganizationCollection($queryParameters, $accept), $fetch); } /** - * Retrieves the collection of Offer resources. - * - * @param array $queryParameters { + * Creates a Organization resource. * - * @var int $page The collection page number - * } + * @param \Gyroscops\Api\Model\OrganizationJsonld|\Gyroscops\Api\Model\Organization|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @return \Gyroscops\Api\Model\OrganizationJsonld|\Gyroscops\Api\Model\Organization|\Psr\Http\Message\ResponseInterface|null * - * @return \Gyroscops\Api\Model\Offer[]|\Psr\Http\Message\ResponseInterface|null + * @throws \Gyroscops\Api\Exception\PostOrganizationCollectionBadRequestException + * @throws \Gyroscops\Api\Exception\PostOrganizationCollectionUnprocessableEntityException */ - public function getOfferCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function postOrganizationCollection($requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetOfferCollection($queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostOrganizationCollection($requestBody, $accept), $fetch); } /** @@ -177,33 +153,36 @@ public function deleteOrganizationItem(string $id, string $fetch = self::FETCH_O /** * Retrieves a Organization resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Organization|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\OrganizationJsonld|\Gyroscops\Api\Model\Organization|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\GetOrganizationItemNotFoundException */ - public function getOrganizationItem(string $id, string $fetch = self::FETCH_OBJECT) + public function getOrganizationItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetOrganizationItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetOrganizationItem($id, $accept), $fetch); } /** * Updates the Organization resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param \Gyroscops\Api\Model\Organization|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Organization|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\OrganizationJsonld|\Gyroscops\Api\Model\Organization|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\PatchOrganizationItemBadRequestException * @throws \Gyroscops\Api\Exception\PatchOrganizationItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\PatchOrganizationItemNotFoundException */ - public function patchOrganizationItem(string $id, ?Model\Organization $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function patchOrganizationItem(string $id, ?Model\Organization $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PatchOrganizationItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PatchOrganizationItem($id, $requestBody, $accept), $fetch); } /** @@ -212,16 +191,17 @@ public function patchOrganizationItem(string $id, ?Model\Organization $requestBo * @param string $id Resource identifier * @param \Gyroscops\Api\Model\OrganizationJsonld|\Gyroscops\Api\Model\Organization|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Organization|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\OrganizationJsonld|\Gyroscops\Api\Model\Organization|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\PutOrganizationItemBadRequestException * @throws \Gyroscops\Api\Exception\PutOrganizationItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\PutOrganizationItemNotFoundException */ - public function putOrganizationItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function putOrganizationItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PutOrganizationItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PutOrganizationItem($id, $requestBody, $accept), $fetch); } /** @@ -233,13 +213,14 @@ public function putOrganizationItem(string $id, $requestBody = null, string $fet * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\UserAuthorization[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200|\Gyroscops\Api\Model\UserAuthorization[]|\Psr\Http\Message\ResponseInterface|null */ - public function apiOrganizationsAuthorizationsGetSubresourceOrganizationSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function apiOrganizationsAuthorizationsGetSubresourceOrganizationSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiOrganizationsAuthorizationsGetSubresourceOrganizationSubresource($id, $queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiOrganizationsAuthorizationsGetSubresourceOrganizationSubresource($id, $queryParameters, $accept), $fetch); } /** @@ -251,13 +232,14 @@ public function apiOrganizationsAuthorizationsGetSubresourceOrganizationSubresou * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\User[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200|\Gyroscops\Api\Model\User[]|\Psr\Http\Message\ResponseInterface|null */ - public function apiOrganizationsExternalCollaboratorsGetSubresourceOrganizationSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function apiOrganizationsExternalCollaboratorsGetSubresourceOrganizationSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiOrganizationsExternalCollaboratorsGetSubresourceOrganizationSubresource($id, $queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiOrganizationsExternalCollaboratorsGetSubresourceOrganizationSubresource($id, $queryParameters, $accept), $fetch); } /** @@ -269,13 +251,14 @@ public function apiOrganizationsExternalCollaboratorsGetSubresourceOrganizationS * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\User[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\AuthenticationOrganizationsIdUsersGetLdjsonResponse200|\Gyroscops\Api\Model\User[]|\Psr\Http\Message\ResponseInterface|null */ - public function apiOrganizationsUsersGetSubresourceOrganizationSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function apiOrganizationsUsersGetSubresourceOrganizationSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiOrganizationsUsersGetSubresourceOrganizationSubresource($id, $queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiOrganizationsUsersGetSubresourceOrganizationSubresource($id, $queryParameters, $accept), $fetch); } /** @@ -287,93 +270,119 @@ public function apiOrganizationsUsersGetSubresourceOrganizationSubresource(strin * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Workspace[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200|\Gyroscops\Api\Model\Workspace[]|\Psr\Http\Message\ResponseInterface|null */ - public function apiOrganizationsWorkspacesGetSubresourceOrganizationSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function apiOrganizationsWorkspacesGetSubresourceOrganizationSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiOrganizationsWorkspacesGetSubresourceOrganizationSubresource($id, $queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiOrganizationsWorkspacesGetSubresourceOrganizationSubresource($id, $queryParameters, $accept), $fetch); } /** - * Retrieves the collection of Organization resources. + * Retrieves the collection of SubscriptionOffer resources. * * @param array $queryParameters { * * @var int $page The collection page number * } * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html + * + * @return \Gyroscops\Api\Model\AuthenticationSubscriptionOffersGetLdjsonResponse200|\Gyroscops\Api\Model\SubscriptionOfferRead[]|\Psr\Http\Message\ResponseInterface|null + */ + public function getSubscriptionOfferCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetSubscriptionOfferCollection($queryParameters, $accept), $fetch); + } + + /** + * Removes the SubscriptionOffer resource. + * + * @param string $id Resource identifier * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \Gyroscops\Api\Model\Organization[]|\Psr\Http\Message\ResponseInterface|null + * @return \Psr\Http\Message\ResponseInterface|null + * + * @throws \Gyroscops\Api\Exception\DeleteSubscriptionOfferItemNotFoundException */ - public function getOrganizationCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function deleteSubscriptionOfferItem(string $id, string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetOrganizationCollection($queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\DeleteSubscriptionOfferItem($id), $fetch); } /** - * Creates a Organization resource. + * Retrieves a SubscriptionOffer resource. * - * @param \Gyroscops\Api\Model\OrganizationJsonld|\Gyroscops\Api\Model\Organization|null $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Organization|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\SubscriptionOfferJsonldRead|\Gyroscops\Api\Model\SubscriptionOfferRead|\Psr\Http\Message\ResponseInterface|null * - * @throws \Gyroscops\Api\Exception\PostOrganizationCollectionBadRequestException - * @throws \Gyroscops\Api\Exception\PostOrganizationCollectionUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\GetSubscriptionOfferItemNotFoundException */ - public function postOrganizationCollection($requestBody = null, string $fetch = self::FETCH_OBJECT) + public function getSubscriptionOfferItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostOrganizationCollection($requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetSubscriptionOfferItem($id, $accept), $fetch); } /** - * Removes the Subscription resource. + * Updates the SubscriptionOffer resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param \Gyroscops\Api\Model\SubscriptionOfferWrite|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\SubscriptionOfferJsonldRead|\Gyroscops\Api\Model\SubscriptionOfferRead|\Psr\Http\Message\ResponseInterface|null * - * @throws \Gyroscops\Api\Exception\DeleteSubscriptionItemNotFoundException + * @throws \Gyroscops\Api\Exception\PatchSubscriptionOfferItemBadRequestException + * @throws \Gyroscops\Api\Exception\PatchSubscriptionOfferItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\PatchSubscriptionOfferItemNotFoundException */ - public function deleteSubscriptionItem(string $id, string $fetch = self::FETCH_OBJECT) + public function patchSubscriptionOfferItem(string $id, ?Model\SubscriptionOfferWrite $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\DeleteSubscriptionItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PatchSubscriptionOfferItem($id, $requestBody, $accept), $fetch); } /** - * Retrieves a Subscription resource. + * Replaces the SubscriptionOffer resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param \Gyroscops\Api\Model\SubscriptionOfferJsonldWrite|\Gyroscops\Api\Model\SubscriptionOfferWrite|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Subscription|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\SubscriptionOfferJsonldRead|\Gyroscops\Api\Model\SubscriptionOfferRead|\Psr\Http\Message\ResponseInterface|null * - * @throws \Gyroscops\Api\Exception\GetSubscriptionItemNotFoundException + * @throws \Gyroscops\Api\Exception\PutSubscriptionOfferItemBadRequestException + * @throws \Gyroscops\Api\Exception\PutSubscriptionOfferItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\PutSubscriptionOfferItemNotFoundException */ - public function getSubscriptionItem(string $id, string $fetch = self::FETCH_OBJECT) + public function putSubscriptionOfferItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetSubscriptionItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PutSubscriptionOfferItem($id, $requestBody, $accept), $fetch); } /** - * Updates the Subscription resource. + * Retrieves the collection of Subscription resources. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $queryParameters { + * + * @var int $page The collection page number + * } * - * @return \Gyroscops\Api\Model\Subscription|\Psr\Http\Message\ResponseInterface|null + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @throws \Gyroscops\Api\Exception\PatchSubscriptionItemBadRequestException - * @throws \Gyroscops\Api\Exception\PatchSubscriptionItemUnprocessableEntityException - * @throws \Gyroscops\Api\Exception\PatchSubscriptionItemNotFoundException + * @return \Gyroscops\Api\Model\AuthenticationSubscriptionsGetLdjsonResponse200|\Gyroscops\Api\Model\Subscription[]|\Psr\Http\Message\ResponseInterface|null */ - public function patchSubscriptionItem(string $id, ?Model\Subscription $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function getSubscriptionCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PatchSubscriptionItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetSubscriptionCollection($queryParameters, $accept), $fetch); } /** @@ -381,63 +390,99 @@ public function patchSubscriptionItem(string $id, ?Model\Subscription $requestBo * * @param \Gyroscops\Api\Model\SubscriptionJsonld|\Gyroscops\Api\Model\Subscription|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Subscription|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\SubscriptionJsonld|\Gyroscops\Api\Model\Subscription|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\PostSubscriptionCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PostSubscriptionCollectionUnprocessableEntityException */ - public function postSubscriptionCollection($requestBody = null, string $fetch = self::FETCH_OBJECT) + public function postSubscriptionCollection($requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostSubscriptionCollection($requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostSubscriptionCollection($requestBody, $accept), $fetch); } /** - * Replaces the Subscription resource. + * Removes the Subscription resource. * - * @param string $id Resource identifier - * @param \Gyroscops\Api\Model\SubscriptionJsonld|\Gyroscops\Api\Model\Subscription|null $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * - * @return \Gyroscops\Api\Model\Subscription|\Psr\Http\Message\ResponseInterface|null + * @return \Psr\Http\Message\ResponseInterface|null * - * @throws \Gyroscops\Api\Exception\PutSubscriptionItemBadRequestException - * @throws \Gyroscops\Api\Exception\PutSubscriptionItemUnprocessableEntityException - * @throws \Gyroscops\Api\Exception\PutSubscriptionItemNotFoundException + * @throws \Gyroscops\Api\Exception\DeleteSubscriptionItemNotFoundException */ - public function putSubscriptionItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function deleteSubscriptionItem(string $id, string $fetch = self::FETCH_OBJECT) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PutSubscriptionItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\DeleteSubscriptionItem($id), $fetch); } /** - * Retrieves the collection of Subscription resources. + * Retrieves a Subscription resource. * - * @param array $queryParameters { + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @var int $page The collection page number - * } + * @return \Gyroscops\Api\Model\SubscriptionJsonld|\Gyroscops\Api\Model\Subscription|\Psr\Http\Message\ResponseInterface|null * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \Gyroscops\Api\Exception\GetSubscriptionItemNotFoundException + */ + public function getSubscriptionItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetSubscriptionItem($id, $accept), $fetch); + } + + /** + * Updates the Subscription resource. + * + * @param string $id Resource identifier + * @param \Gyroscops\Api\Model\Subscription|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html + * + * @return \Gyroscops\Api\Model\SubscriptionJsonld|\Gyroscops\Api\Model\Subscription|\Psr\Http\Message\ResponseInterface|null + * + * @throws \Gyroscops\Api\Exception\PatchSubscriptionItemBadRequestException + * @throws \Gyroscops\Api\Exception\PatchSubscriptionItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\PatchSubscriptionItemNotFoundException + */ + public function patchSubscriptionItem(string $id, ?Model\Subscription $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PatchSubscriptionItem($id, $requestBody, $accept), $fetch); + } + + /** + * Replaces the Subscription resource. + * + * @param string $id Resource identifier + * @param \Gyroscops\Api\Model\SubscriptionJsonld|\Gyroscops\Api\Model\Subscription|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html + * + * @return \Gyroscops\Api\Model\SubscriptionJsonld|\Gyroscops\Api\Model\Subscription|\Psr\Http\Message\ResponseInterface|null * - * @return \Gyroscops\Api\Model\Subscription[]|\Psr\Http\Message\ResponseInterface|null + * @throws \Gyroscops\Api\Exception\PutSubscriptionItemBadRequestException + * @throws \Gyroscops\Api\Exception\PutSubscriptionItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\PutSubscriptionItemNotFoundException */ - public function getSubscriptionCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function putSubscriptionItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetSubscriptionCollection($queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PutSubscriptionItem($id, $requestBody, $accept), $fetch); } /** * Retrieves a Subscription resource. * - * @param string $id Subscription identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Subscription identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Offer|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\SubscriptionOfferJsonldRead|\Gyroscops\Api\Model\SubscriptionOfferRead|\Psr\Http\Message\ResponseInterface|null */ - public function apiSubscriptionsOfferGetSubresourceSubscriptionSubresource(string $id, string $fetch = self::FETCH_OBJECT) + public function apiSubscriptionsOfferGetSubresourceSubscriptionSubresource(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiSubscriptionsOfferGetSubresourceSubscriptionSubresource($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiSubscriptionsOfferGetSubresourceSubscriptionSubresource($id, $accept), $fetch); } /** @@ -449,30 +494,33 @@ public function apiSubscriptionsOfferGetSubresourceSubscriptionSubresource(strin * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\SubscriptionOption[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200|\Gyroscops\Api\Model\SubscriptionOption[]|\Psr\Http\Message\ResponseInterface|null */ - public function apiSubscriptionsOptionsGetSubresourceSubscriptionSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function apiSubscriptionsOptionsGetSubresourceSubscriptionSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiSubscriptionsOptionsGetSubresourceSubscriptionSubresource($id, $queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiSubscriptionsOptionsGetSubresourceSubscriptionSubresource($id, $queryParameters, $accept), $fetch); } /** * Retrieves a Subscription resource. * - * @param string $id Subscription identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Subscription identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Organization|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\OrganizationJsonld|\Gyroscops\Api\Model\Organization|\Psr\Http\Message\ResponseInterface|null */ - public function apiSubscriptionsOrganizationGetSubresourceSubscriptionSubresource(string $id, string $fetch = self::FETCH_OBJECT) + public function apiSubscriptionsOrganizationGetSubresourceSubscriptionSubresource(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiSubscriptionsOrganizationGetSubresourceSubscriptionSubresource($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiSubscriptionsOrganizationGetSubresourceSubscriptionSubresource($id, $accept), $fetch); } /** - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param \Gyroscops\Api\Model\Credentials|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @return \Gyroscops\Api\Model\Token|\Psr\Http\Message\ResponseInterface|null */ @@ -509,33 +557,36 @@ public function deleteUserAuthorizationItem(string $id, string $fetch = self::FE /** * Retrieves a UserAuthorization resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\UserAuthorization|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\UserAuthorizationJsonld|\Gyroscops\Api\Model\UserAuthorization|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\GetUserAuthorizationItemNotFoundException */ - public function getUserAuthorizationItem(string $id, string $fetch = self::FETCH_OBJECT) + public function getUserAuthorizationItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetUserAuthorizationItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetUserAuthorizationItem($id, $accept), $fetch); } /** * Updates the UserAuthorization resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param \Gyroscops\Api\Model\UserAuthorization|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\UserAuthorization|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\UserAuthorizationJsonld|\Gyroscops\Api\Model\UserAuthorization|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\PatchUserAuthorizationItemBadRequestException * @throws \Gyroscops\Api\Exception\PatchUserAuthorizationItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\PatchUserAuthorizationItemNotFoundException */ - public function patchUserAuthorizationItem(string $id, ?Model\UserAuthorization $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function patchUserAuthorizationItem(string $id, ?Model\UserAuthorization $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PatchUserAuthorizationItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PatchUserAuthorizationItem($id, $requestBody, $accept), $fetch); } /** @@ -544,16 +595,17 @@ public function patchUserAuthorizationItem(string $id, ?Model\UserAuthorization * @param string $id Resource identifier * @param \Gyroscops\Api\Model\UserAuthorizationJsonld|\Gyroscops\Api\Model\UserAuthorization|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\UserAuthorization|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\UserAuthorizationJsonld|\Gyroscops\Api\Model\UserAuthorization|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\PutUserAuthorizationItemBadRequestException * @throws \Gyroscops\Api\Exception\PutUserAuthorizationItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\PutUserAuthorizationItemNotFoundException */ - public function putUserAuthorizationItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function putUserAuthorizationItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PutUserAuthorizationItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PutUserAuthorizationItem($id, $requestBody, $accept), $fetch); } /** @@ -564,13 +616,14 @@ public function putUserAuthorizationItem(string $id, $requestBody = null, string * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\UserAuthorization[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetLdjsonResponse200|\Gyroscops\Api\Model\UserAuthorization[]|\Psr\Http\Message\ResponseInterface|null */ - public function getUserAuthorizationCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getUserAuthorizationCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetUserAuthorizationCollection($queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetUserAuthorizationCollection($queryParameters, $accept), $fetch); } /** @@ -578,15 +631,51 @@ public function getUserAuthorizationCollection(array $queryParameters = [], stri * * @param \Gyroscops\Api\Model\UserAuthorizationJsonld|\Gyroscops\Api\Model\UserAuthorization|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\UserAuthorization|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\UserAuthorizationJsonld|\Gyroscops\Api\Model\UserAuthorization|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\PostUserAuthorizationCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PostUserAuthorizationCollectionUnprocessableEntityException */ - public function postUserAuthorizationCollection($requestBody = null, string $fetch = self::FETCH_OBJECT) + public function postUserAuthorizationCollection($requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostUserAuthorizationCollection($requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostUserAuthorizationCollection($requestBody, $accept), $fetch); + } + + /** + * Retrieves the collection of User resources. + * + * @param array $queryParameters { + * + * @var int $page The collection page number + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html + * + * @return \Gyroscops\Api\Model\AuthenticationUsersGetLdjsonResponse200|\Gyroscops\Api\Model\User[]|\Psr\Http\Message\ResponseInterface|null + */ + public function getUserCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetUserCollection($queryParameters, $accept), $fetch); + } + + /** + * Creates a User resource. + * + * @param \Gyroscops\Api\Model\UserJsonld|\Gyroscops\Api\Model\User|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html + * + * @return \Gyroscops\Api\Model\UserJsonld|\Gyroscops\Api\Model\User|\Psr\Http\Message\ResponseInterface|null + * + * @throws \Gyroscops\Api\Exception\PostUserCollectionBadRequestException + * @throws \Gyroscops\Api\Exception\PostUserCollectionUnprocessableEntityException + */ + public function postUserCollection($requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostUserCollection($requestBody, $accept), $fetch); } /** @@ -607,33 +696,36 @@ public function deleteUserItem(string $id, string $fetch = self::FETCH_OBJECT) /** * Retrieves a User resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\User|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\UserJsonld|\Gyroscops\Api\Model\User|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\GetUserItemNotFoundException */ - public function getUserItem(string $id, string $fetch = self::FETCH_OBJECT) + public function getUserItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetUserItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetUserItem($id, $accept), $fetch); } /** * Updates the User resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param \Gyroscops\Api\Model\User|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\User|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\UserJsonld|\Gyroscops\Api\Model\User|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\PatchUserItemBadRequestException * @throws \Gyroscops\Api\Exception\PatchUserItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\PatchUserItemNotFoundException */ - public function patchUserItem(string $id, ?Model\User $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function patchUserItem(string $id, ?Model\User $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PatchUserItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PatchUserItem($id, $requestBody, $accept), $fetch); } /** @@ -642,84 +734,71 @@ public function patchUserItem(string $id, ?Model\User $requestBody = null, strin * @param string $id Resource identifier * @param \Gyroscops\Api\Model\UserJsonld|\Gyroscops\Api\Model\User|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\User|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\UserJsonld|\Gyroscops\Api\Model\User|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\PutUserItemBadRequestException * @throws \Gyroscops\Api\Exception\PutUserItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\PutUserItemNotFoundException */ - public function putUserItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) - { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PutUserItem($id, $requestBody), $fetch); - } - - /** - * Retrieves a User resource. - * - * @param string $id User identifier - * @param array $queryParameters { - * - * @var int $page The collection page number - * } - * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * - * @return \Gyroscops\Api\Model\UserAuthorization[]|\Psr\Http\Message\ResponseInterface|null - */ - public function apiUsersAuthorizationsGetSubresourceUserSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function putUserItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiUsersAuthorizationsGetSubresourceUserSubresource($id, $queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PutUserItem($id, $requestBody, $accept), $fetch); } /** * Updates the User resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param \Gyroscops\Api\Model\UserUserChangePasswordInput|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\User|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\UserJsonld|\Gyroscops\Api\Model\User|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\ChangePasswordUserItemBadRequestException * @throws \Gyroscops\Api\Exception\ChangePasswordUserItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\ChangePasswordUserItemNotFoundException */ - public function changePasswordUserItem(string $id, ?Model\UserUserChangePasswordInput $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function changePasswordUserItem(string $id, ?Model\UserUserChangePasswordInput $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ChangePasswordUserItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ChangePasswordUserItem($id, $requestBody, $accept), $fetch); } /** - * Retrieves the collection of User resources. + * Retrieves the collection of Workspace resources. * * @param array $queryParameters { * * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\User[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\AuthenticationWorkspacesGetLdjsonResponse200|\Gyroscops\Api\Model\Workspace[]|\Psr\Http\Message\ResponseInterface|null */ - public function getUserCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getWorkspaceCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetUserCollection($queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetWorkspaceCollection($queryParameters, $accept), $fetch); } /** - * Creates a User resource. + * Creates a Workspace resource. * - * @param \Gyroscops\Api\Model\UserJsonld|\Gyroscops\Api\Model\User|null $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param \Gyroscops\Api\Model\WorkspaceJsonld|\Gyroscops\Api\Model\Workspace|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\User|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\WorkspaceJsonld|\Gyroscops\Api\Model\Workspace|\Psr\Http\Message\ResponseInterface|null * - * @throws \Gyroscops\Api\Exception\PostUserCollectionBadRequestException - * @throws \Gyroscops\Api\Exception\PostUserCollectionUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\PostWorkspaceCollectionBadRequestException + * @throws \Gyroscops\Api\Exception\PostWorkspaceCollectionUnprocessableEntityException */ - public function postUserCollection($requestBody = null, string $fetch = self::FETCH_OBJECT) + public function postWorkspaceCollection($requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostUserCollection($requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostWorkspaceCollection($requestBody, $accept), $fetch); } /** @@ -740,33 +819,36 @@ public function deleteWorkspaceItem(string $id, string $fetch = self::FETCH_OBJE /** * Retrieves a Workspace resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Workspace|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\WorkspaceJsonld|\Gyroscops\Api\Model\Workspace|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\GetWorkspaceItemNotFoundException */ - public function getWorkspaceItem(string $id, string $fetch = self::FETCH_OBJECT) + public function getWorkspaceItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetWorkspaceItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetWorkspaceItem($id, $accept), $fetch); } /** * Updates the Workspace resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param \Gyroscops\Api\Model\Workspace|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Workspace|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\WorkspaceJsonld|\Gyroscops\Api\Model\Workspace|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\PatchWorkspaceItemBadRequestException * @throws \Gyroscops\Api\Exception\PatchWorkspaceItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\PatchWorkspaceItemNotFoundException */ - public function patchWorkspaceItem(string $id, ?Model\Workspace $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function patchWorkspaceItem(string $id, ?Model\Workspace $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PatchWorkspaceItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PatchWorkspaceItem($id, $requestBody, $accept), $fetch); } /** @@ -775,16 +857,17 @@ public function patchWorkspaceItem(string $id, ?Model\Workspace $requestBody = n * @param string $id Resource identifier * @param \Gyroscops\Api\Model\WorkspaceJsonld|\Gyroscops\Api\Model\Workspace|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Workspace|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\WorkspaceJsonld|\Gyroscops\Api\Model\Workspace|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\PutWorkspaceItemBadRequestException * @throws \Gyroscops\Api\Exception\PutWorkspaceItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\PutWorkspaceItemNotFoundException */ - public function putWorkspaceItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function putWorkspaceItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PutWorkspaceItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PutWorkspaceItem($id, $requestBody, $accept), $fetch); } /** @@ -796,13 +879,14 @@ public function putWorkspaceItem(string $id, $requestBody = null, string $fetch * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\UserAuthorization[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200|\Gyroscops\Api\Model\UserAuthorization[]|\Psr\Http\Message\ResponseInterface|null */ - public function apiWorkspacesAuthorizationsGetSubresourceWorkspaceSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function apiWorkspacesAuthorizationsGetSubresourceWorkspaceSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiWorkspacesAuthorizationsGetSubresourceWorkspaceSubresource($id, $queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiWorkspacesAuthorizationsGetSubresourceWorkspaceSubresource($id, $queryParameters, $accept), $fetch); } /** @@ -814,46 +898,32 @@ public function apiWorkspacesAuthorizationsGetSubresourceWorkspaceSubresource(st * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\User[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\AuthenticationWorkspacesIdUsersGetLdjsonResponse200|\Gyroscops\Api\Model\User[]|\Psr\Http\Message\ResponseInterface|null */ - public function apiWorkspacesUsersGetSubresourceWorkspaceSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function apiWorkspacesUsersGetSubresourceWorkspaceSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiWorkspacesUsersGetSubresourceWorkspaceSubresource($id, $queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiWorkspacesUsersGetSubresourceWorkspaceSubresource($id, $queryParameters, $accept), $fetch); } /** - * Retrieves the collection of Workspace resources. + * Retrieves the collection of Configuration resources. * * @param array $queryParameters { * * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * - * @return \Gyroscops\Api\Model\Workspace[]|\Psr\Http\Message\ResponseInterface|null - */ - public function getWorkspaceCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) - { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetWorkspaceCollection($queryParameters), $fetch); - } - - /** - * Creates a Workspace resource. - * - * @param \Gyroscops\Api\Model\WorkspaceJsonld|\Gyroscops\Api\Model\Workspace|null $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Workspace|\Psr\Http\Message\ResponseInterface|null - * - * @throws \Gyroscops\Api\Exception\PostWorkspaceCollectionBadRequestException - * @throws \Gyroscops\Api\Exception\PostWorkspaceCollectionUnprocessableEntityException + * @return \Gyroscops\Api\Model\EnvironmentConfigurationsGetLdjsonResponse200|\Gyroscops\Api\Model\Configuration[]|\Psr\Http\Message\ResponseInterface|null */ - public function postWorkspaceCollection($requestBody = null, string $fetch = self::FETCH_OBJECT) + public function getConfigurationCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostWorkspaceCollection($requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetConfigurationCollection($queryParameters, $accept), $fetch); } /** @@ -861,15 +931,16 @@ public function postWorkspaceCollection($requestBody = null, string $fetch = sel * * @param \Gyroscops\Api\Model\ConfigurationCreateConfigurationInputJsonld|\Gyroscops\Api\Model\ConfigurationCreateConfigurationInput|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Configuration|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\ConfigurationJsonld|\Gyroscops\Api\Model\Configuration|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\PostConfigurationCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PostConfigurationCollectionUnprocessableEntityException */ - public function postConfigurationCollection($requestBody = null, string $fetch = self::FETCH_OBJECT) + public function postConfigurationCollection($requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostConfigurationCollection($requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostConfigurationCollection($requestBody, $accept), $fetch); } /** @@ -890,16 +961,17 @@ public function deleteConfigurationItem(string $id, string $fetch = self::FETCH_ /** * Retrieves a Configuration resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Configuration|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\ConfigurationJsonld|\Gyroscops\Api\Model\Configuration|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\GetConfigurationItemNotFoundException */ - public function getConfigurationItem(string $id, string $fetch = self::FETCH_OBJECT) + public function getConfigurationItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetConfigurationItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetConfigurationItem($id, $accept), $fetch); } /** @@ -908,16 +980,17 @@ public function getConfigurationItem(string $id, string $fetch = self::FETCH_OBJ * @param string $id Resource identifier * @param \Gyroscops\Api\Model\ConfigurationJsonldEdit|\Gyroscops\Api\Model\ConfigurationEdit|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Configuration|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\ConfigurationJsonld|\Gyroscops\Api\Model\Configuration|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\EditConfigurationItemBadRequestException * @throws \Gyroscops\Api\Exception\EditConfigurationItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\EditConfigurationItemNotFoundException */ - public function editConfigurationItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function editConfigurationItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\EditConfigurationItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\EditConfigurationItem($id, $requestBody, $accept), $fetch); } /** @@ -926,16 +999,17 @@ public function editConfigurationItem(string $id, $requestBody = null, string $f * @param string $id Resource identifier * @param \Gyroscops\Api\Model\ConfigurationChangeConfigurationValueInputJsonld|\Gyroscops\Api\Model\ConfigurationChangeConfigurationValueInput|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Configuration|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\ConfigurationJsonld|\Gyroscops\Api\Model\Configuration|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\ChangeValuesConfigurationItemBadRequestException * @throws \Gyroscops\Api\Exception\ChangeValuesConfigurationItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\ChangeValuesConfigurationItemNotFoundException */ - public function changeValuesConfigurationItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function changeValuesConfigurationItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ChangeValuesConfigurationItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ChangeValuesConfigurationItem($id, $requestBody, $accept), $fetch); } /** @@ -944,33 +1018,35 @@ public function changeValuesConfigurationItem(string $id, $requestBody = null, s * @param string $id Resource identifier * @param \Gyroscops\Api\Model\ConfigurationRemoveConfigurationValueInputJsonld|\Gyroscops\Api\Model\ConfigurationRemoveConfigurationValueInput|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Configuration|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\ConfigurationJsonld|\Gyroscops\Api\Model\Configuration|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\RemoveValuesConfigurationItemBadRequestException * @throws \Gyroscops\Api\Exception\RemoveValuesConfigurationItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\RemoveValuesConfigurationItemNotFoundException */ - public function removeValuesConfigurationItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function removeValuesConfigurationItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\RemoveValuesConfigurationItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\RemoveValuesConfigurationItem($id, $requestBody, $accept), $fetch); } /** - * Retrieves the collection of Configuration resources. + * Retrieves the collection of Environment resources. * * @param array $queryParameters { * * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Configuration[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\EnvironmentEnvironmentsGetLdjsonResponse200|\Gyroscops\Api\Model\EnvironmentRead[]|\Psr\Http\Message\ResponseInterface|null */ - public function getConfigurationCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getEnvironmentCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetConfigurationCollection($queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetEnvironmentCollection($queryParameters, $accept), $fetch); } /** @@ -978,15 +1054,16 @@ public function getConfigurationCollection(array $queryParameters = [], string $ * * @param \Gyroscops\Api\Model\EnvironmentCreateEnvironmentInputJsonld|\Gyroscops\Api\Model\EnvironmentCreateEnvironmentInput|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\EnvironmentRead|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\EnvironmentJsonldRead|\Gyroscops\Api\Model\EnvironmentRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\PostEnvironmentCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PostEnvironmentCollectionUnprocessableEntityException */ - public function postEnvironmentCollection($requestBody = null, string $fetch = self::FETCH_OBJECT) + public function postEnvironmentCollection($requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostEnvironmentCollection($requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostEnvironmentCollection($requestBody, $accept), $fetch); } /** @@ -1007,16 +1084,17 @@ public function deleteEnvironmentItem(string $id, string $fetch = self::FETCH_OB /** * Retrieves a Environment resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\EnvironmentRead|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\EnvironmentJsonldRead|\Gyroscops\Api\Model\EnvironmentRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\GetEnvironmentItemNotFoundException */ - public function getEnvironmentItem(string $id, string $fetch = self::FETCH_OBJECT) + public function getEnvironmentItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetEnvironmentItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetEnvironmentItem($id, $accept), $fetch); } /** @@ -1025,16 +1103,17 @@ public function getEnvironmentItem(string $id, string $fetch = self::FETCH_OBJEC * @param string $id Resource identifier * @param \Gyroscops\Api\Model\EnvironmentJsonldWrite|\Gyroscops\Api\Model\EnvironmentWrite|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\EnvironmentRead|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\EnvironmentJsonldRead|\Gyroscops\Api\Model\EnvironmentRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\EditEnvironmentItemBadRequestException * @throws \Gyroscops\Api\Exception\EditEnvironmentItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\EditEnvironmentItemNotFoundException */ - public function editEnvironmentItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function editEnvironmentItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\EditEnvironmentItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\EditEnvironmentItem($id, $requestBody, $accept), $fetch); } /** @@ -1044,16 +1123,17 @@ public function editEnvironmentItem(string $id, $requestBody = null, string $fet * @param string $id Resource identifier * @param \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConfigurationInputJsonld|\Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConfigurationInput|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\EnvironmentRead|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\EnvironmentJsonldRead|\Gyroscops\Api\Model\EnvironmentRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\AddVariablesFromConfigurationEnvironmentItemBadRequestException * @throws \Gyroscops\Api\Exception\AddVariablesFromConfigurationEnvironmentItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AddVariablesFromConfigurationEnvironmentItemNotFoundException */ - public function addVariablesFromConfigurationEnvironmentItem(string $configuration, string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function addVariablesFromConfigurationEnvironmentItem(string $configuration, string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\AddVariablesFromConfigurationEnvironmentItem($configuration, $id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\AddVariablesFromConfigurationEnvironmentItem($configuration, $id, $requestBody, $accept), $fetch); } /** @@ -1062,16 +1142,17 @@ public function addVariablesFromConfigurationEnvironmentItem(string $configurati * @param string $id Resource identifier * @param \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConstantInputJsonld|\Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConstantInput|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\EnvironmentRead|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\EnvironmentJsonldRead|\Gyroscops\Api\Model\EnvironmentRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\AddVariablesFromConstantEnvironmentItemBadRequestException * @throws \Gyroscops\Api\Exception\AddVariablesFromConstantEnvironmentItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AddVariablesFromConstantEnvironmentItemNotFoundException */ - public function addVariablesFromConstantEnvironmentItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function addVariablesFromConstantEnvironmentItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\AddVariablesFromConstantEnvironmentItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\AddVariablesFromConstantEnvironmentItem($id, $requestBody, $accept), $fetch); } /** @@ -1081,51 +1162,54 @@ public function addVariablesFromConstantEnvironmentItem(string $id, $requestBody * @param string $id Resource identifier * @param \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromSecretInputJsonld|\Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromSecretInput|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\EnvironmentRead|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\EnvironmentJsonldRead|\Gyroscops\Api\Model\EnvironmentRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\AddVariablesFromSecretEnvironmentItemBadRequestException * @throws \Gyroscops\Api\Exception\AddVariablesFromSecretEnvironmentItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AddVariablesFromSecretEnvironmentItemNotFoundException */ - public function addVariablesFromSecretEnvironmentItem(string $secret, string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function addVariablesFromSecretEnvironmentItem(string $secret, string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\AddVariablesFromSecretEnvironmentItem($secret, $id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\AddVariablesFromSecretEnvironmentItem($secret, $id, $requestBody, $accept), $fetch); } /** - * Retrieves the collection of Environment resources. + * Retrieves a Environment resource. * - * @param array $queryParameters { + * @param string $id Environment identifier + * @param array $queryParameters { * * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\EnvironmentRead[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200|\Gyroscops\Api\Model\VariableRead[]|\Psr\Http\Message\ResponseInterface|null */ - public function getEnvironmentCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function apiEnvironmentsVariablesGetSubresourceEnvironmentSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetEnvironmentCollection($queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiEnvironmentsVariablesGetSubresourceEnvironmentSubresource($id, $queryParameters, $accept), $fetch); } /** - * Retrieves a Environment resource. + * Retrieves the collection of Secret resources. * - * @param string $id Environment identifier - * @param array $queryParameters { + * @param array $queryParameters { * * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\VariableRead[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\EnvironmentSecretsGetLdjsonResponse200|\Gyroscops\Api\Model\Secret[]|\Psr\Http\Message\ResponseInterface|null */ - public function apiEnvironmentsVariablesGetSubresourceEnvironmentSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getSecretCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiEnvironmentsVariablesGetSubresourceEnvironmentSubresource($id, $queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetSecretCollection($queryParameters, $accept), $fetch); } /** @@ -1133,15 +1217,16 @@ public function apiEnvironmentsVariablesGetSubresourceEnvironmentSubresource(str * * @param \Gyroscops\Api\Model\SecretCreateSecretInputJsonld|\Gyroscops\Api\Model\SecretCreateSecretInput|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Secret|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\SecretJsonld|\Gyroscops\Api\Model\Secret|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\PostSecretCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PostSecretCollectionUnprocessableEntityException */ - public function postSecretCollection($requestBody = null, string $fetch = self::FETCH_OBJECT) + public function postSecretCollection($requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostSecretCollection($requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostSecretCollection($requestBody, $accept), $fetch); } /** @@ -1162,16 +1247,17 @@ public function deleteSecretItem(string $id, string $fetch = self::FETCH_OBJECT) /** * Retrieves a Secret resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Secret|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\SecretJsonld|\Gyroscops\Api\Model\Secret|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\GetSecretItemNotFoundException */ - public function getSecretItem(string $id, string $fetch = self::FETCH_OBJECT) + public function getSecretItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetSecretItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetSecretItem($id, $accept), $fetch); } /** @@ -1180,16 +1266,17 @@ public function getSecretItem(string $id, string $fetch = self::FETCH_OBJECT) * @param string $id Resource identifier * @param \Gyroscops\Api\Model\SecretJsonldEdit|\Gyroscops\Api\Model\SecretEdit|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Secret|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\SecretJsonld|\Gyroscops\Api\Model\Secret|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\EditSecretItemBadRequestException * @throws \Gyroscops\Api\Exception\EditSecretItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\EditSecretItemNotFoundException */ - public function editSecretItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function editSecretItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\EditSecretItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\EditSecretItem($id, $requestBody, $accept), $fetch); } /** @@ -1198,16 +1285,17 @@ public function editSecretItem(string $id, $requestBody = null, string $fetch = * @param string $id Resource identifier * @param \Gyroscops\Api\Model\SecretChangeSecretValueInputJsonld|\Gyroscops\Api\Model\SecretChangeSecretValueInput|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Secret|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\SecretJsonld|\Gyroscops\Api\Model\Secret|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\ChangeValuesSecretItemBadRequestException * @throws \Gyroscops\Api\Exception\ChangeValuesSecretItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\ChangeValuesSecretItemNotFoundException */ - public function changeValuesSecretItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function changeValuesSecretItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ChangeValuesSecretItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ChangeValuesSecretItem($id, $requestBody, $accept), $fetch); } /** @@ -1216,33 +1304,17 @@ public function changeValuesSecretItem(string $id, $requestBody = null, string $ * @param string $id Resource identifier * @param \Gyroscops\Api\Model\SecretRemoveSecretValueInputJsonld|\Gyroscops\Api\Model\SecretRemoveSecretValueInput|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Secret|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\SecretJsonld|\Gyroscops\Api\Model\Secret|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\RemoveValuesSecretItemBadRequestException * @throws \Gyroscops\Api\Exception\RemoveValuesSecretItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\RemoveValuesSecretItemNotFoundException */ - public function removeValuesSecretItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) - { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\RemoveValuesSecretItem($id, $requestBody), $fetch); - } - - /** - * Retrieves the collection of Secret resources. - * - * @param array $queryParameters { - * - * @var int $page The collection page number - * } - * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * - * @return \Gyroscops\Api\Model\Secret[]|\Psr\Http\Message\ResponseInterface|null - */ - public function getSecretCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function removeValuesSecretItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetSecretCollection($queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\RemoveValuesSecretItem($id, $requestBody, $accept), $fetch); } /** @@ -1263,16 +1335,17 @@ public function deleteVariableFromConfigurationItem(string $id, string $fetch = /** * Retrieves a VariableFromConfiguration resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\VariableFromConfigurationRead|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\VariableFromConfigurationJsonldRead|\Gyroscops\Api\Model\VariableFromConfigurationRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\GetVariableFromConfigurationItemNotFoundException */ - public function getVariableFromConfigurationItem(string $id, string $fetch = self::FETCH_OBJECT) + public function getVariableFromConfigurationItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetVariableFromConfigurationItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetVariableFromConfigurationItem($id, $accept), $fetch); } /** @@ -1281,16 +1354,17 @@ public function getVariableFromConfigurationItem(string $id, string $fetch = sel * @param string $id Resource identifier * @param \Gyroscops\Api\Model\VariableFromConfigurationJsonldWrite|\stdClass|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\VariableFromConfigurationRead|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\VariableFromConfigurationJsonldRead|\Gyroscops\Api\Model\VariableFromConfigurationRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\EditVariableFromConfigurationItemBadRequestException * @throws \Gyroscops\Api\Exception\EditVariableFromConfigurationItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\EditVariableFromConfigurationItemNotFoundException */ - public function editVariableFromConfigurationItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function editVariableFromConfigurationItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\EditVariableFromConfigurationItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\EditVariableFromConfigurationItem($id, $requestBody, $accept), $fetch); } /** @@ -1298,33 +1372,34 @@ public function editVariableFromConfigurationItem(string $id, $requestBody = nul * * @param \Gyroscops\Api\Model\AkeneoInstanceAkeneoInstanceInputJsonld|\Gyroscops\Api\Model\AkeneoInstanceAkeneoInstanceInput|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\AkeneoInstance|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\AkeneoInstanceJsonld|\Gyroscops\Api\Model\AkeneoInstance|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\PostAkeneoInstanceCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PostAkeneoInstanceCollectionUnprocessableEntityException */ - public function postAkeneoInstanceCollection($requestBody = null, string $fetch = self::FETCH_OBJECT) + public function postAkeneoInstanceCollection($requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostAkeneoInstanceCollection($requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostAkeneoInstanceCollection($requestBody, $accept), $fetch); } /** - * Check if an organization exists in the database. + * Retrieves the collection of AkeneoInstance resources. * * @param array $queryParameters { * - * @var string $url * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\AkeneoInstance[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\GatewayAkeneoInstancesGetLdjsonResponse200|\Gyroscops\Api\Model\AkeneoInstance[]|\Psr\Http\Message\ResponseInterface|null */ - public function getAkeneoInstanceByPimUrlAkeneoInstanceCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getAkeneoInstanceCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetAkeneoInstanceByPimUrlAkeneoInstanceCollection($queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetAkeneoInstanceCollection($queryParameters, $accept), $fetch); } /** @@ -1336,45 +1411,49 @@ public function getAkeneoInstanceByPimUrlAkeneoInstanceCollection(array $queryPa * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\AkeneoInstance[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\GatewayAkeneoInstancesFromUrlGetLdjsonResponse200|\Gyroscops\Api\Model\AkeneoInstance[]|\Psr\Http\Message\ResponseInterface|null */ - public function getAkeneoInstanceOauthAkeneoInstanceCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getAkeneoInstanceByPimUrlAkeneoInstanceCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetAkeneoInstanceOauthAkeneoInstanceCollection($queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetAkeneoInstanceByPimUrlAkeneoInstanceCollection($queryParameters, $accept), $fetch); } /** - * Retrieves a AkeneoInstance resource. + * Check if an organization exists in the database. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $queryParameters { * - * @return \Gyroscops\Api\Model\AkeneoInstance|\Psr\Http\Message\ResponseInterface|null + * @var string $url + * @var int $page The collection page number + * } * - * @throws \Gyroscops\Api\Exception\GetAkeneoInstanceItemNotFoundException + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html + * + * @return \Gyroscops\Api\Model\GatewayAkeneoInstancesOauthStateGetLdjsonResponse200|\Gyroscops\Api\Model\AkeneoInstance[]|\Psr\Http\Message\ResponseInterface|null */ - public function getAkeneoInstanceItem(string $id, string $fetch = self::FETCH_OBJECT) + public function getAkeneoInstanceOauthAkeneoInstanceCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetAkeneoInstanceItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetAkeneoInstanceOauthAkeneoInstanceCollection($queryParameters, $accept), $fetch); } /** - * Retrieves the collection of AkeneoInstance resources. - * - * @param array $queryParameters { + * Retrieves a AkeneoInstance resource. * - * @var int $page The collection page number - * } + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @return \Gyroscops\Api\Model\AkeneoInstanceJsonld|\Gyroscops\Api\Model\AkeneoInstance|\Psr\Http\Message\ResponseInterface|null * - * @return \Gyroscops\Api\Model\AkeneoInstance[]|\Psr\Http\Message\ResponseInterface|null + * @throws \Gyroscops\Api\Exception\GetAkeneoInstanceItemNotFoundException */ - public function getAkeneoInstanceCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getAkeneoInstanceItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetAkeneoInstanceCollection($queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetAkeneoInstanceItem($id, $accept), $fetch); } /** @@ -1382,15 +1461,16 @@ public function getAkeneoInstanceCollection(array $queryParameters = [], string * * @param \Gyroscops\Api\Model\AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonld|\Gyroscops\Api\Model\AkeneoLinkedAccountAkeneoLinkedAccountsInput|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\AkeneoLinkedAccount|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\AkeneoLinkedAccountJsonld|\Gyroscops\Api\Model\AkeneoLinkedAccount|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\PostAkeneoLinkedAccountCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PostAkeneoLinkedAccountCollectionUnprocessableEntityException */ - public function postAkeneoLinkedAccountCollection($requestBody = null, string $fetch = self::FETCH_OBJECT) + public function postAkeneoLinkedAccountCollection($requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostAkeneoLinkedAccountCollection($requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostAkeneoLinkedAccountCollection($requestBody, $accept), $fetch); } /** @@ -1401,28 +1481,30 @@ public function postAkeneoLinkedAccountCollection($requestBody = null, string $f * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\AkeneoLinkedAccount[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200|\Gyroscops\Api\Model\AkeneoLinkedAccount[]|\Psr\Http\Message\ResponseInterface|null */ - public function getAkeneoLinkedAccountAkeneoLinkedAccountCollection(string $akeneoUserId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getAkeneoLinkedAccountAkeneoLinkedAccountCollection(string $akeneoUserId, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetAkeneoLinkedAccountAkeneoLinkedAccountCollection($akeneoUserId, $queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetAkeneoLinkedAccountAkeneoLinkedAccountCollection($akeneoUserId, $queryParameters, $accept), $fetch); } /** * Retrieves a AkeneoLinkedAccount resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\AkeneoLinkedAccount|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\AkeneoLinkedAccountJsonld|\Gyroscops\Api\Model\AkeneoLinkedAccount|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\GetAkeneoLinkedAccountItemNotFoundException */ - public function getAkeneoLinkedAccountItem(string $id, string $fetch = self::FETCH_OBJECT) + public function getAkeneoLinkedAccountItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetAkeneoLinkedAccountItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetAkeneoLinkedAccountItem($id, $accept), $fetch); } /** @@ -1433,13 +1515,14 @@ public function getAkeneoLinkedAccountItem(string $id, string $fetch = self::FET * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\AkeneoLinkedAccount[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetLdjsonResponse200|\Gyroscops\Api\Model\AkeneoLinkedAccount[]|\Psr\Http\Message\ResponseInterface|null */ - public function getAkeneoLinkedAccountCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getAkeneoLinkedAccountCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetAkeneoLinkedAccountCollection($queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetAkeneoLinkedAccountCollection($queryParameters, $accept), $fetch); } /** @@ -1447,30 +1530,32 @@ public function getAkeneoLinkedAccountCollection(array $queryParameters = [], st * * @param \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateInputJsonld|\Gyroscops\Api\Model\AkeneoOauthTokenOauthStateInput|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateOutputJsonldRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\PostAkeneoOauthTokenCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PostAkeneoOauthTokenCollectionUnprocessableEntityException */ - public function postAkeneoOauthTokenCollection($requestBody = null, string $fetch = self::FETCH_OBJECT) + public function postAkeneoOauthTokenCollection($requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostAkeneoOauthTokenCollection($requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostAkeneoOauthTokenCollection($requestBody, $accept), $fetch); } /** * Retrieves a AkeneoOauthToken resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\AkeneoOauthTokenRead|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\AkeneoOauthTokenJsonldRead|\Gyroscops\Api\Model\AkeneoOauthTokenRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\GetAkeneoOauthTokenItemNotFoundException */ - public function getAkeneoOauthTokenItem(string $id, string $fetch = self::FETCH_OBJECT) + public function getAkeneoOauthTokenItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetAkeneoOauthTokenItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetAkeneoOauthTokenItem($id, $accept), $fetch); } /** @@ -1481,13 +1566,14 @@ public function getAkeneoOauthTokenItem(string $id, string $fetch = self::FETCH_ * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\AkeneoOauthTokenRead[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetLdjsonResponse200|\Gyroscops\Api\Model\AkeneoOauthTokenRead[]|\Psr\Http\Message\ResponseInterface|null */ - public function getAkeneoOauthTokenCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getAkeneoOauthTokenCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetAkeneoOauthTokenCollection($queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetAkeneoOauthTokenCollection($queryParameters, $accept), $fetch); } /** @@ -1495,15 +1581,16 @@ public function getAkeneoOauthTokenCollection(array $queryParameters = [], strin * * @param \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBody|\Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInput[]|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutLdjsonResponse200|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\PutAkeneoOauthTokenAkeneoOauthTokenCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PutAkeneoOauthTokenAkeneoOauthTokenCollectionUnprocessableEntityException */ - public function putAkeneoOauthTokenAkeneoOauthTokenCollection($requestBody = null, string $fetch = self::FETCH_OBJECT) + public function putAkeneoOauthTokenAkeneoOauthTokenCollection($requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PutAkeneoOauthTokenAkeneoOauthTokenCollection($requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PutAkeneoOauthTokenAkeneoOauthTokenCollection($requestBody, $accept), $fetch); } /** @@ -1524,16 +1611,17 @@ public function deleteReferralCodeItem(string $id, string $fetch = self::FETCH_O /** * Retrieves a ReferralCode resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\ReferralCodeReferralCodeRead|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\ReferralCodeJsonldReferralCodeRead|\Gyroscops\Api\Model\ReferralCodeReferralCodeRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\GetReferralCodeItemNotFoundException */ - public function getReferralCodeItem(string $id, string $fetch = self::FETCH_OBJECT) + public function getReferralCodeItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetReferralCodeItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetReferralCodeItem($id, $accept), $fetch); } /** @@ -1544,13 +1632,14 @@ public function getReferralCodeItem(string $id, string $fetch = self::FETCH_OBJE * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\ReferralCodeReferralCodeRead[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\ReferralCodesGetLdjsonResponse200|\Gyroscops\Api\Model\ReferralCodeReferralCodeRead[]|\Psr\Http\Message\ResponseInterface|null */ - public function getReferralCodeCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getReferralCodeCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetReferralCodeCollection($queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetReferralCodeCollection($queryParameters, $accept), $fetch); } /** @@ -1558,30 +1647,32 @@ public function getReferralCodeCollection(array $queryParameters = [], string $f * * @param \Gyroscops\Api\Model\ReferralCodeJsonldReferralCodeWrite|\Gyroscops\Api\Model\ReferralCodeReferralCodeWrite|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\ReferralCodeReferralCodeRead|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\ReferralCodeJsonldReferralCodeRead|\Gyroscops\Api\Model\ReferralCodeReferralCodeRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\PostReferralCodeCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PostReferralCodeCollectionUnprocessableEntityException */ - public function postReferralCodeCollection($requestBody = null, string $fetch = self::FETCH_OBJECT) + public function postReferralCodeCollection($requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostReferralCodeCollection($requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostReferralCodeCollection($requestBody, $accept), $fetch); } /** * Retrieves a OnPremiseRequest resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestRead|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\OnPremiseRequestJsonldOnPremiseRequestRead|\Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\GetOnPremiseRequestItemNotFoundException */ - public function getOnPremiseRequestItem(string $id, string $fetch = self::FETCH_OBJECT) + public function getOnPremiseRequestItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetOnPremiseRequestItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetOnPremiseRequestItem($id, $accept), $fetch); } /** @@ -1592,13 +1683,14 @@ public function getOnPremiseRequestItem(string $id, string $fetch = self::FETCH_ * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestRead[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetLdjsonResponse200|\Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestRead[]|\Psr\Http\Message\ResponseInterface|null */ - public function getOnPremiseRequestCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getOnPremiseRequestCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetOnPremiseRequestCollection($queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetOnPremiseRequestCollection($queryParameters, $accept), $fetch); } /** @@ -1606,30 +1698,32 @@ public function getOnPremiseRequestCollection(array $queryParameters = [], strin * * @param \Gyroscops\Api\Model\OnPremiseRequestJsonldOnPremiseRequestWrite|\Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestWrite|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestRead|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\OnPremiseRequestJsonldOnPremiseRequestRead|\Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\PostOnPremiseRequestCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PostOnPremiseRequestCollectionUnprocessableEntityException */ - public function postOnPremiseRequestCollection($requestBody = null, string $fetch = self::FETCH_OBJECT) + public function postOnPremiseRequestCollection($requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostOnPremiseRequestCollection($requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostOnPremiseRequestCollection($requestBody, $accept), $fetch); } /** * Retrieves a ReferralRequest resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\ReferralRequestReferralRequestRead|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\ReferralRequestJsonldReferralRequestRead|\Gyroscops\Api\Model\ReferralRequestReferralRequestRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\GetReferralRequestItemNotFoundException */ - public function getReferralRequestItem(string $id, string $fetch = self::FETCH_OBJECT) + public function getReferralRequestItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetReferralRequestItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetReferralRequestItem($id, $accept), $fetch); } /** @@ -1638,16 +1732,17 @@ public function getReferralRequestItem(string $id, string $fetch = self::FETCH_O * @param string $id Resource identifier * @param null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\ReferralRequestReferralRequestRead|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\ReferralRequestJsonldReferralRequestRead|\Gyroscops\Api\Model\ReferralRequestReferralRequestRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\AcceptReferralRequestReferralRequestItemBadRequestException * @throws \Gyroscops\Api\Exception\AcceptReferralRequestReferralRequestItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AcceptReferralRequestReferralRequestItemNotFoundException */ - public function acceptReferralRequestReferralRequestItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function acceptReferralRequestReferralRequestItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\AcceptReferralRequestReferralRequestItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\AcceptReferralRequestReferralRequestItem($id, $requestBody, $accept), $fetch); } /** @@ -1656,16 +1751,17 @@ public function acceptReferralRequestReferralRequestItem(string $id, $requestBod * @param string $id Resource identifier * @param null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\ReferralRequestReferralRequestRead|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\ReferralRequestJsonldReferralRequestRead|\Gyroscops\Api\Model\ReferralRequestReferralRequestRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\RejectReferralRequestReferralRequestItemBadRequestException * @throws \Gyroscops\Api\Exception\RejectReferralRequestReferralRequestItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\RejectReferralRequestReferralRequestItemNotFoundException */ - public function rejectReferralRequestReferralRequestItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function rejectReferralRequestReferralRequestItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\RejectReferralRequestReferralRequestItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\RejectReferralRequestReferralRequestItem($id, $requestBody, $accept), $fetch); } /** @@ -1673,15 +1769,16 @@ public function rejectReferralRequestReferralRequestItem(string $id, $requestBod * * @param \Gyroscops\Api\Model\ReferralRequestReferralRequestInputJsonld|\Gyroscops\Api\Model\ReferralRequestReferralRequestInput|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\ReferralRequestReferralRequestRead|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\ReferralRequestJsonldReferralRequestRead|\Gyroscops\Api\Model\ReferralRequestReferralRequestRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\PostReferralRequestCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PostReferralRequestCollectionUnprocessableEntityException */ - public function postReferralRequestCollection($requestBody = null, string $fetch = self::FETCH_OBJECT) + public function postReferralRequestCollection($requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostReferralRequestCollection($requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostReferralRequestCollection($requestBody, $accept), $fetch); } /** @@ -1692,171 +1789,221 @@ public function postReferralRequestCollection($requestBody = null, string $fetch * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html + * + * @return \Gyroscops\Api\Model\ReferralRequestsGetLdjsonResponse200|\Gyroscops\Api\Model\ReferralRequestReferralRequestRead[]|\Psr\Http\Message\ResponseInterface|null + */ + public function getReferralRequestCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetReferralRequestCollection($queryParameters, $accept), $fetch); + } + + /** + * Retrieves the collection of Action resources. + * + * @param array $queryParameters { * - * @return \Gyroscops\Api\Model\ReferralRequestReferralRequestRead[]|\Psr\Http\Message\ResponseInterface|null + * @var int $page The collection page number + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html + * + * @return \Gyroscops\Api\Model\RuntimeActionsGetLdjsonResponse200|\Gyroscops\Api\Model\ActionRead[]|\Psr\Http\Message\ResponseInterface|null */ - public function getReferralRequestCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getActionCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetReferralRequestCollection($queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetActionCollection($queryParameters, $accept), $fetch); } /** * Retrieves a Action resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\ActionRead|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\ActionJsonldRead|\Gyroscops\Api\Model\ActionRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\GetActionItemNotFoundException */ - public function getActionItem(string $id, string $fetch = self::FETCH_OBJECT) + public function getActionItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetActionItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetActionItem($id, $accept), $fetch); } /** * Retrieves a Action resource. * - * @param string $id Action identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Action identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Organization|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\OrganizationJsonld|\Gyroscops\Api\Model\Organization|\Psr\Http\Message\ResponseInterface|null */ - public function apiActionsOrganizationGetSubresourceActionSubresource(string $id, string $fetch = self::FETCH_OBJECT) + public function apiActionsOrganizationGetSubresourceActionSubresource(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiActionsOrganizationGetSubresourceActionSubresource($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiActionsOrganizationGetSubresourceActionSubresource($id, $accept), $fetch); } /** * Retrieves a Action resource. * - * @param string $id Action identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Action identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\User|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\UserJsonld|\Gyroscops\Api\Model\User|\Psr\Http\Message\ResponseInterface|null */ - public function apiActionsOwnerGetSubresourceActionSubresource(string $id, string $fetch = self::FETCH_OBJECT) + public function apiActionsOwnerGetSubresourceActionSubresource(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiActionsOwnerGetSubresourceActionSubresource($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiActionsOwnerGetSubresourceActionSubresource($id, $accept), $fetch); } /** * Retrieves a Action resource. * - * @param string $id Action identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Action identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Workspace|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\WorkspaceJsonld|\Gyroscops\Api\Model\Workspace|\Psr\Http\Message\ResponseInterface|null */ - public function apiActionsWorkspaceGetSubresourceActionSubresource(string $id, string $fetch = self::FETCH_OBJECT) + public function apiActionsWorkspaceGetSubresourceActionSubresource(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiActionsWorkspaceGetSubresourceActionSubresource($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiActionsWorkspaceGetSubresourceActionSubresource($id, $accept), $fetch); } /** - * Retrieves the collection of Action resources. + * Retrieves the collection of Compilation resources. * * @param array $queryParameters { * * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\ActionRead[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\RuntimeCompilationsGetLdjsonResponse200|\Gyroscops\Api\Model\Compilation[]|\Psr\Http\Message\ResponseInterface|null */ - public function getActionCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getCompilationCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetActionCollection($queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetCompilationCollection($queryParameters, $accept), $fetch); } /** - * Creates a pipeline compilation. + * Retrieves a Compilation resource. * - * @param \Gyroscops\Api\Model\CompilationCompilePipelineCommandInputJsonld|\stdClass|null $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\CompilationCompilePipelineCommand|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\CompilationJsonld|\Gyroscops\Api\Model\Compilation|\Psr\Http\Message\ResponseInterface|null * - * @throws \Gyroscops\Api\Exception\PostCompilationCollectionBadRequestException - * @throws \Gyroscops\Api\Exception\PostCompilationCollectionUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\GetCompilationItemNotFoundException */ - public function postCompilationCollection($requestBody = null, string $fetch = self::FETCH_OBJECT) + public function getCompilationItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostCompilationCollection($requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetCompilationItem($id, $accept), $fetch); } /** * Retrieves a Compilation resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * - * @return \Gyroscops\Api\Model\Compilation|\Psr\Http\Message\ResponseInterface|null + * @param string $id Compilation identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @throws \Gyroscops\Api\Exception\GetCompilationItemNotFoundException + * @return \Gyroscops\Api\Model\OrganizationJsonld|\Gyroscops\Api\Model\Organization|\Psr\Http\Message\ResponseInterface|null */ - public function getCompilationItem(string $id, string $fetch = self::FETCH_OBJECT) + public function apiCompilationsOrganizationGetSubresourceCompilationSubresource(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetCompilationItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiCompilationsOrganizationGetSubresourceCompilationSubresource($id, $accept), $fetch); } /** * Retrieves a Compilation resource. * - * @param string $id Compilation identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Compilation identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Organization|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\UserJsonld|\Gyroscops\Api\Model\User|\Psr\Http\Message\ResponseInterface|null */ - public function apiCompilationsOrganizationGetSubresourceCompilationSubresource(string $id, string $fetch = self::FETCH_OBJECT) + public function apiCompilationsUserGetSubresourceCompilationSubresource(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiCompilationsOrganizationGetSubresourceCompilationSubresource($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiCompilationsUserGetSubresourceCompilationSubresource($id, $accept), $fetch); } /** * Retrieves a Compilation resource. * - * @param string $id Compilation identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Compilation identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\User|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\WorkspaceJsonld|\Gyroscops\Api\Model\Workspace|\Psr\Http\Message\ResponseInterface|null */ - public function apiCompilationsUserGetSubresourceCompilationSubresource(string $id, string $fetch = self::FETCH_OBJECT) + public function apiCompilationsWorkspaceGetSubresourceCompilationSubresource(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiCompilationsUserGetSubresourceCompilationSubresource($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiCompilationsWorkspaceGetSubresourceCompilationSubresource($id, $accept), $fetch); } /** - * Retrieves a Compilation resource. + * Retrieves the collection of ExecutionPipelineJob resources. * - * @param string $id Compilation identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $queryParameters { * - * @return \Gyroscops\Api\Model\Workspace|\Psr\Http\Message\ResponseInterface|null + * @var int $page The collection page number + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html + * + * @return \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetLdjsonResponse200|\Gyroscops\Api\Model\ExecutionPipelineJob[]|\Psr\Http\Message\ResponseInterface|null */ - public function apiCompilationsWorkspaceGetSubresourceCompilationSubresource(string $id, string $fetch = self::FETCH_OBJECT) + public function getExecutionPipelineJobCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiCompilationsWorkspaceGetSubresourceCompilationSubresource($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionPipelineJobCollection($queryParameters, $accept), $fetch); } /** - * Retrieves the collection of Compilation resources. + * Retrieves a ExecutionPipelineJob resource. + * + * @param string $id ExecutionPipelineJob identifier + * @param array $queryParameters { + * + * @var int $page The collection page number + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html + * + * @return \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200|\Gyroscops\Api\Model\ExecutionPipelineStep[]|\Psr\Http\Message\ResponseInterface|null + */ + public function apiExecutionPipelineJobsStepsGetSubresourceExecutionPipelineJobSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionPipelineJobsStepsGetSubresourceExecutionPipelineJobSubresource($id, $queryParameters, $accept), $fetch); + } + + /** + * Retrieves the collection of Execution resources. * * @param array $queryParameters { * * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Compilation[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\RuntimeExecutionsGetLdjsonResponse200|\Gyroscops\Api\Model\ExecutionRead[]|\Psr\Http\Message\ResponseInterface|null */ - public function getCompilationCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getExecutionCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetCompilationCollection($queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionCollection($queryParameters, $accept), $fetch); } /** @@ -1864,80 +2011,114 @@ public function getCompilationCollection(array $queryParameters = [], string $fe * * @param \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandInputJsonld|\Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandInput|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandJsonldRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\DeclareExecutionExecutionCollectionBadRequestException * @throws \Gyroscops\Api\Exception\DeclareExecutionExecutionCollectionUnprocessableEntityException */ - public function declareExecutionExecutionCollection($requestBody = null, string $fetch = self::FETCH_OBJECT) + public function declareExecutionExecutionCollection($requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\DeclareExecutionExecutionCollection($requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\DeclareExecutionExecutionCollection($requestBody, $accept), $fetch); } /** - * Retrieves a ExecutionPipelineJob resource. + * Retrieves a ExecutionAction resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\ExecutionPipelineJob|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\ExecutionActionJsonld|\Gyroscops\Api\Model\ExecutionAction|\Psr\Http\Message\ResponseInterface|null * - * @throws \Gyroscops\Api\Exception\GetExecutionPipelineJobItemNotFoundException + * @throws \Gyroscops\Api\Exception\GetExecutionActionItemNotFoundException */ - public function getExecutionPipelineJobItem(string $id, string $fetch = self::FETCH_OBJECT) + public function getExecutionActionItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionPipelineJobItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionActionItem($id, $accept), $fetch); } /** - * Retrieves a ExecutionPipelineJob resource. + * Retrieves a ExecutionPipeline resource. * - * @param string $id ExecutionPipelineJob identifier - * @param array $queryParameters { + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @var int $page The collection page number - * } + * @return \Gyroscops\Api\Model\ExecutionPipelineJsonld|\Gyroscops\Api\Model\ExecutionPipeline|\Psr\Http\Message\ResponseInterface|null * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @throws \Gyroscops\Api\Exception\GetExecutionPipelineItemNotFoundException + */ + public function getExecutionPipelineItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionPipelineItem($id, $accept), $fetch); + } + + /** + * Retrieves a ExecutionWorkflow resource. + * + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html + * + * @return \Gyroscops\Api\Model\ExecutionWorkflowJsonld|\Gyroscops\Api\Model\ExecutionWorkflow|\Psr\Http\Message\ResponseInterface|null * - * @return \Gyroscops\Api\Model\ExecutionPipelineStep[]|\Psr\Http\Message\ResponseInterface|null + * @throws \Gyroscops\Api\Exception\GetExecutionWorkflowItemNotFoundException */ - public function apiExecutionPipelineJobsStepsGetSubresourceExecutionPipelineJobSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getExecutionWorkflowItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionPipelineJobsStepsGetSubresourceExecutionPipelineJobSubresource($id, $queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionWorkflowItem($id, $accept), $fetch); } /** - * Retrieves the collection of ExecutionPipelineJob resources. + * Retrieves the collection of ExecutionPipeline resources. * * @param array $queryParameters { * * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\ExecutionPipelineJob[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\RuntimeExecutionsPipelinesGetLdjsonResponse200|\Gyroscops\Api\Model\ExecutionPipeline[]|\Psr\Http\Message\ResponseInterface|null */ - public function getExecutionPipelineJobCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getExecutionPipelineCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionPipelineJobCollection($queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionPipelineCollection($queryParameters, $accept), $fetch); } /** - * Retrieves a ExecutionAction resource. + * Retrieves a ExecutionPipelineStep resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\ExecutionAction|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\ExecutionPipelineStepJsonld|\Gyroscops\Api\Model\ExecutionPipelineStep|\Psr\Http\Message\ResponseInterface|null * - * @throws \Gyroscops\Api\Exception\GetExecutionActionItemNotFoundException + * @throws \Gyroscops\Api\Exception\GetExecutionPipelineStepItemNotFoundException + */ + public function getExecutionPipelineStepItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionPipelineStepItem($id, $accept), $fetch); + } + + /** + * Retrieves a ExecutionPipelineJob resource. + * + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html + * + * @return \Gyroscops\Api\Model\ExecutionPipelineJobJsonld|\Gyroscops\Api\Model\ExecutionPipelineJob|\Psr\Http\Message\ResponseInterface|null + * + * @throws \Gyroscops\Api\Exception\GetExecutionPipelineJobItemNotFoundException */ - public function getExecutionActionItem(string $id, string $fetch = self::FETCH_OBJECT) + public function getExecutionPipelineJobItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionActionItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionPipelineJobItem($id, $accept), $fetch); } /** @@ -1949,76 +2130,83 @@ public function getExecutionActionItem(string $id, string $fetch = self::FETCH_O * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\ExecutionPipelineStep[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200|\Gyroscops\Api\Model\ExecutionPipelineStep[]|\Psr\Http\Message\ResponseInterface|null */ - public function apiExecutionPipelinesStepsGetSubresourceExecutionPipelineSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function apiExecutionPipelinesStepsGetSubresourceExecutionPipelineSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionPipelinesStepsGetSubresourceExecutionPipelineSubresource($id, $queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionPipelinesStepsGetSubresourceExecutionPipelineSubresource($id, $queryParameters, $accept), $fetch); } /** - * Retrieves the collection of ExecutionPipeline resources. - * - * @param array $queryParameters { + * Get logs from a selected step. * - * @var int $page The collection page number - * } + * @param string $stepCode Step resource code + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @return \Gyroscops\Api\Model\ExecutionPipelineJsonld|\Gyroscops\Api\Model\ExecutionPipeline|\Psr\Http\Message\ResponseInterface|null * - * @return \Gyroscops\Api\Model\ExecutionPipeline[]|\Psr\Http\Message\ResponseInterface|null + * @throws \Gyroscops\Api\Exception\GetExecutionLogsExecutionPipelineItemNotFoundException */ - public function getExecutionPipelineCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getExecutionLogsExecutionPipelineItem(string $stepCode, string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionPipelineCollection($queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionLogsExecutionPipelineItem($stepCode, $id, $accept), $fetch); } /** - * Retrieves a ExecutionWorkflow resource. + * Get rejects from a selected step. * - * @param string $id ExecutionWorkflow identifier - * @param string $jobs ExecutionWorkflowJob identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $stepCode Step resource code + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html + * + * @return \Gyroscops\Api\Model\ExecutionPipelineJsonld|\Gyroscops\Api\Model\ExecutionPipeline|\Psr\Http\Message\ResponseInterface|null * - * @return \Gyroscops\Api\Model\ExecutionWorkflowJobAction|\Psr\Http\Message\ResponseInterface|null + * @throws \Gyroscops\Api\Exception\GetExecutionRejectsExecutionPipelineItemNotFoundException */ - public function apiExecutionWorkflowsJobsActionGetSubresourceExecutionWorkflowSubresource(string $id, string $jobs, string $fetch = self::FETCH_OBJECT) + public function getExecutionRejectsExecutionPipelineItem(string $stepCode, string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionWorkflowsJobsActionGetSubresourceExecutionWorkflowSubresource($id, $jobs), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionRejectsExecutionPipelineItem($stepCode, $id, $accept), $fetch); } /** - * Retrieves a ExecutionWorkflow resource. + * Get logs from an executed step. * - * @param string $id ExecutionWorkflow identifier - * @param string $jobs ExecutionWorkflowJob identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $jobCode Job resource code + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\ExecutionPipelineJob|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\ExecutionWorkflowJsonld|\Gyroscops\Api\Model\ExecutionWorkflow|\Psr\Http\Message\ResponseInterface|null + * + * @throws \Gyroscops\Api\Exception\GetExecutionActionLogsExecutionWorkflowItemNotFoundException */ - public function apiExecutionWorkflowsJobsPipelineGetSubresourceExecutionWorkflowSubresource(string $id, string $jobs, string $fetch = self::FETCH_OBJECT) + public function getExecutionActionLogsExecutionWorkflowItem(string $jobCode, string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionWorkflowsJobsPipelineGetSubresourceExecutionWorkflowSubresource($id, $jobs), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionActionLogsExecutionWorkflowItem($jobCode, $id, $accept), $fetch); } /** - * Retrieves a ExecutionWorkflow resource. + * Get rejects from an executed step. * - * @param string $id ExecutionWorkflow identifier - * @param array $queryParameters { - * - * @var int $page The collection page number - * } + * @param string $jobCode Job resource id + * @param string $stepCode Step resource id + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @return \Gyroscops\Api\Model\ExecutionWorkflowJsonld|\Gyroscops\Api\Model\ExecutionWorkflow|\Psr\Http\Message\ResponseInterface|null * - * @return \Gyroscops\Api\Model\ExecutionWorkflowJob[]|\Psr\Http\Message\ResponseInterface|null + * @throws \Gyroscops\Api\Exception\GetExecutionPipelineRejectsExecutionWorkflowItemNotFoundException */ - public function apiExecutionWorkflowsJobsGetSubresourceExecutionWorkflowSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getExecutionPipelineRejectsExecutionWorkflowItem(string $jobCode, string $stepCode, string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionWorkflowsJobsGetSubresourceExecutionWorkflowSubresource($id, $queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionPipelineRejectsExecutionWorkflowItem($jobCode, $stepCode, $id, $accept), $fetch); } /** @@ -2029,84 +2217,92 @@ public function apiExecutionWorkflowsJobsGetSubresourceExecutionWorkflowSubresou * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\ExecutionWorkflow[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\RuntimeExecutionsWorkflowsGetLdjsonResponse200|\Gyroscops\Api\Model\ExecutionWorkflow[]|\Psr\Http\Message\ResponseInterface|null */ - public function getExecutionWorkflowCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getExecutionWorkflowCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionWorkflowCollection($queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionWorkflowCollection($queryParameters, $accept), $fetch); } /** - * Retrieves a ExecutionPipelineStep resource. + * Retrieves a ExecutionWorkflowJobAction resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\ExecutionPipelineStep|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\ExecutionWorkflowJobActionJsonld|\Gyroscops\Api\Model\ExecutionWorkflowJobAction|\Psr\Http\Message\ResponseInterface|null * - * @throws \Gyroscops\Api\Exception\GetExecutionPipelineStepItemNotFoundException + * @throws \Gyroscops\Api\Exception\GetExecutionWorkflowJobActionItemNotFoundException */ - public function getExecutionPipelineStepItem(string $id, string $fetch = self::FETCH_OBJECT) + public function getExecutionWorkflowJobActionItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionPipelineStepItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionWorkflowJobActionItem($id, $accept), $fetch); } /** - * Retrieves a ExecutionPipeline resource. + * Retrieves a ExecutionWorkflowJob resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\ExecutionPipeline|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\ExecutionWorkflowJobJsonld|\Gyroscops\Api\Model\ExecutionWorkflowJob|\Psr\Http\Message\ResponseInterface|null * - * @throws \Gyroscops\Api\Exception\GetExecutionPipelineItemNotFoundException + * @throws \Gyroscops\Api\Exception\GetExecutionWorkflowJobItemNotFoundException */ - public function getExecutionPipelineItem(string $id, string $fetch = self::FETCH_OBJECT) + public function getExecutionWorkflowJobItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionPipelineItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionWorkflowJobItem($id, $accept), $fetch); } /** - * Retrieves a ExecutionWorkflowJobAction resource. + * Retrieves the collection of ExecutionWorkflowJob resources. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $queryParameters { * - * @return \Gyroscops\Api\Model\ExecutionWorkflowJobAction|\Psr\Http\Message\ResponseInterface|null + * @var int $page The collection page number + * } * - * @throws \Gyroscops\Api\Exception\GetExecutionWorkflowJobActionItemNotFoundException + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html + * + * @return \Gyroscops\Api\Model\RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200|\Gyroscops\Api\Model\ExecutionWorkflowJob[]|\Psr\Http\Message\ResponseInterface|null */ - public function getExecutionWorkflowJobActionItem(string $id, string $fetch = self::FETCH_OBJECT) + public function getExecutionWorkflowJobCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionWorkflowJobActionItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionWorkflowJobCollection($queryParameters, $accept), $fetch); } /** * Retrieves a ExecutionWorkflowJob resource. * - * @param string $id ExecutionWorkflowJob identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id ExecutionWorkflowJob identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\ExecutionWorkflowJobAction|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\ExecutionWorkflowJobActionJsonld|\Gyroscops\Api\Model\ExecutionWorkflowJobAction|\Psr\Http\Message\ResponseInterface|null */ - public function apiExecutionWorkflowJobsActionGetSubresourceExecutionWorkflowJobSubresource(string $id, string $fetch = self::FETCH_OBJECT) + public function apiExecutionWorkflowJobsActionGetSubresourceExecutionWorkflowJobSubresource(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionWorkflowJobsActionGetSubresourceExecutionWorkflowJobSubresource($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionWorkflowJobsActionGetSubresourceExecutionWorkflowJobSubresource($id, $accept), $fetch); } /** * Retrieves a ExecutionWorkflowJob resource. * - * @param string $id ExecutionWorkflowJob identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id ExecutionWorkflowJob identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\ExecutionPipelineJob|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\ExecutionPipelineJobJsonld|\Gyroscops\Api\Model\ExecutionPipelineJob|\Psr\Http\Message\ResponseInterface|null */ - public function apiExecutionWorkflowJobsPipelineGetSubresourceExecutionWorkflowJobSubresource(string $id, string $fetch = self::FETCH_OBJECT) + public function apiExecutionWorkflowJobsPipelineGetSubresourceExecutionWorkflowJobSubresource(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionWorkflowJobsPipelineGetSubresourceExecutionWorkflowJobSubresource($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionWorkflowJobsPipelineGetSubresourceExecutionWorkflowJobSubresource($id, $accept), $fetch); } /** @@ -2119,360 +2315,345 @@ public function apiExecutionWorkflowJobsPipelineGetSubresourceExecutionWorkflowJ * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\ExecutionPipelineStep[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200|\Gyroscops\Api\Model\ExecutionPipelineStep[]|\Psr\Http\Message\ResponseInterface|null */ - public function apiExecutionWorkflowJobsPipelineStepsGetSubresourceExecutionWorkflowJobSubresource(string $id, string $pipeline, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function apiExecutionWorkflowJobsPipelineStepsGetSubresourceExecutionWorkflowJobSubresource(string $id, string $pipeline, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionWorkflowJobsPipelineStepsGetSubresourceExecutionWorkflowJobSubresource($id, $pipeline, $queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionWorkflowJobsPipelineStepsGetSubresourceExecutionWorkflowJobSubresource($id, $pipeline, $queryParameters, $accept), $fetch); } /** - * Retrieves the collection of ExecutionWorkflowJob resources. + * Retrieves a ExecutionWorkflow resource. * - * @param array $queryParameters { + * @param string $id ExecutionWorkflow identifier + * @param array $queryParameters { * * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\ExecutionWorkflowJob[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200|\Gyroscops\Api\Model\ExecutionWorkflowJob[]|\Psr\Http\Message\ResponseInterface|null */ - public function getExecutionWorkflowJobCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function apiExecutionWorkflowsJobsGetSubresourceExecutionWorkflowSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionWorkflowJobCollection($queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionWorkflowsJobsGetSubresourceExecutionWorkflowSubresource($id, $queryParameters, $accept), $fetch); } /** - * Retrieves a ExecutionWorkflowJob resource. - * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * Retrieves a ExecutionWorkflow resource. * - * @return \Gyroscops\Api\Model\ExecutionWorkflowJob|\Psr\Http\Message\ResponseInterface|null + * @param string $id ExecutionWorkflow identifier + * @param string $jobs ExecutionWorkflowJob identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @throws \Gyroscops\Api\Exception\GetExecutionWorkflowJobItemNotFoundException + * @return \Gyroscops\Api\Model\ExecutionWorkflowJobActionJsonld|\Gyroscops\Api\Model\ExecutionWorkflowJobAction|\Psr\Http\Message\ResponseInterface|null */ - public function getExecutionWorkflowJobItem(string $id, string $fetch = self::FETCH_OBJECT) + public function apiExecutionWorkflowsJobsActionGetSubresourceExecutionWorkflowSubresource(string $id, string $jobs, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionWorkflowJobItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionWorkflowsJobsActionGetSubresourceExecutionWorkflowSubresource($id, $jobs, $accept), $fetch); } /** * Retrieves a ExecutionWorkflow resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id ExecutionWorkflow identifier + * @param string $jobs ExecutionWorkflowJob identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\ExecutionWorkflow|\Psr\Http\Message\ResponseInterface|null - * - * @throws \Gyroscops\Api\Exception\GetExecutionWorkflowItemNotFoundException + * @return \Gyroscops\Api\Model\ExecutionPipelineJobJsonld|\Gyroscops\Api\Model\ExecutionPipelineJob|\Psr\Http\Message\ResponseInterface|null */ - public function getExecutionWorkflowItem(string $id, string $fetch = self::FETCH_OBJECT) + public function apiExecutionWorkflowsJobsPipelineGetSubresourceExecutionWorkflowSubresource(string $id, string $jobs, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionWorkflowItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionWorkflowsJobsPipelineGetSubresourceExecutionWorkflowSubresource($id, $jobs, $accept), $fetch); } /** * Retrieves a Execution resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\ExecutionRead|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\ExecutionJsonldRead|\Gyroscops\Api\Model\ExecutionRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\GetExecutionItemNotFoundException */ - public function getExecutionItem(string $id, string $fetch = self::FETCH_OBJECT) + public function getExecutionItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionItem($id, $accept), $fetch); } /** * Retrieves a Execution resource. * - * @param string $id Execution identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Execution identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\ExecutionAction|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\ExecutionActionJsonld|\Gyroscops\Api\Model\ExecutionAction|\Psr\Http\Message\ResponseInterface|null */ - public function apiExecutionsActionGetSubresourceExecutionSubresource(string $id, string $fetch = self::FETCH_OBJECT) + public function apiExecutionsActionGetSubresourceExecutionSubresource(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionsActionGetSubresourceExecutionSubresource($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionsActionGetSubresourceExecutionSubresource($id, $accept), $fetch); } /** - * Finishes a pipeline execution. + * Interrupts a workflow execution. * - * @param string $id Resource identifier - * @param \Gyroscops\Api\Model\ExecutionFinishPipelineExecutionCommandInputJsonld|\stdClass|null $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param \Gyroscops\Api\Model\ExecutionWorkflowInterruptWorkflowExecutionCommandInputJsonld|\stdClass|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\ExecutionWorkflowInterruptWorkflowExecutionCommandJsonld|\Gyroscops\Api\Model\ExecutionWorkflowInterruptWorkflowExecutionCommand|\Psr\Http\Message\ResponseInterface|null * - * @throws \Gyroscops\Api\Exception\FinishExecutionExecutionItemBadRequestException - * @throws \Gyroscops\Api\Exception\FinishExecutionExecutionItemUnprocessableEntityException - * @throws \Gyroscops\Api\Exception\FinishExecutionExecutionItemNotFoundException + * @throws \Gyroscops\Api\Exception\InterruptExecutionExecutionWorkflowItemBadRequestException + * @throws \Gyroscops\Api\Exception\InterruptExecutionExecutionWorkflowItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\InterruptExecutionExecutionWorkflowItemNotFoundException */ - public function finishExecutionExecutionItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function interruptExecutionExecutionWorkflowItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\FinishExecutionExecutionItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\InterruptExecutionExecutionWorkflowItem($id, $requestBody, $accept), $fetch); } /** - * Interrupts a pipeline execution. - * - * @param string $id Resource identifier - * @param \Gyroscops\Api\Model\ExecutionInterruptPipelineExecutionCommandInputJsonld|\stdClass|null $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * Retrieves a Execution resource. * - * @return \Psr\Http\Message\ResponseInterface|null + * @param string $id Execution identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @throws \Gyroscops\Api\Exception\InterruptExecutionExecutionItemBadRequestException - * @throws \Gyroscops\Api\Exception\InterruptExecutionExecutionItemUnprocessableEntityException - * @throws \Gyroscops\Api\Exception\InterruptExecutionExecutionItemNotFoundException + * @return \Gyroscops\Api\Model\OrganizationJsonld|\Gyroscops\Api\Model\Organization|\Psr\Http\Message\ResponseInterface|null */ - public function interruptExecutionExecutionItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function apiExecutionsOrganizationGetSubresourceExecutionSubresource(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\InterruptExecutionExecutionItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionsOrganizationGetSubresourceExecutionSubresource($id, $accept), $fetch); } /** * Retrieves a Execution resource. * - * @param string $id Execution identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Execution identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Organization|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\UserJsonld|\Gyroscops\Api\Model\User|\Psr\Http\Message\ResponseInterface|null */ - public function apiExecutionsOrganizationGetSubresourceExecutionSubresource(string $id, string $fetch = self::FETCH_OBJECT) + public function apiExecutionsOwnerGetSubresourceExecutionSubresource(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionsOrganizationGetSubresourceExecutionSubresource($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionsOwnerGetSubresourceExecutionSubresource($id, $accept), $fetch); } /** * Retrieves a Execution resource. * - * @param string $id Execution identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Execution identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\User|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\ExecutionPipelineJsonld|\Gyroscops\Api\Model\ExecutionPipeline|\Psr\Http\Message\ResponseInterface|null */ - public function apiExecutionsOwnerGetSubresourceExecutionSubresource(string $id, string $fetch = self::FETCH_OBJECT) + public function apiExecutionsPipelineGetSubresourceExecutionSubresource(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionsOwnerGetSubresourceExecutionSubresource($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionsPipelineGetSubresourceExecutionSubresource($id, $accept), $fetch); } /** - * Retrieves a Execution resource. + * Resumes a workflow execution. * - * @param string $id Execution identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param \Gyroscops\Api\Model\ExecutionWorkflowResumeWorkflowExecutionCommandInputJsonld|\stdClass|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html + * + * @return \Gyroscops\Api\Model\ExecutionWorkflowResumeWorkflowExecutionCommandJsonld|\Gyroscops\Api\Model\ExecutionWorkflowResumeWorkflowExecutionCommand|\Psr\Http\Message\ResponseInterface|null * - * @return \Gyroscops\Api\Model\ExecutionPipeline|\Psr\Http\Message\ResponseInterface|null + * @throws \Gyroscops\Api\Exception\ResumeExecutionExecutionWorkflowItemBadRequestException + * @throws \Gyroscops\Api\Exception\ResumeExecutionExecutionWorkflowItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\ResumeExecutionExecutionWorkflowItemNotFoundException */ - public function apiExecutionsPipelineGetSubresourceExecutionSubresource(string $id, string $fetch = self::FETCH_OBJECT) + public function resumeExecutionExecutionWorkflowItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionsPipelineGetSubresourceExecutionSubresource($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ResumeExecutionExecutionWorkflowItem($id, $requestBody, $accept), $fetch); } /** - * Resumes a pipeline execution. + * Terminates a workflow execution. * - * @param string $id Resource identifier - * @param \Gyroscops\Api\Model\ExecutionResumePipelineExecutionCommandInputJsonld|\stdClass|null $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param \Gyroscops\Api\Model\ExecutionWorkflowTerminateWorkflowExecutionCommandInputJsonld|\Gyroscops\Api\Model\ExecutionWorkflowTerminateWorkflowExecutionCommandInput|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\ExecutionWorkflowTerminateWorkflowExecutionCommandJsonld|\Gyroscops\Api\Model\ExecutionWorkflowTerminateWorkflowExecutionCommand|\Psr\Http\Message\ResponseInterface|null * - * @throws \Gyroscops\Api\Exception\ResumeExecutionExecutionItemBadRequestException - * @throws \Gyroscops\Api\Exception\ResumeExecutionExecutionItemUnprocessableEntityException - * @throws \Gyroscops\Api\Exception\ResumeExecutionExecutionItemNotFoundException + * @throws \Gyroscops\Api\Exception\TerminateExecutionExecutionWorkflowItemBadRequestException + * @throws \Gyroscops\Api\Exception\TerminateExecutionExecutionWorkflowItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\TerminateExecutionExecutionWorkflowItemNotFoundException */ - public function resumeExecutionExecutionItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function terminateExecutionExecutionWorkflowItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ResumeExecutionExecutionItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\TerminateExecutionExecutionWorkflowItem($id, $requestBody, $accept), $fetch); } /** - * Starts a pipeline execution. - * - * @param string $id Resource identifier - * @param \Gyroscops\Api\Model\ExecutionStartPipelineExecutionCommandInputJsonld|\stdClass|null $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * Retrieves a Execution resource. * - * @return \Psr\Http\Message\ResponseInterface|null + * @param string $id Execution identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @throws \Gyroscops\Api\Exception\StartExecutionExecutionItemBadRequestException - * @throws \Gyroscops\Api\Exception\StartExecutionExecutionItemUnprocessableEntityException - * @throws \Gyroscops\Api\Exception\StartExecutionExecutionItemNotFoundException + * @return \Gyroscops\Api\Model\ExecutionWorkflowJsonld|\Gyroscops\Api\Model\ExecutionWorkflow|\Psr\Http\Message\ResponseInterface|null */ - public function startExecutionExecutionItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function apiExecutionsWorkflowGetSubresourceExecutionSubresource(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\StartExecutionExecutionItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionsWorkflowGetSubresourceExecutionSubresource($id, $accept), $fetch); } /** - * Terminates a pipeline execution. + * Retrieves a Execution resource. * - * @param string $id Resource identifier - * @param \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandInputJsonld|\Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandInput|null $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Execution identifier + * @param string $workflow ExecutionWorkflow identifier + * @param array $queryParameters { * - * @return \Psr\Http\Message\ResponseInterface|null + * @var int $page The collection page number + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @throws \Gyroscops\Api\Exception\TerminateExecutionExecutionItemBadRequestException - * @throws \Gyroscops\Api\Exception\TerminateExecutionExecutionItemUnprocessableEntityException - * @throws \Gyroscops\Api\Exception\TerminateExecutionExecutionItemNotFoundException + * @return \Gyroscops\Api\Model\RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200|\Gyroscops\Api\Model\ExecutionWorkflowJob[]|\Psr\Http\Message\ResponseInterface|null */ - public function terminateExecutionExecutionItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function apiExecutionsWorkflowJobsGetSubresourceExecutionSubresource(string $id, string $workflow, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\TerminateExecutionExecutionItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionsWorkflowJobsGetSubresourceExecutionSubresource($id, $workflow, $queryParameters, $accept), $fetch); } /** - * Updates a pipeline execution state. + * Retrieves a Execution resource. * - * @param string $id Resource identifier - * @param \Gyroscops\Api\Model\ExecutionUpdatePipelineExecutionStateCommandInputJsonld|\Gyroscops\Api\Model\ExecutionUpdatePipelineExecutionStateCommandInput|null $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * - * @return \Psr\Http\Message\ResponseInterface|null + * @param string $id Execution identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @throws \Gyroscops\Api\Exception\UpdateExecutionStateExecutionItemBadRequestException - * @throws \Gyroscops\Api\Exception\UpdateExecutionStateExecutionItemUnprocessableEntityException - * @throws \Gyroscops\Api\Exception\UpdateExecutionStateExecutionItemNotFoundException + * @return \Gyroscops\Api\Model\WorkspaceJsonld|\Gyroscops\Api\Model\Workspace|\Psr\Http\Message\ResponseInterface|null */ - public function updateExecutionStateExecutionItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function apiExecutionsWorkspaceGetSubresourceExecutionSubresource(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\UpdateExecutionStateExecutionItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionsWorkspaceGetSubresourceExecutionSubresource($id, $accept), $fetch); } /** - * Retrieves a Execution resource. - * - * @param string $id Execution identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * - * @return \Gyroscops\Api\Model\ExecutionWorkflow|\Psr\Http\Message\ResponseInterface|null - */ - public function apiExecutionsWorkflowGetSubresourceExecutionSubresource(string $id, string $fetch = self::FETCH_OBJECT) - { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionsWorkflowGetSubresourceExecutionSubresource($id), $fetch); - } - - /** - * Retrieves a Execution resource. + * Retrieves the collection of PipelineStepProbe resources. * - * @param string $id Execution identifier - * @param string $workflow ExecutionWorkflow identifier - * @param array $queryParameters { + * @param array $queryParameters { * * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\ExecutionWorkflowJob[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\RuntimePipelineStepProbesGetLdjsonResponse200|\Gyroscops\Api\Model\PipelineStepProbe[]|\Psr\Http\Message\ResponseInterface|null */ - public function apiExecutionsWorkflowJobsGetSubresourceExecutionSubresource(string $id, string $workflow, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getPipelineStepProbeCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionsWorkflowJobsGetSubresourceExecutionSubresource($id, $workflow, $queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetPipelineStepProbeCollection($queryParameters, $accept), $fetch); } /** - * Retrieves a Execution resource. + * Retrieves a PipelineStepProbe resource. * - * @param string $id Execution identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html + * + * @return \Gyroscops\Api\Model\PipelineStepProbeJsonld|\Gyroscops\Api\Model\PipelineStepProbe|\Psr\Http\Message\ResponseInterface|null * - * @return \Gyroscops\Api\Model\Workspace|\Psr\Http\Message\ResponseInterface|null + * @throws \Gyroscops\Api\Exception\GetPipelineStepProbeItemNotFoundException */ - public function apiExecutionsWorkspaceGetSubresourceExecutionSubresource(string $id, string $fetch = self::FETCH_OBJECT) + public function getPipelineStepProbeItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiExecutionsWorkspaceGetSubresourceExecutionSubresource($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetPipelineStepProbeItem($id, $accept), $fetch); } /** - * Retrieves the collection of Execution resources. + * Retrieves the collection of PipelineStep resources. * * @param array $queryParameters { * * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\ExecutionRead[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\RuntimePipelineStepsGetLdjsonResponse200|\Gyroscops\Api\Model\PipelineStep[]|\Psr\Http\Message\ResponseInterface|null */ - public function getExecutionCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getPipelineStepCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetExecutionCollection($queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetPipelineStepCollection($queryParameters, $accept), $fetch); } /** - * Declares a docker pipeline. + * Retrieves a PipelineStep resource. * - * @param \Gyroscops\Api\Model\PipelineDeclarePipelineCommandInputJsonld|\Gyroscops\Api\Model\PipelineDeclarePipelineCommandInput|null $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\PipelineStepJsonld|\Gyroscops\Api\Model\PipelineStep|\Psr\Http\Message\ResponseInterface|null * - * @throws \Gyroscops\Api\Exception\DeclarePipelinePipelineCollectionBadRequestException - * @throws \Gyroscops\Api\Exception\DeclarePipelinePipelineCollectionUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\GetPipelineStepItemNotFoundException */ - public function declarePipelinePipelineCollection($requestBody = null, string $fetch = self::FETCH_OBJECT) + public function getPipelineStepItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\DeclarePipelinePipelineCollection($requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetPipelineStepItem($id, $accept), $fetch); } /** - * Retrieves the collection of PipelineStepProbe resources. + * Retrieves the collection of Pipeline resources. * * @param array $queryParameters { * * @var int $page The collection page number + * @var string $code + * @var array $code[] * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\PipelineStepProbe[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\RuntimePipelinesGetLdjsonResponse200|\Gyroscops\Api\Model\PipelineRead[]|\Psr\Http\Message\ResponseInterface|null */ - public function getPipelineStepProbeCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getPipelineCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetPipelineStepProbeCollection($queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetPipelineCollection($queryParameters, $accept), $fetch); } /** - * Retrieves a PipelineStepProbe resource. - * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * - * @return \Gyroscops\Api\Model\PipelineStepProbe|\Psr\Http\Message\ResponseInterface|null + * Declares a pipeline. * - * @throws \Gyroscops\Api\Exception\GetPipelineStepProbeItemNotFoundException - */ - public function getPipelineStepProbeItem(string $id, string $fetch = self::FETCH_OBJECT) - { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetPipelineStepProbeItem($id), $fetch); - } - - /** - * Retrieves a PipelineStep resource. - * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param \Gyroscops\Api\Model\PipelineDeclarePipelineCommandInputJsonld|\Gyroscops\Api\Model\PipelineDeclarePipelineCommandInput|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\PipelineStep|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\PipelineDeclarePipelineCommandJsonldRead|\Psr\Http\Message\ResponseInterface|null * - * @throws \Gyroscops\Api\Exception\GetPipelineStepItemNotFoundException + * @throws \Gyroscops\Api\Exception\DeclarePipelinePipelineCollectionBadRequestException + * @throws \Gyroscops\Api\Exception\DeclarePipelinePipelineCollectionUnprocessableEntityException */ - public function getPipelineStepItem(string $id, string $fetch = self::FETCH_OBJECT) + public function declarePipelinePipelineCollection($requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetPipelineStepItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\DeclarePipelinePipelineCollection($requestBody, $accept), $fetch); } /** @@ -2484,30 +2665,14 @@ public function getPipelineStepItem(string $id, string $fetch = self::FETCH_OBJE * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\PipelineStepProbe[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\RuntimePipelinesStepsIdProbesGetLdjsonResponse200|\Gyroscops\Api\Model\PipelineStepProbe[]|\Psr\Http\Message\ResponseInterface|null */ - public function apiPipelineStepsProbesGetSubresourcePipelineStepSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function apiPipelineStepsProbesGetSubresourcePipelineStepSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiPipelineStepsProbesGetSubresourcePipelineStepSubresource($id, $queryParameters), $fetch); - } - - /** - * Retrieves the collection of PipelineStep resources. - * - * @param array $queryParameters { - * - * @var int $page The collection page number - * } - * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * - * @return \Gyroscops\Api\Model\PipelineStep[]|\Psr\Http\Message\ResponseInterface|null - */ - public function getPipelineStepCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) - { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetPipelineStepCollection($queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiPipelineStepsProbesGetSubresourcePipelineStepSubresource($id, $queryParameters, $accept), $fetch); } /** @@ -2528,16 +2693,17 @@ public function deletePipelinePipelineItem(string $id, string $fetch = self::FET /** * Retrieves a Pipeline resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\PipelineRead|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\PipelineJsonldRead|\Gyroscops\Api\Model\PipelineRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\GetPipelineItemNotFoundException */ - public function getPipelineItem(string $id, string $fetch = self::FETCH_OBJECT) + public function getPipelineItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetPipelineItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetPipelineItem($id, $accept), $fetch); } /** @@ -2546,34 +2712,17 @@ public function getPipelineItem(string $id, string $fetch = self::FETCH_OBJECT) * @param string $id Resource identifier * @param \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandInputJsonld|\Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandInput|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandJsonldRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\AddComposerAuthPipelinePipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\AddComposerAuthPipelinePipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AddComposerAuthPipelinePipelineItemNotFoundException */ - public function addComposerAuthPipelinePipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function addComposerAuthPipelinePipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\AddComposerAuthPipelinePipelineItem($id, $requestBody), $fetch); - } - - /** - * Adds PSR4 autoload composer to a pipeline. - * - * @param string $id Resource identifier - * @param \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonld|\Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandInput|null $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * - * @return \Psr\Http\Message\ResponseInterface|null - * - * @throws \Gyroscops\Api\Exception\AddComposerAutoloadPipelinePipelineItemBadRequestException - * @throws \Gyroscops\Api\Exception\AddComposerAutoloadPipelinePipelineItemUnprocessableEntityException - * @throws \Gyroscops\Api\Exception\AddComposerAutoloadPipelinePipelineItemNotFoundException - */ - public function addComposerAutoloadPipelinePipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) - { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\AddComposerAutoloadPipelinePipelineItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\AddComposerAuthPipelinePipelineItem($id, $requestBody, $accept), $fetch); } /** @@ -2582,16 +2731,17 @@ public function addComposerAutoloadPipelinePipelineItem(string $id, $requestBody * @param string $id Resource identifier * @param \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandInputJsonld|\Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandInput|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandJsonldRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\AddComposerPackagePipelinePipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\AddComposerPackagePipelinePipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AddComposerPackagePipelinePipelineItemNotFoundException */ - public function addComposerPackagePipelinePipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function addComposerPackagePipelinePipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\AddComposerPackagePipelinePipelineItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\AddComposerPackagePipelinePipelineItem($id, $requestBody, $accept), $fetch); } /** @@ -2600,16 +2750,36 @@ public function addComposerPackagePipelinePipelineItem(string $id, $requestBody * @param string $id Resource identifier * @param \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandInputJsonld|\Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandInput|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandJsonldRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\AddComposerRepositoryPipelinePipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\AddComposerRepositoryPipelinePipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AddComposerRepositoryPipelinePipelineItemNotFoundException */ - public function addComposerRepositoryPipelinePipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function addComposerRepositoryPipelinePipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\AddComposerRepositoryPipelinePipelineItem($id, $requestBody, $accept), $fetch); + } + + /** + * Adds PSR4 autoload composer to a pipeline. + * + * @param string $id Resource identifier + * @param \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonld|\Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandInput|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html + * + * @return \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandJsonldRead|\Psr\Http\Message\ResponseInterface|null + * + * @throws \Gyroscops\Api\Exception\AddComposerAutoloadPipelinePipelineItemBadRequestException + * @throws \Gyroscops\Api\Exception\AddComposerAutoloadPipelinePipelineItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\AddComposerAutoloadPipelinePipelineItemNotFoundException + */ + public function addComposerAutoloadPipelinePipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\AddComposerRepositoryPipelinePipelineItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\AddComposerAutoloadPipelinePipelineItem($id, $requestBody, $accept), $fetch); } /** @@ -2621,13 +2791,14 @@ public function addComposerRepositoryPipelinePipelineItem(string $id, $requestBo * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Compilation[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\RuntimePipelinesIdCompilationsGetLdjsonResponse200|\Gyroscops\Api\Model\Compilation[]|\Psr\Http\Message\ResponseInterface|null */ - public function apiPipelinesCompilationsGetSubresourcePipelineSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function apiPipelinesCompilationsGetSubresourcePipelineSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiPipelinesCompilationsGetSubresourcePipelineSubresource($id, $queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiPipelinesCompilationsGetSubresourcePipelineSubresource($id, $queryParameters, $accept), $fetch); } /** @@ -2636,42 +2807,45 @@ public function apiPipelinesCompilationsGetSubresourcePipelineSubresource(string * @param string $id Resource identifier * @param \Gyroscops\Api\Model\PipelineCompilePipelineCommandInputJsonld|\stdClass|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\PipelineCompilePipelineCommandJsonldRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\PipelineCompilationPipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\PipelineCompilationPipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\PipelineCompilationPipelineItemNotFoundException */ - public function pipelineCompilationPipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function pipelineCompilationPipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PipelineCompilationPipelineItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PipelineCompilationPipelineItem($id, $requestBody, $accept), $fetch); } /** * Retrieves a Pipeline resource. * - * @param string $id Pipeline identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Pipeline identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Organization|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\OrganizationJsonld|\Gyroscops\Api\Model\Organization|\Psr\Http\Message\ResponseInterface|null */ - public function apiPipelinesOrganizationGetSubresourcePipelineSubresource(string $id, string $fetch = self::FETCH_OBJECT) + public function apiPipelinesOrganizationGetSubresourcePipelineSubresource(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiPipelinesOrganizationGetSubresourcePipelineSubresource($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiPipelinesOrganizationGetSubresourcePipelineSubresource($id, $accept), $fetch); } /** * Retrieves a Pipeline resource. * - * @param string $id Pipeline identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Pipeline identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\User|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\UserJsonld|\Gyroscops\Api\Model\User|\Psr\Http\Message\ResponseInterface|null */ - public function apiPipelinesOwnerGetSubresourcePipelineSubresource(string $id, string $fetch = self::FETCH_OBJECT) + public function apiPipelinesOwnerGetSubresourcePipelineSubresource(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiPipelinesOwnerGetSubresourcePipelineSubresource($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiPipelinesOwnerGetSubresourcePipelineSubresource($id, $accept), $fetch); } /** @@ -2680,16 +2854,55 @@ public function apiPipelinesOwnerGetSubresourcePipelineSubresource(string $id, s * @param string $id Resource identifier * @param \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandInputJsonld|\Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandInput|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandJsonldRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\RemoveComposerAuthPipelinePipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\RemoveComposerAuthPipelinePipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\RemoveComposerAuthPipelinePipelineItemNotFoundException */ - public function removeComposerAuthPipelinePipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function removeComposerAuthPipelinePipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\RemoveComposerAuthPipelinePipelineItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\RemoveComposerAuthPipelinePipelineItem($id, $requestBody, $accept), $fetch); + } + + /** + * Removes a composer package from a pipeline. + * + * @param string $id Resource identifier + * @param \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandInputJsonld|\Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandInput|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html + * + * @return \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandJsonldRead|\Psr\Http\Message\ResponseInterface|null + * + * @throws \Gyroscops\Api\Exception\RemoveComposerPackagePipelinePipelineItemBadRequestException + * @throws \Gyroscops\Api\Exception\RemoveComposerPackagePipelinePipelineItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\RemoveComposerPackagePipelinePipelineItemNotFoundException + */ + public function removeComposerPackagePipelinePipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\RemoveComposerPackagePipelinePipelineItem($id, $requestBody, $accept), $fetch); + } + + /** + * Adds a repository from a pipeline. + * + * @param string $id Resource identifier + * @param \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandInputJsonld|\Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandInput|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html + * + * @return \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandJsonldRead|\Psr\Http\Message\ResponseInterface|null + * + * @throws \Gyroscops\Api\Exception\RemoveComposerRepositoryPipelinePipelineItemBadRequestException + * @throws \Gyroscops\Api\Exception\RemoveComposerRepositoryPipelinePipelineItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\RemoveComposerRepositoryPipelinePipelineItemNotFoundException + */ + public function removeComposerRepositoryPipelinePipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\RemoveComposerRepositoryPipelinePipelineItem($id, $requestBody, $accept), $fetch); } /** @@ -2698,52 +2911,93 @@ public function removeComposerAuthPipelinePipelineItem(string $id, $requestBody * @param string $id Resource identifier * @param \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonld|\Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandInput|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\RemoveComposerAutoloadPipelinePipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\RemoveComposerAutoloadPipelinePipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\RemoveComposerAutoloadPipelinePipelineItemNotFoundException */ - public function removeComposerAutoloadPipelinePipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function removeComposerAutoloadPipelinePipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\RemoveComposerAutoloadPipelinePipelineItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\RemoveComposerAutoloadPipelinePipelineItem($id, $requestBody, $accept), $fetch); } /** - * Removes a composer package from a pipeline. + * Schedule a pipeline for immediate execution. * - * @param string $id Resource identifier - * @param \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandInputJsonld|\Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandInput|null $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param \Gyroscops\Api\Model\PipelineDeclarePipelineScheduleImmediateCommandInputJsonld|\Gyroscops\Api\Model\PipelineDeclarePipelineScheduleImmediateCommandInput|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\PipelineDeclarePipelineScheduleImmediateCommandJsonldRead|\Psr\Http\Message\ResponseInterface|null * - * @throws \Gyroscops\Api\Exception\RemoveComposerPackagePipelinePipelineItemBadRequestException - * @throws \Gyroscops\Api\Exception\RemoveComposerPackagePipelinePipelineItemUnprocessableEntityException - * @throws \Gyroscops\Api\Exception\RemoveComposerPackagePipelinePipelineItemNotFoundException + * @throws \Gyroscops\Api\Exception\PipelineScheduleImmediatePipelineItemBadRequestException + * @throws \Gyroscops\Api\Exception\PipelineScheduleImmediatePipelineItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\PipelineScheduleImmediatePipelineItemNotFoundException */ - public function removeComposerPackagePipelinePipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function pipelineScheduleImmediatePipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\RemoveComposerPackagePipelinePipelineItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PipelineScheduleImmediatePipelineItem($id, $requestBody, $accept), $fetch); } /** - * Adds a repository from a pipeline. + * Schedule a pipeline to a specific date. * - * @param string $id Resource identifier - * @param \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandInputJsonld|\Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandInput|null $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param \Gyroscops\Api\Model\PipelineDeclarePipelineScheduleOnceCommandInputJsonld|\Gyroscops\Api\Model\PipelineDeclarePipelineScheduleOnceCommandInput|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\PipelineDeclarePipelineScheduleOnceCommandJsonldRead|\Psr\Http\Message\ResponseInterface|null * - * @throws \Gyroscops\Api\Exception\RemoveComposerRepositoryPipelinePipelineItemBadRequestException - * @throws \Gyroscops\Api\Exception\RemoveComposerRepositoryPipelinePipelineItemUnprocessableEntityException - * @throws \Gyroscops\Api\Exception\RemoveComposerRepositoryPipelinePipelineItemNotFoundException + * @throws \Gyroscops\Api\Exception\PipelineScheduleOncePipelineItemBadRequestException + * @throws \Gyroscops\Api\Exception\PipelineScheduleOncePipelineItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\PipelineScheduleOncePipelineItemNotFoundException + */ + public function pipelineScheduleOncePipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PipelineScheduleOncePipelineItem($id, $requestBody, $accept), $fetch); + } + + /** + * Retrieves a Pipeline resource. + * + * @param string $id Pipeline identifier + * @param array $queryParameters { + * + * @var int $page The collection page number + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html + * + * @return \Gyroscops\Api\Model\RuntimePipelinesIdSchedulesGetLdjsonResponse200|\Psr\Http\Message\ResponseInterface|null */ - public function removeComposerRepositoryPipelinePipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function apiPipelinesSchedulesGetSubresourcePipelineSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\RemoveComposerRepositoryPipelinePipelineItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiPipelinesSchedulesGetSubresourcePipelineSubresource($id, $queryParameters, $accept), $fetch); + } + + /** + * Retrieves a Pipeline resource. + * + * @param string $id Pipeline identifier + * @param array $queryParameters { + * + * @var int $page The collection page number + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html + * + * @return \Gyroscops\Api\Model\RuntimePipelinesIdStepsGetLdjsonResponse200|\Gyroscops\Api\Model\PipelineStep[]|\Psr\Http\Message\ResponseInterface|null + */ + public function apiPipelinesStepsGetSubresourcePipelineSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiPipelinesStepsGetSubresourcePipelineSubresource($id, $queryParameters, $accept), $fetch); } /** @@ -2752,16 +3006,36 @@ public function removeComposerRepositoryPipelinePipelineItem(string $id, $reques * @param string $id Resource identifier * @param \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandInputJsonld|\Gyroscops\Api\Model\PipelineAppendPipelineStepCommandInput|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandJsonldRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\AppendPipelineStepPipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\AppendPipelineStepPipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AppendPipelineStepPipelineItemNotFoundException */ - public function appendPipelineStepPipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function appendPipelineStepPipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\AppendPipelineStepPipelineItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\AppendPipelineStepPipelineItem($id, $requestBody, $accept), $fetch); + } + + /** + * Reorganizes the steps of a pipeline according to a given order. + * + * @param string $id Resource identifier + * @param \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandInputJsonld|\Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandInput|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html + * + * @return \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandJsonldRead|\Psr\Http\Message\ResponseInterface|null + * + * @throws \Gyroscops\Api\Exception\ReorderPipelineStepsPipelineItemBadRequestException + * @throws \Gyroscops\Api\Exception\ReorderPipelineStepsPipelineItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\ReorderPipelineStepsPipelineItemNotFoundException + */ + public function reorderPipelineStepsPipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) + { + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ReorderPipelineStepsPipelineItem($id, $requestBody, $accept), $fetch); } /** @@ -2786,16 +3060,17 @@ public function deletePipelineStepPipelineItem(string $code, string $id, string * @param string $id Resource identifier * @param \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandInputJsonld|\Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandInput|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandJsonldRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\AddAfterPipelineStepPipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\AddAfterPipelineStepPipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AddAfterPipelineStepPipelineItemNotFoundException */ - public function addAfterPipelineStepPipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function addAfterPipelineStepPipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\AddAfterPipelineStepPipelineItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\AddAfterPipelineStepPipelineItem($id, $requestBody, $accept), $fetch); } /** @@ -2804,16 +3079,17 @@ public function addAfterPipelineStepPipelineItem(string $id, $requestBody = null * @param string $id Resource identifier * @param \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandInputJsonld|\Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandInput|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandJsonldRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\AddBeforePipelineStepPipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\AddBeforePipelineStepPipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AddBeforePipelineStepPipelineItemNotFoundException */ - public function addBeforePipelineStepPipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function addBeforePipelineStepPipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\AddBeforePipelineStepPipelineItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\AddBeforePipelineStepPipelineItem($id, $requestBody, $accept), $fetch); } /** @@ -2822,16 +3098,17 @@ public function addBeforePipelineStepPipelineItem(string $id, $requestBody = nul * @param string $id Resource identifier * @param \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandInputJsonld|\Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandInput|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandJsonldRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\MoveAfterPipelineStepPipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\MoveAfterPipelineStepPipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\MoveAfterPipelineStepPipelineItemNotFoundException */ - public function moveAfterPipelineStepPipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function moveAfterPipelineStepPipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\MoveAfterPipelineStepPipelineItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\MoveAfterPipelineStepPipelineItem($id, $requestBody, $accept), $fetch); } /** @@ -2840,34 +3117,36 @@ public function moveAfterPipelineStepPipelineItem(string $id, $requestBody = nul * @param string $id Resource identifier * @param \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandInputJsonld|\Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandInput|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandJsonldRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\MoveBeforePipelineStepPipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\MoveBeforePipelineStepPipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\MoveBeforePipelineStepPipelineItemNotFoundException */ - public function moveBeforePipelineStepPipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function moveBeforePipelineStepPipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\MoveBeforePipelineStepPipelineItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\MoveBeforePipelineStepPipelineItem($id, $requestBody, $accept), $fetch); } /** * Adds a probe to a step. * - * @param string $id Resource identifier - * @param \Gyroscops\Api\Model\PipelineAddPipelineStepProbCommandInputJsonld|\Gyroscops\Api\Model\PipelineAddPipelineStepProbCommandInput|null $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param \Gyroscops\Api\Model\PipelineAddPipelineStepProbeCommandInputJsonld|\Gyroscops\Api\Model\PipelineAddPipelineStepProbeCommandInput|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\PipelineAddPipelineStepProbeCommandJsonldRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\AddPipelineStepProbePipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\AddPipelineStepProbePipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AddPipelineStepProbePipelineItemNotFoundException */ - public function addPipelineStepProbePipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function addPipelineStepProbePipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\AddPipelineStepProbePipelineItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\AddPipelineStepProbePipelineItem($id, $requestBody, $accept), $fetch); } /** @@ -2893,119 +3172,65 @@ public function removePipelineStepProbePipelineItem(string $code, string $probeC * @param string $id Resource identifier * @param \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandInputJsonld|\Gyroscops\Api\Model\PipelineReplacePipelineStepCommandInput|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandJsonldRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\ReplacePipelineStepPipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\ReplacePipelineStepPipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\ReplacePipelineStepPipelineItemNotFoundException */ - public function replacePipelineStepPipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function replacePipelineStepPipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ReplacePipelineStepPipelineItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ReplacePipelineStepPipelineItem($id, $requestBody, $accept), $fetch); } /** * Retrieves a Pipeline resource. * - * @param string $id Pipeline identifier - * @param array $queryParameters { + * @param string $id Pipeline identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @var int $page The collection page number - * } - * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * - * @return \Gyroscops\Api\Model\PipelineStep[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\WorkspaceJsonld|\Gyroscops\Api\Model\Workspace|\Psr\Http\Message\ResponseInterface|null */ - public function apiPipelinesStepsGetSubresourcePipelineSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function apiPipelinesWorkspaceGetSubresourcePipelineSubresource(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiPipelinesStepsGetSubresourcePipelineSubresource($id, $queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiPipelinesWorkspaceGetSubresourcePipelineSubresource($id, $accept), $fetch); } /** - * Reorganizes the steps of a pipeline according to a given order. - * - * @param string $id Resource identifier - * @param \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandInputJsonld|\Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandInput|null $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * - * @return \Psr\Http\Message\ResponseInterface|null - * - * @throws \Gyroscops\Api\Exception\ReorderPipelineStepsPipelineItemBadRequestException - * @throws \Gyroscops\Api\Exception\ReorderPipelineStepsPipelineItemUnprocessableEntityException - * @throws \Gyroscops\Api\Exception\ReorderPipelineStepsPipelineItemNotFoundException - */ - public function reorderPipelineStepsPipelineItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) - { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ReorderPipelineStepsPipelineItem($id, $requestBody), $fetch); - } - - /** - * Retrieves a Pipeline resource. - * - * @param string $id Pipeline identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * - * @return \Gyroscops\Api\Model\Workspace|\Psr\Http\Message\ResponseInterface|null - */ - public function apiPipelinesWorkspaceGetSubresourcePipelineSubresource(string $id, string $fetch = self::FETCH_OBJECT) - { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiPipelinesWorkspaceGetSubresourcePipelineSubresource($id), $fetch); - } - - /** - * Retrieves the collection of Pipeline resources. + * Retrieves the collection of Schedule resources. * * @param array $queryParameters { * * @var int $page The collection page number - * @var string $code - * @var array $code[] * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\PipelineRead[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\RuntimeSchedulesGetLdjsonResponse200|\Psr\Http\Message\ResponseInterface|null */ - public function getPipelineCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getScheduleCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetPipelineCollection($queryParameters), $fetch); - } - - /** - * In order to differentiate the different types of schedules, we have set up a field named "type" : - * 1 => Immediate - * 2 => Once - * 3 => Times - * 4 => Until. - * - * @param \Gyroscops\Api\Model\ScheduleDeclarePipelineScheduleCommandInputJsonld|\Gyroscops\Api\Model\ScheduleDeclarePipelineScheduleCommandInput|null $requestBody - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * - * @return \Psr\Http\Message\ResponseInterface|null - * - * @throws \Gyroscops\Api\Exception\PostScheduleCollectionBadRequestException - * @throws \Gyroscops\Api\Exception\PostScheduleCollectionUnprocessableEntityException - */ - public function postScheduleCollection($requestBody = null, string $fetch = self::FETCH_OBJECT) - { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\PostScheduleCollection($requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetScheduleCollection($queryParameters, $accept), $fetch); } /** * Retrieves a Schedule resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Schedule|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\ScheduleJsonld|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\GetScheduleItemNotFoundException */ - public function getScheduleItem(string $id, string $fetch = self::FETCH_OBJECT) + public function getScheduleItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetScheduleItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetScheduleItem($id, $accept), $fetch); } /** @@ -3017,251 +3242,207 @@ public function getScheduleItem(string $id, string $fetch = self::FETCH_OBJECT) * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\ExecutionRead[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\RuntimeSchedulesIdExecutionsGetLdjsonResponse200|\Gyroscops\Api\Model\ExecutionRead[]|\Psr\Http\Message\ResponseInterface|null */ - public function apiSchedulesExecutionsGetSubresourceScheduleSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function apiSchedulesExecutionsGetSubresourceScheduleSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiSchedulesExecutionsGetSubresourceScheduleSubresource($id, $queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiSchedulesExecutionsGetSubresourceScheduleSubresource($id, $queryParameters, $accept), $fetch); } /** - * Retrieves a Schedule resource. + * Retrieves the collection of Workflow resources. * - * @param string $id Schedule identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $queryParameters { * - * @return \Gyroscops\Api\Model\Organization|\Psr\Http\Message\ResponseInterface|null - */ - public function apiSchedulesOrganizationGetSubresourceScheduleSubresource(string $id, string $fetch = self::FETCH_OBJECT) - { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiSchedulesOrganizationGetSubresourceScheduleSubresource($id), $fetch); - } - - /** - * Retrieves a Schedule resource. + * @var int $page The collection page number + * } * - * @param string $id Schedule identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\User|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\RuntimeWorkflowsGetLdjsonResponse200|\Gyroscops\Api\Model\WorkflowRead[]|\Psr\Http\Message\ResponseInterface|null */ - public function apiSchedulesOwnerGetSubresourceScheduleSubresource(string $id, string $fetch = self::FETCH_OBJECT) + public function getWorkflowCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiSchedulesOwnerGetSubresourceScheduleSubresource($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetWorkflowCollection($queryParameters, $accept), $fetch); } /** - * Retrieves a Schedule resource. + * Declares a workflow. * - * @param string $id Schedule identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param \Gyroscops\Api\Model\WorkflowDeclareWorkflowCommandInputJsonld|\Gyroscops\Api\Model\WorkflowDeclareWorkflowCommandInput|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html + * + * @return \Gyroscops\Api\Model\WorkflowDeclareWorkflowCommandJsonldRead|\Psr\Http\Message\ResponseInterface|null * - * @return \Gyroscops\Api\Model\PipelineRead|\Psr\Http\Message\ResponseInterface|null + * @throws \Gyroscops\Api\Exception\DeclareWorkflowWorkflowCollectionBadRequestException + * @throws \Gyroscops\Api\Exception\DeclareWorkflowWorkflowCollectionUnprocessableEntityException */ - public function apiSchedulesPipelineGetSubresourceScheduleSubresource(string $id, string $fetch = self::FETCH_OBJECT) + public function declareWorkflowWorkflowCollection($requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiSchedulesPipelineGetSubresourceScheduleSubresource($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\DeclareWorkflowWorkflowCollection($requestBody, $accept), $fetch); } /** - * Retrieves a Schedule resource. + * Retrieves a WorkflowJob resource. * - * @param string $id Schedule identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html + * + * @return \Gyroscops\Api\Model\WorkflowJobJsonldRead|\Gyroscops\Api\Model\WorkflowJobRead|\Psr\Http\Message\ResponseInterface|null * - * @return \Gyroscops\Api\Model\WorkflowRead|\Psr\Http\Message\ResponseInterface|null + * @throws \Gyroscops\Api\Exception\GetWorkflowJobItemNotFoundException */ - public function apiSchedulesWorkflowGetSubresourceScheduleSubresource(string $id, string $fetch = self::FETCH_OBJECT) + public function getWorkflowJobItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiSchedulesWorkflowGetSubresourceScheduleSubresource($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetWorkflowJobItem($id, $accept), $fetch); } /** - * Retrieves a Schedule resource. + * Retrieves the collection of WorkflowJobPipeline resources. * - * @param string $id Schedule identifier - * @param string $workflow Workflow identifier - * @param array $queryParameters { + * @param array $queryParameters { * * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\WorkflowJobRead[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\RuntimeWorkflowsPipelinesGetLdjsonResponse200|\Gyroscops\Api\Model\WorkflowJobPipeline[]|\Psr\Http\Message\ResponseInterface|null */ - public function apiSchedulesWorkflowJobsGetSubresourceScheduleSubresource(string $id, string $workflow, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function getWorkflowJobPipelineCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiSchedulesWorkflowJobsGetSubresourceScheduleSubresource($id, $workflow, $queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetWorkflowJobPipelineCollection($queryParameters, $accept), $fetch); } /** - * Retrieves a Schedule resource. + * Retrieves a WorkflowJobPipeline resource. * - * @param string $id Schedule identifier - * @param string $workflow Workflow identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Organization|\Psr\Http\Message\ResponseInterface|null - */ - public function apiSchedulesWorkflowOrganizationGetSubresourceScheduleSubresource(string $id, string $workflow, string $fetch = self::FETCH_OBJECT) - { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiSchedulesWorkflowOrganizationGetSubresourceScheduleSubresource($id, $workflow), $fetch); - } - - /** - * Retrieves a Schedule resource. + * @return \Gyroscops\Api\Model\WorkflowJobPipelineJsonld|\Gyroscops\Api\Model\WorkflowJobPipeline|\Psr\Http\Message\ResponseInterface|null * - * @param string $id Schedule identifier - * @param string $workflow Workflow identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * - * @return \Gyroscops\Api\Model\User|\Psr\Http\Message\ResponseInterface|null + * @throws \Gyroscops\Api\Exception\GetWorkflowJobPipelineItemNotFoundException */ - public function apiSchedulesWorkflowOwnerGetSubresourceScheduleSubresource(string $id, string $workflow, string $fetch = self::FETCH_OBJECT) + public function getWorkflowJobPipelineItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiSchedulesWorkflowOwnerGetSubresourceScheduleSubresource($id, $workflow), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetWorkflowJobPipelineItem($id, $accept), $fetch); } /** - * Retrieves a Schedule resource. + * Retrieves a WorkflowJobAction resource. * - * @param string $id Schedule identifier - * @param string $workflow Workflow identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Workspace|\Psr\Http\Message\ResponseInterface|null - */ - public function apiSchedulesWorkflowWorkspaceGetSubresourceScheduleSubresource(string $id, string $workflow, string $fetch = self::FETCH_OBJECT) - { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiSchedulesWorkflowWorkspaceGetSubresourceScheduleSubresource($id, $workflow), $fetch); - } - - /** - * Retrieves a Schedule resource. + * @return \Gyroscops\Api\Model\WorkflowJobActionJsonld|\Gyroscops\Api\Model\WorkflowJobAction|\Psr\Http\Message\ResponseInterface|null * - * @param string $id Schedule identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * - * @return \Gyroscops\Api\Model\Workspace|\Psr\Http\Message\ResponseInterface|null + * @throws \Gyroscops\Api\Exception\GetWorkflowJobActionItemNotFoundException */ - public function apiSchedulesWorkspaceGetSubresourceScheduleSubresource(string $id, string $fetch = self::FETCH_OBJECT) + public function getWorkflowJobActionItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiSchedulesWorkspaceGetSubresourceScheduleSubresource($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetWorkflowJobActionItem($id, $accept), $fetch); } /** - * Retrieves the collection of Schedule resources. + * Retrieves a WorkflowJobPipeline resource. * - * @param array $queryParameters { + * @param string $id WorkflowJobPipeline identifier + * @param array $queryParameters { * * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * - * @return \Gyroscops\Api\Model\Schedule[]|\Psr\Http\Message\ResponseInterface|null - */ - public function getScheduleCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) - { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetScheduleCollection($queryParameters), $fetch); - } - - /** - * Retrieves a WorkflowJobAction resource. + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * - * @return \Gyroscops\Api\Model\WorkflowJobAction|\Psr\Http\Message\ResponseInterface|null - * - * @throws \Gyroscops\Api\Exception\GetWorkflowJobActionItemNotFoundException + * @return \Gyroscops\Api\Model\RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200|\Gyroscops\Api\Model\PipelineStep[]|\Psr\Http\Message\ResponseInterface|null */ - public function getWorkflowJobActionItem(string $id, string $fetch = self::FETCH_OBJECT) + public function apiWorkflowJobPipelinesStepsGetSubresourceWorkflowJobPipelineSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetWorkflowJobActionItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiWorkflowJobPipelinesStepsGetSubresourceWorkflowJobPipelineSubresource($id, $queryParameters, $accept), $fetch); } /** - * Retrieves a WorkflowJob resource. - * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) - * - * @return \Gyroscops\Api\Model\WorkflowJobRead|\Psr\Http\Message\ResponseInterface|null - * - * @throws \Gyroscops\Api\Exception\GetWorkflowJobItemNotFoundException - */ - public function getWorkflowJobItem(string $id, string $fetch = self::FETCH_OBJECT) - { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetWorkflowJobItem($id), $fetch); - } - - /** - * Retrieves a WorkflowJobPipeline resource. + * Retrieves a Workflow resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\WorkflowJobPipeline|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\WorkflowJsonldRead|\Gyroscops\Api\Model\WorkflowRead|\Psr\Http\Message\ResponseInterface|null * - * @throws \Gyroscops\Api\Exception\GetWorkflowJobPipelineItemNotFoundException + * @throws \Gyroscops\Api\Exception\GetWorkflowItemNotFoundException */ - public function getWorkflowJobPipelineItem(string $id, string $fetch = self::FETCH_OBJECT) + public function getWorkflowItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetWorkflowJobPipelineItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetWorkflowItem($id, $accept), $fetch); } /** - * Retrieves the collection of WorkflowJobPipeline resources. + * Retrieves a Workflow resource. * - * @param array $queryParameters { + * @param string $id Workflow identifier + * @param array $queryParameters { * * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\WorkflowJobPipeline[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\RuntimeWorkflowsIdCompilationsGetLdjsonResponse200|\Gyroscops\Api\Model\Compilation[]|\Psr\Http\Message\ResponseInterface|null */ - public function getWorkflowJobPipelineCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function apiWorkflowsCompilationsGetSubresourceWorkflowSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetWorkflowJobPipelineCollection($queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiWorkflowsCompilationsGetSubresourceWorkflowSubresource($id, $queryParameters, $accept), $fetch); } /** - * Retrieves a WorkflowJobPipeline resource. + * Launches a workflow compilation. * - * @param string $id WorkflowJobPipeline identifier - * @param array $queryParameters { - * - * @var int $page The collection page number - * } + * @param string $id Resource identifier + * @param \Gyroscops\Api\Model\WorkflowCompileWorkflowCommandInputJsonld|\stdClass|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @return \Gyroscops\Api\Model\WorkflowCompileWorkflowCommandJsonldRead|\Psr\Http\Message\ResponseInterface|null * - * @return \Gyroscops\Api\Model\PipelineStep[]|\Psr\Http\Message\ResponseInterface|null + * @throws \Gyroscops\Api\Exception\WorkflowCompilationWorkflowItemBadRequestException + * @throws \Gyroscops\Api\Exception\WorkflowCompilationWorkflowItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\WorkflowCompilationWorkflowItemNotFoundException */ - public function apiWorkflowJobPipelinesStepsGetSubresourceWorkflowJobPipelineSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function workflowCompilationWorkflowItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiWorkflowJobPipelinesStepsGetSubresourceWorkflowJobPipelineSubresource($id, $queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\WorkflowCompilationWorkflowItem($id, $requestBody, $accept), $fetch); } /** - * Retrieves a Workflow resource. + * Replaces the Workflow resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param \Gyroscops\Api\Model\WorkflowRemoveWorkflowCommandInputJsonld|\stdClass|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\WorkflowRead|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\WorkflowRemoveWorkflowCommandJsonldRead|\Psr\Http\Message\ResponseInterface|null * - * @throws \Gyroscops\Api\Exception\GetWorkflowItemNotFoundException + * @throws \Gyroscops\Api\Exception\SoftDeleteWorkflowItemBadRequestException + * @throws \Gyroscops\Api\Exception\SoftDeleteWorkflowItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\SoftDeleteWorkflowItemNotFoundException */ - public function getWorkflowItem(string $id, string $fetch = self::FETCH_OBJECT) + public function softDeleteWorkflowItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetWorkflowItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\SoftDeleteWorkflowItem($id, $requestBody, $accept), $fetch); } /** @@ -3273,69 +3454,71 @@ public function getWorkflowItem(string $id, string $fetch = self::FETCH_OBJECT) * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\WorkflowJobRead[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\RuntimeWorkflowsIdJobsGetLdjsonResponse200|\Gyroscops\Api\Model\WorkflowJobRead[]|\Psr\Http\Message\ResponseInterface|null */ - public function apiWorkflowsJobsGetSubresourceWorkflowSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function apiWorkflowsJobsGetSubresourceWorkflowSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiWorkflowsJobsGetSubresourceWorkflowSubresource($id, $queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiWorkflowsJobsGetSubresourceWorkflowSubresource($id, $queryParameters, $accept), $fetch); } /** - * Retrieves a Workflow resource. + * Schedule a crontab for a workflow. * - * @param string $id Workflow identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param \Gyroscops\Api\Model\WorkflowDeclareWorkflowScheduleCrontabCommandInputJsonld|\Gyroscops\Api\Model\WorkflowDeclareWorkflowScheduleCrontabCommandInput|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\Organization|\Psr\Http\Message\ResponseInterface|null - */ - public function apiWorkflowsOrganizationGetSubresourceWorkflowSubresource(string $id, string $fetch = self::FETCH_OBJECT) - { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiWorkflowsOrganizationGetSubresourceWorkflowSubresource($id), $fetch); - } - - /** - * Retrieves a Workflow resource. - * - * @param string $id Workflow identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @return \Gyroscops\Api\Model\WorkflowDeclareWorkflowScheduleCrontabCommandJsonldRead|\Psr\Http\Message\ResponseInterface|null * - * @return \Gyroscops\Api\Model\User|\Psr\Http\Message\ResponseInterface|null + * @throws \Gyroscops\Api\Exception\WorkflowScheduleCrontabWorkflowItemBadRequestException + * @throws \Gyroscops\Api\Exception\WorkflowScheduleCrontabWorkflowItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\WorkflowScheduleCrontabWorkflowItemNotFoundException */ - public function apiWorkflowsOwnerGetSubresourceWorkflowSubresource(string $id, string $fetch = self::FETCH_OBJECT) + public function workflowScheduleCrontabWorkflowItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiWorkflowsOwnerGetSubresourceWorkflowSubresource($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\WorkflowScheduleCrontabWorkflowItem($id, $requestBody, $accept), $fetch); } /** - * Retrieves a Workflow resource. + * Schedule a workflow to start immediately. * - * @param string $id Workflow identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param \Gyroscops\Api\Model\WorkflowDeclareWorkflowScheduleImmediateCommandInputJsonld|\Gyroscops\Api\Model\WorkflowDeclareWorkflowScheduleImmediateCommandInput|null $requestBody + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html + * + * @return \Gyroscops\Api\Model\WorkflowDeclareWorkflowScheduleImmediateCommandJsonldRead|\Psr\Http\Message\ResponseInterface|null * - * @return \Gyroscops\Api\Model\Workspace|\Psr\Http\Message\ResponseInterface|null + * @throws \Gyroscops\Api\Exception\WorkflowScheduleImmediateWorkflowItemBadRequestException + * @throws \Gyroscops\Api\Exception\WorkflowScheduleImmediateWorkflowItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\WorkflowScheduleImmediateWorkflowItemNotFoundException */ - public function apiWorkflowsWorkspaceGetSubresourceWorkflowSubresource(string $id, string $fetch = self::FETCH_OBJECT) + public function workflowScheduleImmediateWorkflowItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiWorkflowsWorkspaceGetSubresourceWorkflowSubresource($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\WorkflowScheduleImmediateWorkflowItem($id, $requestBody, $accept), $fetch); } /** - * Retrieves the collection of Workflow resources. + * Retrieves a Workflow resource. * - * @param array $queryParameters { + * @param string $id Workflow identifier + * @param array $queryParameters { * * @var int $page The collection page number * } * - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\WorkflowRead[]|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\RuntimeWorkflowsIdSchedulesGetLdjsonResponse200|\Psr\Http\Message\ResponseInterface|null */ - public function getWorkflowCollection(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function apiWorkflowsSchedulesGetSubresourceWorkflowSubresource(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetWorkflowCollection($queryParameters), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\ApiWorkflowsSchedulesGetSubresourceWorkflowSubresource($id, $queryParameters, $accept), $fetch); } /** @@ -3356,16 +3539,17 @@ public function deleteVariableFromConstantItem(string $id, string $fetch = self: /** * Retrieves a VariableFromConstant resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\VariableFromConstantRead|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\VariableFromConstantJsonldRead|\Gyroscops\Api\Model\VariableFromConstantRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\GetVariableFromConstantItemNotFoundException */ - public function getVariableFromConstantItem(string $id, string $fetch = self::FETCH_OBJECT) + public function getVariableFromConstantItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetVariableFromConstantItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetVariableFromConstantItem($id, $accept), $fetch); } /** @@ -3374,16 +3558,17 @@ public function getVariableFromConstantItem(string $id, string $fetch = self::FE * @param string $id Resource identifier * @param \Gyroscops\Api\Model\VariableFromConstantJsonldWrite|\stdClass|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\VariableFromConstantRead|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\VariableFromConstantJsonldRead|\Gyroscops\Api\Model\VariableFromConstantRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\EditVariableFromConstantItemBadRequestException * @throws \Gyroscops\Api\Exception\EditVariableFromConstantItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\EditVariableFromConstantItemNotFoundException */ - public function editVariableFromConstantItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function editVariableFromConstantItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\EditVariableFromConstantItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\EditVariableFromConstantItem($id, $requestBody, $accept), $fetch); } /** @@ -3404,16 +3589,17 @@ public function deleteVariableFromSecretItem(string $id, string $fetch = self::F /** * Retrieves a VariableFromSecret resource. * - * @param string $id Resource identifier - * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param string $id Resource identifier + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\VariableFromSecretRead|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\VariableFromSecretJsonldRead|\Gyroscops\Api\Model\VariableFromSecretRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\GetVariableFromSecretItemNotFoundException */ - public function getVariableFromSecretItem(string $id, string $fetch = self::FETCH_OBJECT) + public function getVariableFromSecretItem(string $id, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetVariableFromSecretItem($id), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\GetVariableFromSecretItem($id, $accept), $fetch); } /** @@ -3422,16 +3608,17 @@ public function getVariableFromSecretItem(string $id, string $fetch = self::FETC * @param string $id Resource identifier * @param \Gyroscops\Api\Model\VariableFromSecretJsonldWrite|\stdClass|null $requestBody * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * @param array $accept Accept content header application/ld+json|application/json|text/html * - * @return \Gyroscops\Api\Model\VariableFromSecretRead|\Psr\Http\Message\ResponseInterface|null + * @return \Gyroscops\Api\Model\VariableFromSecretJsonldRead|\Gyroscops\Api\Model\VariableFromSecretRead|\Psr\Http\Message\ResponseInterface|null * * @throws \Gyroscops\Api\Exception\EditVariableFromSecretItemBadRequestException * @throws \Gyroscops\Api\Exception\EditVariableFromSecretItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\EditVariableFromSecretItemNotFoundException */ - public function editVariableFromSecretItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function editVariableFromSecretItem(string $id, $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { - return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\EditVariableFromSecretItem($id, $requestBody), $fetch); + return $this->executeEndpoint(new \Gyroscops\Api\Endpoint\EditVariableFromSecretItem($id, $requestBody, $accept), $fetch); } public static function create($httpClient = null, array $additionalPlugins = [], array $additionalNormalizers = []) @@ -3439,7 +3626,7 @@ public static function create($httpClient = null, array $additionalPlugins = [], if (null === $httpClient) { $httpClient = \Http\Discovery\Psr18ClientDiscovery::find(); $plugins = []; - if (\count($additionalPlugins) > 0) { + if (count($additionalPlugins) > 0) { $plugins = array_merge($plugins, $additionalPlugins); } $httpClient = new \Http\Client\Common\PluginClient($httpClient, $plugins); @@ -3447,7 +3634,7 @@ public static function create($httpClient = null, array $additionalPlugins = [], $requestFactory = \Http\Discovery\Psr17FactoryDiscovery::findRequestFactory(); $streamFactory = \Http\Discovery\Psr17FactoryDiscovery::findStreamFactory(); $normalizers = [new \Symfony\Component\Serializer\Normalizer\ArrayDenormalizer(), new \Gyroscops\Api\Normalizer\JaneObjectNormalizer()]; - if (\count($additionalNormalizers) > 0) { + if (count($additionalNormalizers) > 0) { $normalizers = array_merge($normalizers, $additionalNormalizers); } $serializer = new \Symfony\Component\Serializer\Serializer($normalizers, [new \Symfony\Component\Serializer\Encoder\JsonEncoder(new \Symfony\Component\Serializer\Encoder\JsonEncode(), new \Symfony\Component\Serializer\Encoder\JsonDecode(['json_decode_associative' => true]))]); diff --git a/src/Endpoint/AcceptReferralRequestReferralRequestItem.php b/src/Endpoint/AcceptReferralRequestReferralRequestItem.php index 209981ff..0e313cf0 100644 --- a/src/Endpoint/AcceptReferralRequestReferralRequestItem.php +++ b/src/Endpoint/AcceptReferralRequestReferralRequestItem.php @@ -14,17 +14,20 @@ class AcceptReferralRequestReferralRequestItem extends \Gyroscops\Api\Runtime\Cl { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Accepts a referral request. * * @param string $id Resource identifier * @param null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -44,31 +47,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ReferralRequestReferralRequestRead|null + * @return \Gyroscops\Api\Model\ReferralRequestJsonldReferralRequestRead|\Gyroscops\Api\Model\ReferralRequestReferralRequestRead|null * * @throws \Gyroscops\Api\Exception\AcceptReferralRequestReferralRequestItemBadRequestException * @throws \Gyroscops\Api\Exception\AcceptReferralRequestReferralRequestItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AcceptReferralRequestReferralRequestItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\ReferralRequestReferralRequestRead::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ReferralRequestJsonldReferralRequestRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ReferralRequestReferralRequestRead', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\AcceptReferralRequestReferralRequestItemBadRequestException(); + throw new \Gyroscops\Api\Exception\AcceptReferralRequestReferralRequestItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\AcceptReferralRequestReferralRequestItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\AcceptReferralRequestReferralRequestItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\AcceptReferralRequestReferralRequestItemNotFoundException(); + throw new \Gyroscops\Api\Exception\AcceptReferralRequestReferralRequestItemNotFoundException($response); } } diff --git a/src/Endpoint/AddAfterPipelineStepPipelineItem.php b/src/Endpoint/AddAfterPipelineStepPipelineItem.php index 040a4809..470c93e1 100644 --- a/src/Endpoint/AddAfterPipelineStepPipelineItem.php +++ b/src/Endpoint/AddAfterPipelineStepPipelineItem.php @@ -14,17 +14,20 @@ class AddAfterPipelineStepPipelineItem extends \Gyroscops\Api\Runtime\Client\Bas { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Adds a step after another one in a pipeline. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandInputJsonld|\Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -34,13 +37,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/pipeline/{id}/step/{code}/add-after'); + return str_replace(['{id}'], [$this->id], '/runtime/pipelines/{id}/steps/{code}/add-after'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -54,29 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * + * @return \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandJsonldRead|null + * * @throws \Gyroscops\Api\Exception\AddAfterPipelineStepPipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\AddAfterPipelineStepPipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AddAfterPipelineStepPipelineItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineAddAfterPipelineStepCommandJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\AddAfterPipelineStepPipelineItemBadRequestException(); + throw new \Gyroscops\Api\Exception\AddAfterPipelineStepPipelineItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\AddAfterPipelineStepPipelineItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\AddAfterPipelineStepPipelineItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\AddAfterPipelineStepPipelineItemNotFoundException(); + throw new \Gyroscops\Api\Exception\AddAfterPipelineStepPipelineItemNotFoundException($response); } } diff --git a/src/Endpoint/AddBeforePipelineStepPipelineItem.php b/src/Endpoint/AddBeforePipelineStepPipelineItem.php index fb3f7217..abd40b2a 100644 --- a/src/Endpoint/AddBeforePipelineStepPipelineItem.php +++ b/src/Endpoint/AddBeforePipelineStepPipelineItem.php @@ -14,17 +14,20 @@ class AddBeforePipelineStepPipelineItem extends \Gyroscops\Api\Runtime\Client\Ba { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Adds a step before another one in a pipeline. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandInputJsonld|\Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -34,13 +37,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/pipeline/{id}/step/{code}/add-before'); + return str_replace(['{id}'], [$this->id], '/runtime/pipelines/{id}/steps/{code}/add-before'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -54,29 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * + * @return \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandJsonldRead|null + * * @throws \Gyroscops\Api\Exception\AddBeforePipelineStepPipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\AddBeforePipelineStepPipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AddBeforePipelineStepPipelineItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineAddBeforePipelineStepCommandJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\AddBeforePipelineStepPipelineItemBadRequestException(); + throw new \Gyroscops\Api\Exception\AddBeforePipelineStepPipelineItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\AddBeforePipelineStepPipelineItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\AddBeforePipelineStepPipelineItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\AddBeforePipelineStepPipelineItemNotFoundException(); + throw new \Gyroscops\Api\Exception\AddBeforePipelineStepPipelineItemNotFoundException($response); } } diff --git a/src/Endpoint/AddComposerAuthPipelinePipelineItem.php b/src/Endpoint/AddComposerAuthPipelinePipelineItem.php index 4c0d29e2..033848c4 100644 --- a/src/Endpoint/AddComposerAuthPipelinePipelineItem.php +++ b/src/Endpoint/AddComposerAuthPipelinePipelineItem.php @@ -14,17 +14,20 @@ class AddComposerAuthPipelinePipelineItem extends \Gyroscops\Api\Runtime\Client\ { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Adds a composer auth to a pipeline. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandInputJsonld|\Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -34,13 +37,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/pipeline/{id}/add-composer-auth'); + return str_replace(['{id}'], [$this->id], '/runtime/pipelines/{id}/add-composer-auth'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -54,29 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * + * @return \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandJsonldRead|null + * * @throws \Gyroscops\Api\Exception\AddComposerAuthPipelinePipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\AddComposerAuthPipelinePipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AddComposerAuthPipelinePipelineItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerAuthCommandJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\AddComposerAuthPipelinePipelineItemBadRequestException(); + throw new \Gyroscops\Api\Exception\AddComposerAuthPipelinePipelineItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\AddComposerAuthPipelinePipelineItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\AddComposerAuthPipelinePipelineItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\AddComposerAuthPipelinePipelineItemNotFoundException(); + throw new \Gyroscops\Api\Exception\AddComposerAuthPipelinePipelineItemNotFoundException($response); } } diff --git a/src/Endpoint/AddComposerAutoloadPipelinePipelineItem.php b/src/Endpoint/AddComposerAutoloadPipelinePipelineItem.php index 5cbe90a7..dc6ef1da 100644 --- a/src/Endpoint/AddComposerAutoloadPipelinePipelineItem.php +++ b/src/Endpoint/AddComposerAutoloadPipelinePipelineItem.php @@ -14,17 +14,20 @@ class AddComposerAutoloadPipelinePipelineItem extends \Gyroscops\Api\Runtime\Cli { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Adds PSR4 autoload composer to a pipeline. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonld|\Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -34,13 +37,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/pipeline/{id}/add-composer-autoload'); + return str_replace(['{id}'], [$this->id], '/runtime/pipelines/{id}/add-psr4-autoload'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -54,29 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * + * @return \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandJsonldRead|null + * * @throws \Gyroscops\Api\Exception\AddComposerAutoloadPipelinePipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\AddComposerAutoloadPipelinePipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AddComposerAutoloadPipelinePipelineItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerPSR4AutoloadCommandJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\AddComposerAutoloadPipelinePipelineItemBadRequestException(); + throw new \Gyroscops\Api\Exception\AddComposerAutoloadPipelinePipelineItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\AddComposerAutoloadPipelinePipelineItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\AddComposerAutoloadPipelinePipelineItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\AddComposerAutoloadPipelinePipelineItemNotFoundException(); + throw new \Gyroscops\Api\Exception\AddComposerAutoloadPipelinePipelineItemNotFoundException($response); } } diff --git a/src/Endpoint/AddComposerPackagePipelinePipelineItem.php b/src/Endpoint/AddComposerPackagePipelinePipelineItem.php index 1038a788..8d578a02 100644 --- a/src/Endpoint/AddComposerPackagePipelinePipelineItem.php +++ b/src/Endpoint/AddComposerPackagePipelinePipelineItem.php @@ -14,17 +14,20 @@ class AddComposerPackagePipelinePipelineItem extends \Gyroscops\Api\Runtime\Clie { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Adds a composer package to a pipeline. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandInputJsonld|\Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -34,13 +37,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/pipeline/{id}/add-composer-package'); + return str_replace(['{id}'], [$this->id], '/runtime/pipelines/{id}/add-composer-package'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -54,29 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * + * @return \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandJsonldRead|null + * * @throws \Gyroscops\Api\Exception\AddComposerPackagePipelinePipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\AddComposerPackagePipelinePipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AddComposerPackagePipelinePipelineItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerPackageCommandJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\AddComposerPackagePipelinePipelineItemBadRequestException(); + throw new \Gyroscops\Api\Exception\AddComposerPackagePipelinePipelineItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\AddComposerPackagePipelinePipelineItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\AddComposerPackagePipelinePipelineItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\AddComposerPackagePipelinePipelineItemNotFoundException(); + throw new \Gyroscops\Api\Exception\AddComposerPackagePipelinePipelineItemNotFoundException($response); } } diff --git a/src/Endpoint/AddComposerRepositoryPipelinePipelineItem.php b/src/Endpoint/AddComposerRepositoryPipelinePipelineItem.php index 1bcbe98d..ceb38c45 100644 --- a/src/Endpoint/AddComposerRepositoryPipelinePipelineItem.php +++ b/src/Endpoint/AddComposerRepositoryPipelinePipelineItem.php @@ -14,17 +14,20 @@ class AddComposerRepositoryPipelinePipelineItem extends \Gyroscops\Api\Runtime\C { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Adds a composer repository to a pipeline. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandInputJsonld|\Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -34,13 +37,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/pipeline/{id}/add-composer-repository'); + return str_replace(['{id}'], [$this->id], '/runtime/pipelines/{id}/add-composer-repository'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -54,29 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * + * @return \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandJsonldRead|null + * * @throws \Gyroscops\Api\Exception\AddComposerRepositoryPipelinePipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\AddComposerRepositoryPipelinePipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AddComposerRepositoryPipelinePipelineItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerRepositoryCommandJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\AddComposerRepositoryPipelinePipelineItemBadRequestException(); + throw new \Gyroscops\Api\Exception\AddComposerRepositoryPipelinePipelineItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\AddComposerRepositoryPipelinePipelineItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\AddComposerRepositoryPipelinePipelineItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\AddComposerRepositoryPipelinePipelineItemNotFoundException(); + throw new \Gyroscops\Api\Exception\AddComposerRepositoryPipelinePipelineItemNotFoundException($response); } } diff --git a/src/Endpoint/AddPipelineStepProbePipelineItem.php b/src/Endpoint/AddPipelineStepProbePipelineItem.php index e5534bcd..ea6c8e0c 100644 --- a/src/Endpoint/AddPipelineStepProbePipelineItem.php +++ b/src/Endpoint/AddPipelineStepProbePipelineItem.php @@ -14,17 +14,20 @@ class AddPipelineStepProbePipelineItem extends \Gyroscops\Api\Runtime\Client\Bas { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Adds a probe to a step. * - * @param string $id Resource identifier - * @param \Gyroscops\Api\Model\PipelineAddPipelineStepProbCommandInputJsonld|\Gyroscops\Api\Model\PipelineAddPipelineStepProbCommandInput|null $requestBody + * @param string $id Resource identifier + * @param \Gyroscops\Api\Model\PipelineAddPipelineStepProbeCommandInputJsonld|\Gyroscops\Api\Model\PipelineAddPipelineStepProbeCommandInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -34,18 +37,18 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/pipeline/{id}/step/{code}/probe'); + return str_replace(['{id}'], [$this->id], '/runtime/pipelines/{id}/steps/{code}/probe'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { - if ($this->body instanceof \Gyroscops\Api\Model\PipelineAddPipelineStepProbCommandInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + if ($this->body instanceof \Gyroscops\Api\Model\PipelineAddPipelineStepProbeCommandInputJsonld) { + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } - if ($this->body instanceof \Gyroscops\Api\Model\PipelineAddPipelineStepProbCommandInput) { + if ($this->body instanceof \Gyroscops\Api\Model\PipelineAddPipelineStepProbeCommandInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - if ($this->body instanceof \Gyroscops\Api\Model\PipelineAddPipelineStepProbCommandInput) { + if ($this->body instanceof \Gyroscops\Api\Model\PipelineAddPipelineStepProbeCommandInput) { return [['Content-Type' => ['text/html']], $this->body]; } @@ -54,29 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * + * @return \Gyroscops\Api\Model\PipelineAddPipelineStepProbeCommandJsonldRead|null + * * @throws \Gyroscops\Api\Exception\AddPipelineStepProbePipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\AddPipelineStepProbePipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AddPipelineStepProbePipelineItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineAddPipelineStepProbeCommandJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\AddPipelineStepProbePipelineItemBadRequestException(); + throw new \Gyroscops\Api\Exception\AddPipelineStepProbePipelineItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\AddPipelineStepProbePipelineItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\AddPipelineStepProbePipelineItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\AddPipelineStepProbePipelineItemNotFoundException(); + throw new \Gyroscops\Api\Exception\AddPipelineStepProbePipelineItemNotFoundException($response); } } diff --git a/src/Endpoint/AddVariablesFromConfigurationEnvironmentItem.php b/src/Endpoint/AddVariablesFromConfigurationEnvironmentItem.php index a3f223bd..1ddd6005 100644 --- a/src/Endpoint/AddVariablesFromConfigurationEnvironmentItem.php +++ b/src/Endpoint/AddVariablesFromConfigurationEnvironmentItem.php @@ -15,6 +15,7 @@ class AddVariablesFromConfigurationEnvironmentItem extends \Gyroscops\Api\Runtim use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $configuration; protected $id; + protected $accept; /** * Add variables from an existing configuration storage. @@ -22,12 +23,14 @@ class AddVariablesFromConfigurationEnvironmentItem extends \Gyroscops\Api\Runtim * @param string $configuration Configuration identifier * @param string $id Resource identifier * @param \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConfigurationInputJsonld|\Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConfigurationInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $configuration, string $id, $requestBody = null) + public function __construct(string $configuration, string $id, $requestBody = null, array $accept = []) { $this->configuration = $configuration; $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -37,13 +40,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{configuration}', '{id}'], [$this->configuration, $this->id], '/environment/environment/{id}/add-variables-from-configuration/{configuration}'); + return str_replace(['{configuration}', '{id}'], [$this->configuration, $this->id], '/environment/environments/{id}/add-variables-from-configuration/{configuration}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConfigurationInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConfigurationInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -57,31 +60,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\EnvironmentRead|null + * @return \Gyroscops\Api\Model\EnvironmentJsonldRead|\Gyroscops\Api\Model\EnvironmentRead|null * * @throws \Gyroscops\Api\Exception\AddVariablesFromConfigurationEnvironmentItemBadRequestException * @throws \Gyroscops\Api\Exception\AddVariablesFromConfigurationEnvironmentItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AddVariablesFromConfigurationEnvironmentItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\EnvironmentRead::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\EnvironmentJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\EnvironmentRead', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\AddVariablesFromConfigurationEnvironmentItemBadRequestException(); + throw new \Gyroscops\Api\Exception\AddVariablesFromConfigurationEnvironmentItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\AddVariablesFromConfigurationEnvironmentItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\AddVariablesFromConfigurationEnvironmentItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\AddVariablesFromConfigurationEnvironmentItemNotFoundException(); + throw new \Gyroscops\Api\Exception\AddVariablesFromConfigurationEnvironmentItemNotFoundException($response); } } diff --git a/src/Endpoint/AddVariablesFromConstantEnvironmentItem.php b/src/Endpoint/AddVariablesFromConstantEnvironmentItem.php index 5b5e7424..ea489d9c 100644 --- a/src/Endpoint/AddVariablesFromConstantEnvironmentItem.php +++ b/src/Endpoint/AddVariablesFromConstantEnvironmentItem.php @@ -14,17 +14,20 @@ class AddVariablesFromConstantEnvironmentItem extends \Gyroscops\Api\Runtime\Cli { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Add variables with a constant value. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConstantInputJsonld|\Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConstantInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -34,13 +37,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/environment/environment/{id}/add-variables-from-constant'); + return str_replace(['{id}'], [$this->id], '/environment/environments/{id}/add-variables-from-constant'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConstantInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConstantInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -54,31 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\EnvironmentRead|null + * @return \Gyroscops\Api\Model\EnvironmentJsonldRead|\Gyroscops\Api\Model\EnvironmentRead|null * * @throws \Gyroscops\Api\Exception\AddVariablesFromConstantEnvironmentItemBadRequestException * @throws \Gyroscops\Api\Exception\AddVariablesFromConstantEnvironmentItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AddVariablesFromConstantEnvironmentItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\EnvironmentRead::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\EnvironmentJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\EnvironmentRead', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\AddVariablesFromConstantEnvironmentItemBadRequestException(); + throw new \Gyroscops\Api\Exception\AddVariablesFromConstantEnvironmentItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\AddVariablesFromConstantEnvironmentItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\AddVariablesFromConstantEnvironmentItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\AddVariablesFromConstantEnvironmentItemNotFoundException(); + throw new \Gyroscops\Api\Exception\AddVariablesFromConstantEnvironmentItemNotFoundException($response); } } diff --git a/src/Endpoint/AddVariablesFromSecretEnvironmentItem.php b/src/Endpoint/AddVariablesFromSecretEnvironmentItem.php index 8ffcb8a9..79d9d3d5 100644 --- a/src/Endpoint/AddVariablesFromSecretEnvironmentItem.php +++ b/src/Endpoint/AddVariablesFromSecretEnvironmentItem.php @@ -15,6 +15,7 @@ class AddVariablesFromSecretEnvironmentItem extends \Gyroscops\Api\Runtime\Clien use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $secret; protected $id; + protected $accept; /** * Add variables from an existing secret storage. @@ -22,12 +23,14 @@ class AddVariablesFromSecretEnvironmentItem extends \Gyroscops\Api\Runtime\Clien * @param string $secret Secret identifier * @param string $id Resource identifier * @param \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromSecretInputJsonld|\Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromSecretInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $secret, string $id, $requestBody = null) + public function __construct(string $secret, string $id, $requestBody = null, array $accept = []) { $this->secret = $secret; $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -37,13 +40,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{secret}', '{id}'], [$this->secret, $this->id], '/environment/environment/{id}/add-variables-from-secret/{secret}'); + return str_replace(['{secret}', '{id}'], [$this->secret, $this->id], '/environment/environments/{id}/add-variables-from-secret/{secret}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromSecretInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromSecretInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -57,31 +60,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\EnvironmentRead|null + * @return \Gyroscops\Api\Model\EnvironmentJsonldRead|\Gyroscops\Api\Model\EnvironmentRead|null * * @throws \Gyroscops\Api\Exception\AddVariablesFromSecretEnvironmentItemBadRequestException * @throws \Gyroscops\Api\Exception\AddVariablesFromSecretEnvironmentItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AddVariablesFromSecretEnvironmentItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\EnvironmentRead::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\EnvironmentJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\EnvironmentRead', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\AddVariablesFromSecretEnvironmentItemBadRequestException(); + throw new \Gyroscops\Api\Exception\AddVariablesFromSecretEnvironmentItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\AddVariablesFromSecretEnvironmentItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\AddVariablesFromSecretEnvironmentItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\AddVariablesFromSecretEnvironmentItemNotFoundException(); + throw new \Gyroscops\Api\Exception\AddVariablesFromSecretEnvironmentItemNotFoundException($response); } } diff --git a/src/Endpoint/ApiActionsOrganizationGetSubresourceActionSubresource.php b/src/Endpoint/ApiActionsOrganizationGetSubresourceActionSubresource.php index 76afd82c..50bf0df2 100644 --- a/src/Endpoint/ApiActionsOrganizationGetSubresourceActionSubresource.php +++ b/src/Endpoint/ApiActionsOrganizationGetSubresourceActionSubresource.php @@ -14,15 +14,18 @@ class ApiActionsOrganizationGetSubresourceActionSubresource extends \Gyroscops\A { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Action resource. * - * @param string $id Action identifier + * @param string $id Action identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/action/{id}/organization'); + return str_replace(['{id}'], [$this->id], '/runtime/actions/{id}/organization'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,18 +45,29 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Organization|null + * @return \Gyroscops\Api\Model\OrganizationJsonld|\Gyroscops\Api\Model\Organization|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Organization::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\OrganizationJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Organization', 'json'); + } } } diff --git a/src/Endpoint/ApiActionsOwnerGetSubresourceActionSubresource.php b/src/Endpoint/ApiActionsOwnerGetSubresourceActionSubresource.php index 75d9340e..8df17eba 100644 --- a/src/Endpoint/ApiActionsOwnerGetSubresourceActionSubresource.php +++ b/src/Endpoint/ApiActionsOwnerGetSubresourceActionSubresource.php @@ -14,15 +14,18 @@ class ApiActionsOwnerGetSubresourceActionSubresource extends \Gyroscops\Api\Runt { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Action resource. * - * @param string $id Action identifier + * @param string $id Action identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/action/{id}/owner'); + return str_replace(['{id}'], [$this->id], '/runtime/actions/{id}/owner'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,18 +45,29 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\User|null + * @return \Gyroscops\Api\Model\UserJsonld|\Gyroscops\Api\Model\User|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\User::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\UserJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\User', 'json'); + } } } diff --git a/src/Endpoint/ApiActionsWorkspaceGetSubresourceActionSubresource.php b/src/Endpoint/ApiActionsWorkspaceGetSubresourceActionSubresource.php index b349af45..406defa6 100644 --- a/src/Endpoint/ApiActionsWorkspaceGetSubresourceActionSubresource.php +++ b/src/Endpoint/ApiActionsWorkspaceGetSubresourceActionSubresource.php @@ -14,15 +14,18 @@ class ApiActionsWorkspaceGetSubresourceActionSubresource extends \Gyroscops\Api\ { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Action resource. * - * @param string $id Action identifier + * @param string $id Action identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/action/{id}/workspace'); + return str_replace(['{id}'], [$this->id], '/runtime/actions/{id}/workspace'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,18 +45,29 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Workspace|null + * @return \Gyroscops\Api\Model\WorkspaceJsonld|\Gyroscops\Api\Model\Workspace|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Workspace::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkspaceJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Workspace', 'json'); + } } } diff --git a/src/Endpoint/ApiCompilationsOrganizationGetSubresourceCompilationSubresource.php b/src/Endpoint/ApiCompilationsOrganizationGetSubresourceCompilationSubresource.php index 5cede46c..1b6d7fe0 100644 --- a/src/Endpoint/ApiCompilationsOrganizationGetSubresourceCompilationSubresource.php +++ b/src/Endpoint/ApiCompilationsOrganizationGetSubresourceCompilationSubresource.php @@ -14,15 +14,18 @@ class ApiCompilationsOrganizationGetSubresourceCompilationSubresource extends \G { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Compilation resource. * - * @param string $id Compilation identifier + * @param string $id Compilation identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/compilation/{id}/organization'); + return str_replace(['{id}'], [$this->id], '/runtime/compilations/{id}/organization'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,18 +45,29 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Organization|null + * @return \Gyroscops\Api\Model\OrganizationJsonld|\Gyroscops\Api\Model\Organization|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Organization::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\OrganizationJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Organization', 'json'); + } } } diff --git a/src/Endpoint/ApiCompilationsUserGetSubresourceCompilationSubresource.php b/src/Endpoint/ApiCompilationsUserGetSubresourceCompilationSubresource.php index 967c5a64..d2aa5845 100644 --- a/src/Endpoint/ApiCompilationsUserGetSubresourceCompilationSubresource.php +++ b/src/Endpoint/ApiCompilationsUserGetSubresourceCompilationSubresource.php @@ -14,15 +14,18 @@ class ApiCompilationsUserGetSubresourceCompilationSubresource extends \Gyroscops { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Compilation resource. * - * @param string $id Compilation identifier + * @param string $id Compilation identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/compilation/{id}/user'); + return str_replace(['{id}'], [$this->id], '/runtime/compilations/{id}/user'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,18 +45,29 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\User|null + * @return \Gyroscops\Api\Model\UserJsonld|\Gyroscops\Api\Model\User|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\User::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\UserJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\User', 'json'); + } } } diff --git a/src/Endpoint/ApiCompilationsWorkspaceGetSubresourceCompilationSubresource.php b/src/Endpoint/ApiCompilationsWorkspaceGetSubresourceCompilationSubresource.php index 34b17570..47a3c43a 100644 --- a/src/Endpoint/ApiCompilationsWorkspaceGetSubresourceCompilationSubresource.php +++ b/src/Endpoint/ApiCompilationsWorkspaceGetSubresourceCompilationSubresource.php @@ -14,15 +14,18 @@ class ApiCompilationsWorkspaceGetSubresourceCompilationSubresource extends \Gyro { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Compilation resource. * - * @param string $id Compilation identifier + * @param string $id Compilation identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/compilation/{id}/workspace'); + return str_replace(['{id}'], [$this->id], '/runtime/compilations/{id}/workspace'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,18 +45,29 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Workspace|null + * @return \Gyroscops\Api\Model\WorkspaceJsonld|\Gyroscops\Api\Model\Workspace|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Workspace::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkspaceJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Workspace', 'json'); + } } } diff --git a/src/Endpoint/ApiEnvironmentsVariablesGetSubresourceEnvironmentSubresource.php b/src/Endpoint/ApiEnvironmentsVariablesGetSubresourceEnvironmentSubresource.php index f528e546..f0af9bef 100644 --- a/src/Endpoint/ApiEnvironmentsVariablesGetSubresourceEnvironmentSubresource.php +++ b/src/Endpoint/ApiEnvironmentsVariablesGetSubresourceEnvironmentSubresource.php @@ -14,6 +14,7 @@ class ApiEnvironmentsVariablesGetSubresourceEnvironmentSubresource extends \Gyro { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Environment resource. @@ -23,11 +24,14 @@ class ApiEnvironmentsVariablesGetSubresourceEnvironmentSubresource extends \Gyro * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, array $queryParameters = []) + public function __construct(string $id, array $queryParameters = [], array $accept = []) { $this->id = $id; $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -47,7 +51,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -56,7 +64,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -64,12 +72,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\VariableRead[]|null + * @return \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200|\Gyroscops\Api\Model\VariableRead[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\VariableRead[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\VariableRead[]', 'json'); + } } } diff --git a/src/Endpoint/ApiExecutionPipelineJobsStepsGetSubresourceExecutionPipelineJobSubresource.php b/src/Endpoint/ApiExecutionPipelineJobsStepsGetSubresourceExecutionPipelineJobSubresource.php index 699727f4..e5de84f5 100644 --- a/src/Endpoint/ApiExecutionPipelineJobsStepsGetSubresourceExecutionPipelineJobSubresource.php +++ b/src/Endpoint/ApiExecutionPipelineJobsStepsGetSubresourceExecutionPipelineJobSubresource.php @@ -14,6 +14,7 @@ class ApiExecutionPipelineJobsStepsGetSubresourceExecutionPipelineJobSubresource { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a ExecutionPipelineJob resource. @@ -23,11 +24,14 @@ class ApiExecutionPipelineJobsStepsGetSubresourceExecutionPipelineJobSubresource * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, array $queryParameters = []) + public function __construct(string $id, array $queryParameters = [], array $accept = []) { $this->id = $id; $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -37,7 +41,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/execution-pipeline-job/{id}/steps'); + return str_replace(['{id}'], [$this->id], '/runtime/execution-pipeline-jobs/{id}/steps'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -47,7 +51,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -56,7 +64,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -64,12 +72,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ExecutionPipelineStep[]|null + * @return \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200|\Gyroscops\Api\Model\ExecutionPipelineStep[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipelineStep[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipelineStep[]', 'json'); + } } } diff --git a/src/Endpoint/ApiExecutionPipelinesStepsGetSubresourceExecutionPipelineSubresource.php b/src/Endpoint/ApiExecutionPipelinesStepsGetSubresourceExecutionPipelineSubresource.php index f984fb78..724cf8bd 100644 --- a/src/Endpoint/ApiExecutionPipelinesStepsGetSubresourceExecutionPipelineSubresource.php +++ b/src/Endpoint/ApiExecutionPipelinesStepsGetSubresourceExecutionPipelineSubresource.php @@ -14,6 +14,7 @@ class ApiExecutionPipelinesStepsGetSubresourceExecutionPipelineSubresource exten { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a ExecutionPipeline resource. @@ -23,11 +24,14 @@ class ApiExecutionPipelinesStepsGetSubresourceExecutionPipelineSubresource exten * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, array $queryParameters = []) + public function __construct(string $id, array $queryParameters = [], array $accept = []) { $this->id = $id; $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -37,7 +41,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/execution/execution-pipeline/{id}/steps'); + return str_replace(['{id}'], [$this->id], '/runtime/executions/pipelines/{id}/steps'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -47,7 +51,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -56,7 +64,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -64,12 +72,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ExecutionPipelineStep[]|null + * @return \Gyroscops\Api\Model\RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200|\Gyroscops\Api\Model\ExecutionPipelineStep[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipelineStep[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipelineStep[]', 'json'); + } } } diff --git a/src/Endpoint/ApiExecutionWorkflowJobsActionGetSubresourceExecutionWorkflowJobSubresource.php b/src/Endpoint/ApiExecutionWorkflowJobsActionGetSubresourceExecutionWorkflowJobSubresource.php index 3d6e6c32..ec991472 100644 --- a/src/Endpoint/ApiExecutionWorkflowJobsActionGetSubresourceExecutionWorkflowJobSubresource.php +++ b/src/Endpoint/ApiExecutionWorkflowJobsActionGetSubresourceExecutionWorkflowJobSubresource.php @@ -14,15 +14,18 @@ class ApiExecutionWorkflowJobsActionGetSubresourceExecutionWorkflowJobSubresourc { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a ExecutionWorkflowJob resource. * - * @param string $id ExecutionWorkflowJob identifier + * @param string $id ExecutionWorkflowJob identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/execution/workflow/execution-workflow-job/{id}/action'); + return str_replace(['{id}'], [$this->id], '/runtime/executions/workflows/jobs/{id}/action'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,18 +45,29 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ExecutionWorkflowJobAction|null + * @return \Gyroscops\Api\Model\ExecutionWorkflowJobActionJsonld|\Gyroscops\Api\Model\ExecutionWorkflowJobAction|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionWorkflowJobAction::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflowJobActionJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflowJobAction', 'json'); + } } } diff --git a/src/Endpoint/ApiExecutionWorkflowJobsPipelineGetSubresourceExecutionWorkflowJobSubresource.php b/src/Endpoint/ApiExecutionWorkflowJobsPipelineGetSubresourceExecutionWorkflowJobSubresource.php index 110f8ae7..4d751d93 100644 --- a/src/Endpoint/ApiExecutionWorkflowJobsPipelineGetSubresourceExecutionWorkflowJobSubresource.php +++ b/src/Endpoint/ApiExecutionWorkflowJobsPipelineGetSubresourceExecutionWorkflowJobSubresource.php @@ -14,15 +14,18 @@ class ApiExecutionWorkflowJobsPipelineGetSubresourceExecutionWorkflowJobSubresou { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a ExecutionWorkflowJob resource. * - * @param string $id ExecutionWorkflowJob identifier + * @param string $id ExecutionWorkflowJob identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/execution/workflow/execution-workflow-job/{id}/pipeline'); + return str_replace(['{id}'], [$this->id], '/runtime/executions/workflows/jobs/{id}/pipelines'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,18 +45,29 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ExecutionPipelineJob|null + * @return \Gyroscops\Api\Model\ExecutionPipelineJobJsonld|\Gyroscops\Api\Model\ExecutionPipelineJob|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionPipelineJob::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipelineJobJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipelineJob', 'json'); + } } } diff --git a/src/Endpoint/ApiExecutionWorkflowJobsPipelineStepsGetSubresourceExecutionWorkflowJobSubresource.php b/src/Endpoint/ApiExecutionWorkflowJobsPipelineStepsGetSubresourceExecutionWorkflowJobSubresource.php index 71e84f9a..f2fe3c88 100644 --- a/src/Endpoint/ApiExecutionWorkflowJobsPipelineStepsGetSubresourceExecutionWorkflowJobSubresource.php +++ b/src/Endpoint/ApiExecutionWorkflowJobsPipelineStepsGetSubresourceExecutionWorkflowJobSubresource.php @@ -15,6 +15,7 @@ class ApiExecutionWorkflowJobsPipelineStepsGetSubresourceExecutionWorkflowJobSub use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; protected $pipeline; + protected $accept; /** * Retrieves a ExecutionWorkflowJob resource. @@ -25,12 +26,15 @@ class ApiExecutionWorkflowJobsPipelineStepsGetSubresourceExecutionWorkflowJobSub * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, string $pipeline, array $queryParameters = []) + public function __construct(string $id, string $pipeline, array $queryParameters = [], array $accept = []) { $this->id = $id; $this->pipeline = $pipeline; $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -40,7 +44,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}', '{pipeline}'], [$this->id, $this->pipeline], '/runtime/execution/workflow/execution-workflow-job/{id}/pipeline/steps'); + return str_replace(['{id}', '{pipeline}'], [$this->id, $this->pipeline], '/runtime/executions/workflows/jobs/{id}/pipelines/steps'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -50,7 +54,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -59,7 +67,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -67,12 +75,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ExecutionPipelineStep[]|null + * @return \Gyroscops\Api\Model\RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200|\Gyroscops\Api\Model\ExecutionPipelineStep[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipelineStep[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipelineStep[]', 'json'); + } } } diff --git a/src/Endpoint/ApiExecutionWorkflowsJobsActionGetSubresourceExecutionWorkflowSubresource.php b/src/Endpoint/ApiExecutionWorkflowsJobsActionGetSubresourceExecutionWorkflowSubresource.php index 830de47c..2e8734a1 100644 --- a/src/Endpoint/ApiExecutionWorkflowsJobsActionGetSubresourceExecutionWorkflowSubresource.php +++ b/src/Endpoint/ApiExecutionWorkflowsJobsActionGetSubresourceExecutionWorkflowSubresource.php @@ -15,17 +15,20 @@ class ApiExecutionWorkflowsJobsActionGetSubresourceExecutionWorkflowSubresource use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; protected $jobs; + protected $accept; /** * Retrieves a ExecutionWorkflow resource. * - * @param string $id ExecutionWorkflow identifier - * @param string $jobs ExecutionWorkflowJob identifier + * @param string $id ExecutionWorkflow identifier + * @param string $jobs ExecutionWorkflowJob identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, string $jobs) + public function __construct(string $id, string $jobs, array $accept = []) { $this->id = $id; $this->jobs = $jobs; + $this->accept = $accept; } public function getMethod(): string @@ -35,7 +38,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}', '{jobs}'], [$this->id, $this->jobs], '/runtime/execution/execution-workflow/{id}/job/{job}/action'); + return str_replace(['{id}', '{jobs}'], [$this->id, $this->jobs], '/runtime/executions/workflows/{id}/jobs/{job}/action'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -45,18 +48,29 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ExecutionWorkflowJobAction|null + * @return \Gyroscops\Api\Model\ExecutionWorkflowJobActionJsonld|\Gyroscops\Api\Model\ExecutionWorkflowJobAction|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionWorkflowJobAction::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflowJobActionJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflowJobAction', 'json'); + } } } diff --git a/src/Endpoint/ApiExecutionWorkflowsJobsGetSubresourceExecutionWorkflowSubresource.php b/src/Endpoint/ApiExecutionWorkflowsJobsGetSubresourceExecutionWorkflowSubresource.php index 76a6054c..3267034d 100644 --- a/src/Endpoint/ApiExecutionWorkflowsJobsGetSubresourceExecutionWorkflowSubresource.php +++ b/src/Endpoint/ApiExecutionWorkflowsJobsGetSubresourceExecutionWorkflowSubresource.php @@ -14,6 +14,7 @@ class ApiExecutionWorkflowsJobsGetSubresourceExecutionWorkflowSubresource extend { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a ExecutionWorkflow resource. @@ -23,11 +24,14 @@ class ApiExecutionWorkflowsJobsGetSubresourceExecutionWorkflowSubresource extend * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, array $queryParameters = []) + public function __construct(string $id, array $queryParameters = [], array $accept = []) { $this->id = $id; $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -37,7 +41,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/execution/execution-workflow/{id}/jobs'); + return str_replace(['{id}'], [$this->id], '/runtime/executions/workflows/{id}/jobs'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -47,7 +51,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -56,7 +64,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -64,12 +72,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ExecutionWorkflowJob[]|null + * @return \Gyroscops\Api\Model\RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200|\Gyroscops\Api\Model\ExecutionWorkflowJob[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflowJob[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflowJob[]', 'json'); + } } } diff --git a/src/Endpoint/ApiExecutionWorkflowsJobsPipelineGetSubresourceExecutionWorkflowSubresource.php b/src/Endpoint/ApiExecutionWorkflowsJobsPipelineGetSubresourceExecutionWorkflowSubresource.php index 6239650c..893fb66e 100644 --- a/src/Endpoint/ApiExecutionWorkflowsJobsPipelineGetSubresourceExecutionWorkflowSubresource.php +++ b/src/Endpoint/ApiExecutionWorkflowsJobsPipelineGetSubresourceExecutionWorkflowSubresource.php @@ -15,17 +15,20 @@ class ApiExecutionWorkflowsJobsPipelineGetSubresourceExecutionWorkflowSubresourc use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; protected $jobs; + protected $accept; /** * Retrieves a ExecutionWorkflow resource. * - * @param string $id ExecutionWorkflow identifier - * @param string $jobs ExecutionWorkflowJob identifier + * @param string $id ExecutionWorkflow identifier + * @param string $jobs ExecutionWorkflowJob identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, string $jobs) + public function __construct(string $id, string $jobs, array $accept = []) { $this->id = $id; $this->jobs = $jobs; + $this->accept = $accept; } public function getMethod(): string @@ -35,7 +38,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}', '{jobs}'], [$this->id, $this->jobs], '/runtime/execution/execution-workflow/{id}/job/{job}/pipeline'); + return str_replace(['{id}', '{jobs}'], [$this->id, $this->jobs], '/runtime/executions/workflows/{id}/jobs/{job}/pipelines'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -45,18 +48,29 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ExecutionPipelineJob|null + * @return \Gyroscops\Api\Model\ExecutionPipelineJobJsonld|\Gyroscops\Api\Model\ExecutionPipelineJob|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionPipelineJob::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipelineJobJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipelineJob', 'json'); + } } } diff --git a/src/Endpoint/ApiExecutionsActionGetSubresourceExecutionSubresource.php b/src/Endpoint/ApiExecutionsActionGetSubresourceExecutionSubresource.php index d1434cfb..fdfb40fa 100644 --- a/src/Endpoint/ApiExecutionsActionGetSubresourceExecutionSubresource.php +++ b/src/Endpoint/ApiExecutionsActionGetSubresourceExecutionSubresource.php @@ -14,15 +14,18 @@ class ApiExecutionsActionGetSubresourceExecutionSubresource extends \Gyroscops\A { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Execution resource. * - * @param string $id Execution identifier + * @param string $id Execution identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/execution/{id}/action'); + return str_replace(['{id}'], [$this->id], '/runtime/executions/{id}/action'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,18 +45,29 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ExecutionAction|null + * @return \Gyroscops\Api\Model\ExecutionActionJsonld|\Gyroscops\Api\Model\ExecutionAction|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionAction::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionActionJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionAction', 'json'); + } } } diff --git a/src/Endpoint/ApiExecutionsOrganizationGetSubresourceExecutionSubresource.php b/src/Endpoint/ApiExecutionsOrganizationGetSubresourceExecutionSubresource.php index 32250dec..4f4c23e6 100644 --- a/src/Endpoint/ApiExecutionsOrganizationGetSubresourceExecutionSubresource.php +++ b/src/Endpoint/ApiExecutionsOrganizationGetSubresourceExecutionSubresource.php @@ -14,15 +14,18 @@ class ApiExecutionsOrganizationGetSubresourceExecutionSubresource extends \Gyros { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Execution resource. * - * @param string $id Execution identifier + * @param string $id Execution identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/execution/{id}/organization'); + return str_replace(['{id}'], [$this->id], '/runtime/executions/{id}/organization'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,18 +45,29 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Organization|null + * @return \Gyroscops\Api\Model\OrganizationJsonld|\Gyroscops\Api\Model\Organization|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Organization::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\OrganizationJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Organization', 'json'); + } } } diff --git a/src/Endpoint/ApiExecutionsOwnerGetSubresourceExecutionSubresource.php b/src/Endpoint/ApiExecutionsOwnerGetSubresourceExecutionSubresource.php index 67a2b6e4..bb93f859 100644 --- a/src/Endpoint/ApiExecutionsOwnerGetSubresourceExecutionSubresource.php +++ b/src/Endpoint/ApiExecutionsOwnerGetSubresourceExecutionSubresource.php @@ -14,15 +14,18 @@ class ApiExecutionsOwnerGetSubresourceExecutionSubresource extends \Gyroscops\Ap { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Execution resource. * - * @param string $id Execution identifier + * @param string $id Execution identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/execution/{id}/owner'); + return str_replace(['{id}'], [$this->id], '/runtime/executions/{id}/owner'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,18 +45,29 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\User|null + * @return \Gyroscops\Api\Model\UserJsonld|\Gyroscops\Api\Model\User|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\User::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\UserJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\User', 'json'); + } } } diff --git a/src/Endpoint/ApiExecutionsPipelineGetSubresourceExecutionSubresource.php b/src/Endpoint/ApiExecutionsPipelineGetSubresourceExecutionSubresource.php index 7fe79866..8d573bd3 100644 --- a/src/Endpoint/ApiExecutionsPipelineGetSubresourceExecutionSubresource.php +++ b/src/Endpoint/ApiExecutionsPipelineGetSubresourceExecutionSubresource.php @@ -14,15 +14,18 @@ class ApiExecutionsPipelineGetSubresourceExecutionSubresource extends \Gyroscops { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Execution resource. * - * @param string $id Execution identifier + * @param string $id Execution identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/execution/{id}/pipeline'); + return str_replace(['{id}'], [$this->id], '/runtime/executions/{id}/pipelines'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,18 +45,29 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ExecutionPipeline|null + * @return \Gyroscops\Api\Model\ExecutionPipelineJsonld|\Gyroscops\Api\Model\ExecutionPipeline|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionPipeline::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipelineJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipeline', 'json'); + } } } diff --git a/src/Endpoint/ApiExecutionsWorkflowGetSubresourceExecutionSubresource.php b/src/Endpoint/ApiExecutionsWorkflowGetSubresourceExecutionSubresource.php index a05202c2..1c2038ac 100644 --- a/src/Endpoint/ApiExecutionsWorkflowGetSubresourceExecutionSubresource.php +++ b/src/Endpoint/ApiExecutionsWorkflowGetSubresourceExecutionSubresource.php @@ -14,15 +14,18 @@ class ApiExecutionsWorkflowGetSubresourceExecutionSubresource extends \Gyroscops { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Execution resource. * - * @param string $id Execution identifier + * @param string $id Execution identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/execution/{id}/workflow'); + return str_replace(['{id}'], [$this->id], '/runtime/executions/{id}/workflows'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,18 +45,29 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ExecutionWorkflow|null + * @return \Gyroscops\Api\Model\ExecutionWorkflowJsonld|\Gyroscops\Api\Model\ExecutionWorkflow|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionWorkflow::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflowJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflow', 'json'); + } } } diff --git a/src/Endpoint/ApiExecutionsWorkflowJobsGetSubresourceExecutionSubresource.php b/src/Endpoint/ApiExecutionsWorkflowJobsGetSubresourceExecutionSubresource.php index 7774ee48..74ad1c0e 100644 --- a/src/Endpoint/ApiExecutionsWorkflowJobsGetSubresourceExecutionSubresource.php +++ b/src/Endpoint/ApiExecutionsWorkflowJobsGetSubresourceExecutionSubresource.php @@ -15,6 +15,7 @@ class ApiExecutionsWorkflowJobsGetSubresourceExecutionSubresource extends \Gyros use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; protected $workflow; + protected $accept; /** * Retrieves a Execution resource. @@ -25,12 +26,15 @@ class ApiExecutionsWorkflowJobsGetSubresourceExecutionSubresource extends \Gyros * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, string $workflow, array $queryParameters = []) + public function __construct(string $id, string $workflow, array $queryParameters = [], array $accept = []) { $this->id = $id; $this->workflow = $workflow; $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -40,7 +44,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}', '{workflow}'], [$this->id, $this->workflow], '/runtime/execution/{id}/workflow/jobs'); + return str_replace(['{id}', '{workflow}'], [$this->id, $this->workflow], '/runtime/executions/{id}/workflows/jobs'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -50,7 +54,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -59,7 +67,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -67,12 +75,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ExecutionWorkflowJob[]|null + * @return \Gyroscops\Api\Model\RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200|\Gyroscops\Api\Model\ExecutionWorkflowJob[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflowJob[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflowJob[]', 'json'); + } } } diff --git a/src/Endpoint/ApiExecutionsWorkspaceGetSubresourceExecutionSubresource.php b/src/Endpoint/ApiExecutionsWorkspaceGetSubresourceExecutionSubresource.php index ac19bd34..46a1b20b 100644 --- a/src/Endpoint/ApiExecutionsWorkspaceGetSubresourceExecutionSubresource.php +++ b/src/Endpoint/ApiExecutionsWorkspaceGetSubresourceExecutionSubresource.php @@ -14,15 +14,18 @@ class ApiExecutionsWorkspaceGetSubresourceExecutionSubresource extends \Gyroscop { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Execution resource. * - * @param string $id Execution identifier + * @param string $id Execution identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/execution/{id}/workspace'); + return str_replace(['{id}'], [$this->id], '/runtime/executions/{id}/workspace'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,18 +45,29 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Workspace|null + * @return \Gyroscops\Api\Model\WorkspaceJsonld|\Gyroscops\Api\Model\Workspace|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Workspace::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkspaceJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Workspace', 'json'); + } } } diff --git a/src/Endpoint/ApiOffersOptionsGetSubresourceOfferSubresource.php b/src/Endpoint/ApiOffersOptionsGetSubresourceOfferSubresource.php deleted file mode 100644 index 30293d0a..00000000 --- a/src/Endpoint/ApiOffersOptionsGetSubresourceOfferSubresource.php +++ /dev/null @@ -1,80 +0,0 @@ -id = $id; - $this->queryParameters = $queryParameters; - } - - public function getMethod(): string - { - return 'GET'; - } - - public function getUri(): string - { - return str_replace(['{id}'], [$this->id], '/authentication/offer/{id}/options'); - } - - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array - { - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver - { - $optionsResolver = parent::getQueryOptionsResolver(); - $optionsResolver->setDefined(['page']); - $optionsResolver->setRequired([]); - $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); - - return $optionsResolver; - } - - /** - * {@inheritdoc} - * - * @return \Gyroscops\Api\Model\Option[]|null - */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) - { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Option[]', 'json'); - } - } - - public function getAuthenticationScopes(): array - { - return ['apiKey']; - } -} diff --git a/src/Endpoint/ApiOrganizationsAuthorizationsGetSubresourceOrganizationSubresource.php b/src/Endpoint/ApiOrganizationsAuthorizationsGetSubresourceOrganizationSubresource.php index 1a5e40f5..dec9d9c9 100644 --- a/src/Endpoint/ApiOrganizationsAuthorizationsGetSubresourceOrganizationSubresource.php +++ b/src/Endpoint/ApiOrganizationsAuthorizationsGetSubresourceOrganizationSubresource.php @@ -14,6 +14,7 @@ class ApiOrganizationsAuthorizationsGetSubresourceOrganizationSubresource extend { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Organization resource. @@ -23,11 +24,14 @@ class ApiOrganizationsAuthorizationsGetSubresourceOrganizationSubresource extend * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, array $queryParameters = []) + public function __construct(string $id, array $queryParameters = [], array $accept = []) { $this->id = $id; $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -37,7 +41,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/authentication/organization/{id}/authorizations'); + return str_replace(['{id}'], [$this->id], '/authentication/organizations/{id}/authorizations'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -47,7 +51,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -56,7 +64,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -64,12 +72,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\UserAuthorization[]|null + * @return \Gyroscops\Api\Model\AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200|\Gyroscops\Api\Model\UserAuthorization[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\UserAuthorization[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\UserAuthorization[]', 'json'); + } } } diff --git a/src/Endpoint/ApiOrganizationsExternalCollaboratorsGetSubresourceOrganizationSubresource.php b/src/Endpoint/ApiOrganizationsExternalCollaboratorsGetSubresourceOrganizationSubresource.php index e16d97ca..877492af 100644 --- a/src/Endpoint/ApiOrganizationsExternalCollaboratorsGetSubresourceOrganizationSubresource.php +++ b/src/Endpoint/ApiOrganizationsExternalCollaboratorsGetSubresourceOrganizationSubresource.php @@ -14,6 +14,7 @@ class ApiOrganizationsExternalCollaboratorsGetSubresourceOrganizationSubresource { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Organization resource. @@ -23,11 +24,14 @@ class ApiOrganizationsExternalCollaboratorsGetSubresourceOrganizationSubresource * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, array $queryParameters = []) + public function __construct(string $id, array $queryParameters = [], array $accept = []) { $this->id = $id; $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -37,7 +41,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/authentication/organization/{id}/external-collaborators'); + return str_replace(['{id}'], [$this->id], '/authentication/organizations/{id}/external-collaborators'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -47,7 +51,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -56,7 +64,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -64,12 +72,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\User[]|null + * @return \Gyroscops\Api\Model\AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200|\Gyroscops\Api\Model\User[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\User[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\User[]', 'json'); + } } } diff --git a/src/Endpoint/ApiOrganizationsUsersGetSubresourceOrganizationSubresource.php b/src/Endpoint/ApiOrganizationsUsersGetSubresourceOrganizationSubresource.php index 42a2aeeb..dc056f36 100644 --- a/src/Endpoint/ApiOrganizationsUsersGetSubresourceOrganizationSubresource.php +++ b/src/Endpoint/ApiOrganizationsUsersGetSubresourceOrganizationSubresource.php @@ -14,6 +14,7 @@ class ApiOrganizationsUsersGetSubresourceOrganizationSubresource extends \Gyrosc { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Organization resource. @@ -23,11 +24,14 @@ class ApiOrganizationsUsersGetSubresourceOrganizationSubresource extends \Gyrosc * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, array $queryParameters = []) + public function __construct(string $id, array $queryParameters = [], array $accept = []) { $this->id = $id; $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -37,7 +41,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/authentication/organization/{id}/users'); + return str_replace(['{id}'], [$this->id], '/authentication/organizations/{id}/users'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -47,7 +51,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -56,7 +64,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -64,12 +72,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\User[]|null + * @return \Gyroscops\Api\Model\AuthenticationOrganizationsIdUsersGetLdjsonResponse200|\Gyroscops\Api\Model\User[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\User[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdUsersGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\User[]', 'json'); + } } } diff --git a/src/Endpoint/ApiOrganizationsWorkspacesGetSubresourceOrganizationSubresource.php b/src/Endpoint/ApiOrganizationsWorkspacesGetSubresourceOrganizationSubresource.php index 97c4524e..db11a0e2 100644 --- a/src/Endpoint/ApiOrganizationsWorkspacesGetSubresourceOrganizationSubresource.php +++ b/src/Endpoint/ApiOrganizationsWorkspacesGetSubresourceOrganizationSubresource.php @@ -14,6 +14,7 @@ class ApiOrganizationsWorkspacesGetSubresourceOrganizationSubresource extends \G { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Organization resource. @@ -23,11 +24,14 @@ class ApiOrganizationsWorkspacesGetSubresourceOrganizationSubresource extends \G * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, array $queryParameters = []) + public function __construct(string $id, array $queryParameters = [], array $accept = []) { $this->id = $id; $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -37,7 +41,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/authentication/organization/{id}/workspaces'); + return str_replace(['{id}'], [$this->id], '/authentication/organizations/{id}/workspaces'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -47,7 +51,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -56,7 +64,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -64,12 +72,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Workspace[]|null + * @return \Gyroscops\Api\Model\AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200|\Gyroscops\Api\Model\Workspace[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Workspace[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Workspace[]', 'json'); + } } } diff --git a/src/Endpoint/ApiPipelineStepsProbesGetSubresourcePipelineStepSubresource.php b/src/Endpoint/ApiPipelineStepsProbesGetSubresourcePipelineStepSubresource.php index 1f18c62a..6d698212 100644 --- a/src/Endpoint/ApiPipelineStepsProbesGetSubresourcePipelineStepSubresource.php +++ b/src/Endpoint/ApiPipelineStepsProbesGetSubresourcePipelineStepSubresource.php @@ -14,6 +14,7 @@ class ApiPipelineStepsProbesGetSubresourcePipelineStepSubresource extends \Gyros { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a PipelineStep resource. @@ -23,11 +24,14 @@ class ApiPipelineStepsProbesGetSubresourcePipelineStepSubresource extends \Gyros * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, array $queryParameters = []) + public function __construct(string $id, array $queryParameters = [], array $accept = []) { $this->id = $id; $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -37,7 +41,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/pipeline/step/{id}/probes'); + return str_replace(['{id}'], [$this->id], '/runtime/pipelines/steps/{id}/probes'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -47,7 +51,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -56,7 +64,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -64,12 +72,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\PipelineStepProbe[]|null + * @return \Gyroscops\Api\Model\RuntimePipelinesStepsIdProbesGetLdjsonResponse200|\Gyroscops\Api\Model\PipelineStepProbe[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineStepProbe[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\RuntimePipelinesStepsIdProbesGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineStepProbe[]', 'json'); + } } } diff --git a/src/Endpoint/ApiPipelinesCompilationsGetSubresourcePipelineSubresource.php b/src/Endpoint/ApiPipelinesCompilationsGetSubresourcePipelineSubresource.php index cc215557..184fbb64 100644 --- a/src/Endpoint/ApiPipelinesCompilationsGetSubresourcePipelineSubresource.php +++ b/src/Endpoint/ApiPipelinesCompilationsGetSubresourcePipelineSubresource.php @@ -14,6 +14,7 @@ class ApiPipelinesCompilationsGetSubresourcePipelineSubresource extends \Gyrosco { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Pipeline resource. @@ -23,11 +24,14 @@ class ApiPipelinesCompilationsGetSubresourcePipelineSubresource extends \Gyrosco * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, array $queryParameters = []) + public function __construct(string $id, array $queryParameters = [], array $accept = []) { $this->id = $id; $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -37,7 +41,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/pipeline/{id}/compilations'); + return str_replace(['{id}'], [$this->id], '/runtime/pipelines/{id}/compilations'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -47,7 +51,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -56,7 +64,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -64,12 +72,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Compilation[]|null + * @return \Gyroscops\Api\Model\RuntimePipelinesIdCompilationsGetLdjsonResponse200|\Gyroscops\Api\Model\Compilation[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Compilation[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\RuntimePipelinesIdCompilationsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Compilation[]', 'json'); + } } } diff --git a/src/Endpoint/ApiPipelinesOrganizationGetSubresourcePipelineSubresource.php b/src/Endpoint/ApiPipelinesOrganizationGetSubresourcePipelineSubresource.php index 3e29ff09..61c64f72 100644 --- a/src/Endpoint/ApiPipelinesOrganizationGetSubresourcePipelineSubresource.php +++ b/src/Endpoint/ApiPipelinesOrganizationGetSubresourcePipelineSubresource.php @@ -14,15 +14,18 @@ class ApiPipelinesOrganizationGetSubresourcePipelineSubresource extends \Gyrosco { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Pipeline resource. * - * @param string $id Pipeline identifier + * @param string $id Pipeline identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/pipeline/{id}/organization'); + return str_replace(['{id}'], [$this->id], '/runtime/pipelines/{id}/organization'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,18 +45,29 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Organization|null + * @return \Gyroscops\Api\Model\OrganizationJsonld|\Gyroscops\Api\Model\Organization|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Organization::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\OrganizationJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Organization', 'json'); + } } } diff --git a/src/Endpoint/ApiPipelinesOwnerGetSubresourcePipelineSubresource.php b/src/Endpoint/ApiPipelinesOwnerGetSubresourcePipelineSubresource.php index 1f198b75..3f3182c9 100644 --- a/src/Endpoint/ApiPipelinesOwnerGetSubresourcePipelineSubresource.php +++ b/src/Endpoint/ApiPipelinesOwnerGetSubresourcePipelineSubresource.php @@ -14,15 +14,18 @@ class ApiPipelinesOwnerGetSubresourcePipelineSubresource extends \Gyroscops\Api\ { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Pipeline resource. * - * @param string $id Pipeline identifier + * @param string $id Pipeline identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/pipeline/{id}/owner'); + return str_replace(['{id}'], [$this->id], '/runtime/pipelines/{id}/owner'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,18 +45,29 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\User|null + * @return \Gyroscops\Api\Model\UserJsonld|\Gyroscops\Api\Model\User|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\User::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\UserJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\User', 'json'); + } } } diff --git a/src/Endpoint/ApiPipelinesSchedulesGetSubresourcePipelineSubresource.php b/src/Endpoint/ApiPipelinesSchedulesGetSubresourcePipelineSubresource.php new file mode 100644 index 00000000..f3d89d58 --- /dev/null +++ b/src/Endpoint/ApiPipelinesSchedulesGetSubresourcePipelineSubresource.php @@ -0,0 +1,95 @@ +id = $id; + $this->queryParameters = $queryParameters; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{id}'], [$this->id], '/runtime/pipelines/{id}/schedules'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['page' => 1]); + $optionsResolver->addAllowedTypes('page', ['int']); + + return $optionsResolver; + } + + /** + * {@inheritdoc} + * + * @return \Gyroscops\Api\Model\RuntimePipelinesIdSchedulesGetLdjsonResponse200|null + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\RuntimePipelinesIdSchedulesGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } + } + } + + public function getAuthenticationScopes(): array + { + return ['apiKey']; + } +} diff --git a/src/Endpoint/ApiPipelinesStepsGetSubresourcePipelineSubresource.php b/src/Endpoint/ApiPipelinesStepsGetSubresourcePipelineSubresource.php index 5241e9b9..489f2997 100644 --- a/src/Endpoint/ApiPipelinesStepsGetSubresourcePipelineSubresource.php +++ b/src/Endpoint/ApiPipelinesStepsGetSubresourcePipelineSubresource.php @@ -14,6 +14,7 @@ class ApiPipelinesStepsGetSubresourcePipelineSubresource extends \Gyroscops\Api\ { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Pipeline resource. @@ -23,11 +24,14 @@ class ApiPipelinesStepsGetSubresourcePipelineSubresource extends \Gyroscops\Api\ * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, array $queryParameters = []) + public function __construct(string $id, array $queryParameters = [], array $accept = []) { $this->id = $id; $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -37,7 +41,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/pipeline/{id}/steps'); + return str_replace(['{id}'], [$this->id], '/runtime/pipelines/{id}/steps'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -47,7 +51,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -56,7 +64,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -64,12 +72,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\PipelineStep[]|null + * @return \Gyroscops\Api\Model\RuntimePipelinesIdStepsGetLdjsonResponse200|\Gyroscops\Api\Model\PipelineStep[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineStep[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\RuntimePipelinesIdStepsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineStep[]', 'json'); + } } } diff --git a/src/Endpoint/ApiPipelinesWorkspaceGetSubresourcePipelineSubresource.php b/src/Endpoint/ApiPipelinesWorkspaceGetSubresourcePipelineSubresource.php index 9b6e2a59..8940f2bd 100644 --- a/src/Endpoint/ApiPipelinesWorkspaceGetSubresourcePipelineSubresource.php +++ b/src/Endpoint/ApiPipelinesWorkspaceGetSubresourcePipelineSubresource.php @@ -14,15 +14,18 @@ class ApiPipelinesWorkspaceGetSubresourcePipelineSubresource extends \Gyroscops\ { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Pipeline resource. * - * @param string $id Pipeline identifier + * @param string $id Pipeline identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/pipeline/{id}/workspace'); + return str_replace(['{id}'], [$this->id], '/runtime/pipelines/{id}/workspace'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,18 +45,29 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Workspace|null + * @return \Gyroscops\Api\Model\WorkspaceJsonld|\Gyroscops\Api\Model\Workspace|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Workspace::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkspaceJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Workspace', 'json'); + } } } diff --git a/src/Endpoint/ApiSchedulesExecutionsGetSubresourceScheduleSubresource.php b/src/Endpoint/ApiSchedulesExecutionsGetSubresourceScheduleSubresource.php index adcb90dd..82ac64f8 100644 --- a/src/Endpoint/ApiSchedulesExecutionsGetSubresourceScheduleSubresource.php +++ b/src/Endpoint/ApiSchedulesExecutionsGetSubresourceScheduleSubresource.php @@ -14,6 +14,7 @@ class ApiSchedulesExecutionsGetSubresourceScheduleSubresource extends \Gyroscops { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Schedule resource. @@ -23,11 +24,14 @@ class ApiSchedulesExecutionsGetSubresourceScheduleSubresource extends \Gyroscops * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, array $queryParameters = []) + public function __construct(string $id, array $queryParameters = [], array $accept = []) { $this->id = $id; $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -37,7 +41,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/schedule/{id}/executions'); + return str_replace(['{id}'], [$this->id], '/runtime/schedules/{id}/executions'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -47,7 +51,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -56,7 +64,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -64,12 +72,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ExecutionRead[]|null + * @return \Gyroscops\Api\Model\RuntimeSchedulesIdExecutionsGetLdjsonResponse200|\Gyroscops\Api\Model\ExecutionRead[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionRead[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\RuntimeSchedulesIdExecutionsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionRead[]', 'json'); + } } } diff --git a/src/Endpoint/ApiSchedulesOrganizationGetSubresourceScheduleSubresource.php b/src/Endpoint/ApiSchedulesOrganizationGetSubresourceScheduleSubresource.php deleted file mode 100644 index 3d476909..00000000 --- a/src/Endpoint/ApiSchedulesOrganizationGetSubresourceScheduleSubresource.php +++ /dev/null @@ -1,64 +0,0 @@ -id = $id; - } - - public function getMethod(): string - { - return 'GET'; - } - - public function getUri(): string - { - return str_replace(['{id}'], [$this->id], '/runtime/schedule/{id}/organization'); - } - - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array - { - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - /** - * {@inheritdoc} - * - * @return \Gyroscops\Api\Model\Organization|null - */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) - { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Organization::class, 'json'); - } - } - - public function getAuthenticationScopes(): array - { - return ['apiKey']; - } -} diff --git a/src/Endpoint/ApiSchedulesOwnerGetSubresourceScheduleSubresource.php b/src/Endpoint/ApiSchedulesOwnerGetSubresourceScheduleSubresource.php deleted file mode 100644 index 45de8f0c..00000000 --- a/src/Endpoint/ApiSchedulesOwnerGetSubresourceScheduleSubresource.php +++ /dev/null @@ -1,64 +0,0 @@ -id = $id; - } - - public function getMethod(): string - { - return 'GET'; - } - - public function getUri(): string - { - return str_replace(['{id}'], [$this->id], '/runtime/schedule/{id}/owner'); - } - - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array - { - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - /** - * {@inheritdoc} - * - * @return \Gyroscops\Api\Model\User|null - */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) - { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\User::class, 'json'); - } - } - - public function getAuthenticationScopes(): array - { - return ['apiKey']; - } -} diff --git a/src/Endpoint/ApiSchedulesPipelineGetSubresourceScheduleSubresource.php b/src/Endpoint/ApiSchedulesPipelineGetSubresourceScheduleSubresource.php deleted file mode 100644 index da446b42..00000000 --- a/src/Endpoint/ApiSchedulesPipelineGetSubresourceScheduleSubresource.php +++ /dev/null @@ -1,64 +0,0 @@ -id = $id; - } - - public function getMethod(): string - { - return 'GET'; - } - - public function getUri(): string - { - return str_replace(['{id}'], [$this->id], '/runtime/schedule/{id}/pipeline'); - } - - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array - { - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - /** - * {@inheritdoc} - * - * @return \Gyroscops\Api\Model\PipelineRead|null - */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) - { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\PipelineRead::class, 'json'); - } - } - - public function getAuthenticationScopes(): array - { - return ['apiKey']; - } -} diff --git a/src/Endpoint/ApiSchedulesWorkflowGetSubresourceScheduleSubresource.php b/src/Endpoint/ApiSchedulesWorkflowGetSubresourceScheduleSubresource.php deleted file mode 100644 index 90a39c06..00000000 --- a/src/Endpoint/ApiSchedulesWorkflowGetSubresourceScheduleSubresource.php +++ /dev/null @@ -1,64 +0,0 @@ -id = $id; - } - - public function getMethod(): string - { - return 'GET'; - } - - public function getUri(): string - { - return str_replace(['{id}'], [$this->id], '/runtime/schedule/{id}/workflow'); - } - - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array - { - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - /** - * {@inheritdoc} - * - * @return \Gyroscops\Api\Model\WorkflowRead|null - */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) - { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\WorkflowRead::class, 'json'); - } - } - - public function getAuthenticationScopes(): array - { - return ['apiKey']; - } -} diff --git a/src/Endpoint/ApiSchedulesWorkflowJobsGetSubresourceScheduleSubresource.php b/src/Endpoint/ApiSchedulesWorkflowJobsGetSubresourceScheduleSubresource.php deleted file mode 100644 index ac1ebe54..00000000 --- a/src/Endpoint/ApiSchedulesWorkflowJobsGetSubresourceScheduleSubresource.php +++ /dev/null @@ -1,83 +0,0 @@ -id = $id; - $this->workflow = $workflow; - $this->queryParameters = $queryParameters; - } - - public function getMethod(): string - { - return 'GET'; - } - - public function getUri(): string - { - return str_replace(['{id}', '{workflow}'], [$this->id, $this->workflow], '/runtime/schedule/{id}/workflow/jobs'); - } - - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array - { - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver - { - $optionsResolver = parent::getQueryOptionsResolver(); - $optionsResolver->setDefined(['page']); - $optionsResolver->setRequired([]); - $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); - - return $optionsResolver; - } - - /** - * {@inheritdoc} - * - * @return \Gyroscops\Api\Model\WorkflowJobRead[]|null - */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) - { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkflowJobRead[]', 'json'); - } - } - - public function getAuthenticationScopes(): array - { - return ['apiKey']; - } -} diff --git a/src/Endpoint/ApiSchedulesWorkflowOrganizationGetSubresourceScheduleSubresource.php b/src/Endpoint/ApiSchedulesWorkflowOrganizationGetSubresourceScheduleSubresource.php deleted file mode 100644 index a79c7643..00000000 --- a/src/Endpoint/ApiSchedulesWorkflowOrganizationGetSubresourceScheduleSubresource.php +++ /dev/null @@ -1,67 +0,0 @@ -id = $id; - $this->workflow = $workflow; - } - - public function getMethod(): string - { - return 'GET'; - } - - public function getUri(): string - { - return str_replace(['{id}', '{workflow}'], [$this->id, $this->workflow], '/runtime/schedule/{id}/workflow/organization'); - } - - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array - { - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - /** - * {@inheritdoc} - * - * @return \Gyroscops\Api\Model\Organization|null - */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) - { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Organization::class, 'json'); - } - } - - public function getAuthenticationScopes(): array - { - return ['apiKey']; - } -} diff --git a/src/Endpoint/ApiSchedulesWorkflowOwnerGetSubresourceScheduleSubresource.php b/src/Endpoint/ApiSchedulesWorkflowOwnerGetSubresourceScheduleSubresource.php deleted file mode 100644 index 94c9a883..00000000 --- a/src/Endpoint/ApiSchedulesWorkflowOwnerGetSubresourceScheduleSubresource.php +++ /dev/null @@ -1,67 +0,0 @@ -id = $id; - $this->workflow = $workflow; - } - - public function getMethod(): string - { - return 'GET'; - } - - public function getUri(): string - { - return str_replace(['{id}', '{workflow}'], [$this->id, $this->workflow], '/runtime/schedule/{id}/workflow/owner'); - } - - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array - { - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - /** - * {@inheritdoc} - * - * @return \Gyroscops\Api\Model\User|null - */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) - { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\User::class, 'json'); - } - } - - public function getAuthenticationScopes(): array - { - return ['apiKey']; - } -} diff --git a/src/Endpoint/ApiSchedulesWorkflowWorkspaceGetSubresourceScheduleSubresource.php b/src/Endpoint/ApiSchedulesWorkflowWorkspaceGetSubresourceScheduleSubresource.php deleted file mode 100644 index f7fdbd00..00000000 --- a/src/Endpoint/ApiSchedulesWorkflowWorkspaceGetSubresourceScheduleSubresource.php +++ /dev/null @@ -1,67 +0,0 @@ -id = $id; - $this->workflow = $workflow; - } - - public function getMethod(): string - { - return 'GET'; - } - - public function getUri(): string - { - return str_replace(['{id}', '{workflow}'], [$this->id, $this->workflow], '/runtime/schedule/{id}/workflow/workspace'); - } - - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array - { - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - /** - * {@inheritdoc} - * - * @return \Gyroscops\Api\Model\Workspace|null - */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) - { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Workspace::class, 'json'); - } - } - - public function getAuthenticationScopes(): array - { - return ['apiKey']; - } -} diff --git a/src/Endpoint/ApiSchedulesWorkspaceGetSubresourceScheduleSubresource.php b/src/Endpoint/ApiSchedulesWorkspaceGetSubresourceScheduleSubresource.php deleted file mode 100644 index bce82912..00000000 --- a/src/Endpoint/ApiSchedulesWorkspaceGetSubresourceScheduleSubresource.php +++ /dev/null @@ -1,64 +0,0 @@ -id = $id; - } - - public function getMethod(): string - { - return 'GET'; - } - - public function getUri(): string - { - return str_replace(['{id}'], [$this->id], '/runtime/schedule/{id}/workspace'); - } - - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array - { - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - /** - * {@inheritdoc} - * - * @return \Gyroscops\Api\Model\Workspace|null - */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) - { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Workspace::class, 'json'); - } - } - - public function getAuthenticationScopes(): array - { - return ['apiKey']; - } -} diff --git a/src/Endpoint/ApiSubscriptionOffersOptionsGetSubresourceSubscriptionOfferSubresource.php b/src/Endpoint/ApiSubscriptionOffersOptionsGetSubresourceSubscriptionOfferSubresource.php new file mode 100644 index 00000000..0730ade0 --- /dev/null +++ b/src/Endpoint/ApiSubscriptionOffersOptionsGetSubresourceSubscriptionOfferSubresource.php @@ -0,0 +1,95 @@ +id = $id; + $this->queryParameters = $queryParameters; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{id}'], [$this->id], '/authentication/offers/{id}/options'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['page' => 1]); + $optionsResolver->addAllowedTypes('page', ['int']); + + return $optionsResolver; + } + + /** + * {@inheritdoc} + * + * @return \Gyroscops\Api\Model\AuthenticationOffersIdOptionsGetLdjsonResponse200|\Gyroscops\Api\Model\Option[]|null + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AuthenticationOffersIdOptionsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Option[]', 'json'); + } + } + } + + public function getAuthenticationScopes(): array + { + return ['apiKey']; + } +} diff --git a/src/Endpoint/ApiSubscriptionsOfferGetSubresourceSubscriptionSubresource.php b/src/Endpoint/ApiSubscriptionsOfferGetSubresourceSubscriptionSubresource.php index 4cd0aa9c..2be10a34 100644 --- a/src/Endpoint/ApiSubscriptionsOfferGetSubresourceSubscriptionSubresource.php +++ b/src/Endpoint/ApiSubscriptionsOfferGetSubresourceSubscriptionSubresource.php @@ -14,15 +14,18 @@ class ApiSubscriptionsOfferGetSubresourceSubscriptionSubresource extends \Gyrosc { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Subscription resource. * - * @param string $id Subscription identifier + * @param string $id Subscription identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -42,18 +45,29 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Offer|null + * @return \Gyroscops\Api\Model\SubscriptionOfferJsonldRead|\Gyroscops\Api\Model\SubscriptionOfferRead|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Offer::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\SubscriptionOfferJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\SubscriptionOfferRead', 'json'); + } } } diff --git a/src/Endpoint/ApiSubscriptionsOptionsGetSubresourceSubscriptionSubresource.php b/src/Endpoint/ApiSubscriptionsOptionsGetSubresourceSubscriptionSubresource.php index 02198ba2..cfa7acbd 100644 --- a/src/Endpoint/ApiSubscriptionsOptionsGetSubresourceSubscriptionSubresource.php +++ b/src/Endpoint/ApiSubscriptionsOptionsGetSubresourceSubscriptionSubresource.php @@ -14,6 +14,7 @@ class ApiSubscriptionsOptionsGetSubresourceSubscriptionSubresource extends \Gyro { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Subscription resource. @@ -23,11 +24,14 @@ class ApiSubscriptionsOptionsGetSubresourceSubscriptionSubresource extends \Gyro * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, array $queryParameters = []) + public function __construct(string $id, array $queryParameters = [], array $accept = []) { $this->id = $id; $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -47,7 +51,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -56,7 +64,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -64,12 +72,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\SubscriptionOption[]|null + * @return \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200|\Gyroscops\Api\Model\SubscriptionOption[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\SubscriptionOption[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\SubscriptionOption[]', 'json'); + } } } diff --git a/src/Endpoint/ApiSubscriptionsOrganizationGetSubresourceSubscriptionSubresource.php b/src/Endpoint/ApiSubscriptionsOrganizationGetSubresourceSubscriptionSubresource.php index fb84585d..f6754b5e 100644 --- a/src/Endpoint/ApiSubscriptionsOrganizationGetSubresourceSubscriptionSubresource.php +++ b/src/Endpoint/ApiSubscriptionsOrganizationGetSubresourceSubscriptionSubresource.php @@ -14,15 +14,18 @@ class ApiSubscriptionsOrganizationGetSubresourceSubscriptionSubresource extends { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Subscription resource. * - * @param string $id Subscription identifier + * @param string $id Subscription identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -42,18 +45,29 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Organization|null + * @return \Gyroscops\Api\Model\OrganizationJsonld|\Gyroscops\Api\Model\Organization|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Organization::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\OrganizationJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Organization', 'json'); + } } } diff --git a/src/Endpoint/ApiUsersAuthorizationsGetSubresourceUserSubresource.php b/src/Endpoint/ApiUsersAuthorizationsGetSubresourceUserSubresource.php deleted file mode 100644 index 9949a4d5..00000000 --- a/src/Endpoint/ApiUsersAuthorizationsGetSubresourceUserSubresource.php +++ /dev/null @@ -1,80 +0,0 @@ -id = $id; - $this->queryParameters = $queryParameters; - } - - public function getMethod(): string - { - return 'GET'; - } - - public function getUri(): string - { - return str_replace(['{id}'], [$this->id], '/authentication/user/{id}/authorizations'); - } - - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array - { - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver - { - $optionsResolver = parent::getQueryOptionsResolver(); - $optionsResolver->setDefined(['page']); - $optionsResolver->setRequired([]); - $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); - - return $optionsResolver; - } - - /** - * {@inheritdoc} - * - * @return \Gyroscops\Api\Model\UserAuthorization[]|null - */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) - { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\UserAuthorization[]', 'json'); - } - } - - public function getAuthenticationScopes(): array - { - return ['apiKey']; - } -} diff --git a/src/Endpoint/ApiWorkflowJobPipelinesStepsGetSubresourceWorkflowJobPipelineSubresource.php b/src/Endpoint/ApiWorkflowJobPipelinesStepsGetSubresourceWorkflowJobPipelineSubresource.php index 96a11ed9..a085ca58 100644 --- a/src/Endpoint/ApiWorkflowJobPipelinesStepsGetSubresourceWorkflowJobPipelineSubresource.php +++ b/src/Endpoint/ApiWorkflowJobPipelinesStepsGetSubresourceWorkflowJobPipelineSubresource.php @@ -14,6 +14,7 @@ class ApiWorkflowJobPipelinesStepsGetSubresourceWorkflowJobPipelineSubresource e { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a WorkflowJobPipeline resource. @@ -23,11 +24,14 @@ class ApiWorkflowJobPipelinesStepsGetSubresourceWorkflowJobPipelineSubresource e * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, array $queryParameters = []) + public function __construct(string $id, array $queryParameters = [], array $accept = []) { $this->id = $id; $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -37,7 +41,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/workflow/workflow-job-pipelines/{id}/steps'); + return str_replace(['{id}'], [$this->id], '/runtime/workflows/workflow-job-pipelines/{id}/steps'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -47,7 +51,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -56,7 +64,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -64,12 +72,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\PipelineStep[]|null + * @return \Gyroscops\Api\Model\RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200|\Gyroscops\Api\Model\PipelineStep[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineStep[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineStep[]', 'json'); + } } } diff --git a/src/Endpoint/ApiWorkflowsCompilationsGetSubresourceWorkflowSubresource.php b/src/Endpoint/ApiWorkflowsCompilationsGetSubresourceWorkflowSubresource.php new file mode 100644 index 00000000..a58b81e9 --- /dev/null +++ b/src/Endpoint/ApiWorkflowsCompilationsGetSubresourceWorkflowSubresource.php @@ -0,0 +1,95 @@ +id = $id; + $this->queryParameters = $queryParameters; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{id}'], [$this->id], '/runtime/workflows/{id}/compilations'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['page' => 1]); + $optionsResolver->addAllowedTypes('page', ['int']); + + return $optionsResolver; + } + + /** + * {@inheritdoc} + * + * @return \Gyroscops\Api\Model\RuntimeWorkflowsIdCompilationsGetLdjsonResponse200|\Gyroscops\Api\Model\Compilation[]|null + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\RuntimeWorkflowsIdCompilationsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Compilation[]', 'json'); + } + } + } + + public function getAuthenticationScopes(): array + { + return ['apiKey']; + } +} diff --git a/src/Endpoint/ApiWorkflowsJobsGetSubresourceWorkflowSubresource.php b/src/Endpoint/ApiWorkflowsJobsGetSubresourceWorkflowSubresource.php index 5dfae6f4..783b8684 100644 --- a/src/Endpoint/ApiWorkflowsJobsGetSubresourceWorkflowSubresource.php +++ b/src/Endpoint/ApiWorkflowsJobsGetSubresourceWorkflowSubresource.php @@ -14,6 +14,7 @@ class ApiWorkflowsJobsGetSubresourceWorkflowSubresource extends \Gyroscops\Api\R { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Workflow resource. @@ -23,11 +24,14 @@ class ApiWorkflowsJobsGetSubresourceWorkflowSubresource extends \Gyroscops\Api\R * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, array $queryParameters = []) + public function __construct(string $id, array $queryParameters = [], array $accept = []) { $this->id = $id; $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -37,7 +41,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/workflow/{id}/jobs'); + return str_replace(['{id}'], [$this->id], '/runtime/workflows/{id}/jobs'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -47,7 +51,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -56,7 +64,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -64,12 +72,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\WorkflowJobRead[]|null + * @return \Gyroscops\Api\Model\RuntimeWorkflowsIdJobsGetLdjsonResponse200|\Gyroscops\Api\Model\WorkflowJobRead[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkflowJobRead[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\RuntimeWorkflowsIdJobsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkflowJobRead[]', 'json'); + } } } diff --git a/src/Endpoint/ApiWorkflowsOrganizationGetSubresourceWorkflowSubresource.php b/src/Endpoint/ApiWorkflowsOrganizationGetSubresourceWorkflowSubresource.php deleted file mode 100644 index 1e3ee1cd..00000000 --- a/src/Endpoint/ApiWorkflowsOrganizationGetSubresourceWorkflowSubresource.php +++ /dev/null @@ -1,64 +0,0 @@ -id = $id; - } - - public function getMethod(): string - { - return 'GET'; - } - - public function getUri(): string - { - return str_replace(['{id}'], [$this->id], '/runtime/workflow/{id}/organization'); - } - - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array - { - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - /** - * {@inheritdoc} - * - * @return \Gyroscops\Api\Model\Organization|null - */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) - { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Organization::class, 'json'); - } - } - - public function getAuthenticationScopes(): array - { - return ['apiKey']; - } -} diff --git a/src/Endpoint/ApiWorkflowsOwnerGetSubresourceWorkflowSubresource.php b/src/Endpoint/ApiWorkflowsOwnerGetSubresourceWorkflowSubresource.php deleted file mode 100644 index 67a0c1c9..00000000 --- a/src/Endpoint/ApiWorkflowsOwnerGetSubresourceWorkflowSubresource.php +++ /dev/null @@ -1,64 +0,0 @@ -id = $id; - } - - public function getMethod(): string - { - return 'GET'; - } - - public function getUri(): string - { - return str_replace(['{id}'], [$this->id], '/runtime/workflow/{id}/owner'); - } - - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array - { - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - /** - * {@inheritdoc} - * - * @return \Gyroscops\Api\Model\User|null - */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) - { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\User::class, 'json'); - } - } - - public function getAuthenticationScopes(): array - { - return ['apiKey']; - } -} diff --git a/src/Endpoint/ApiWorkflowsSchedulesGetSubresourceWorkflowSubresource.php b/src/Endpoint/ApiWorkflowsSchedulesGetSubresourceWorkflowSubresource.php new file mode 100644 index 00000000..592fbf0a --- /dev/null +++ b/src/Endpoint/ApiWorkflowsSchedulesGetSubresourceWorkflowSubresource.php @@ -0,0 +1,95 @@ +id = $id; + $this->queryParameters = $queryParameters; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{id}'], [$this->id], '/runtime/workflows/{id}/schedules'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['page' => 1]); + $optionsResolver->addAllowedTypes('page', ['int']); + + return $optionsResolver; + } + + /** + * {@inheritdoc} + * + * @return \Gyroscops\Api\Model\RuntimeWorkflowsIdSchedulesGetLdjsonResponse200|null + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\RuntimeWorkflowsIdSchedulesGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } + } + } + + public function getAuthenticationScopes(): array + { + return ['apiKey']; + } +} diff --git a/src/Endpoint/ApiWorkflowsWorkspaceGetSubresourceWorkflowSubresource.php b/src/Endpoint/ApiWorkflowsWorkspaceGetSubresourceWorkflowSubresource.php deleted file mode 100644 index 55c1a9dd..00000000 --- a/src/Endpoint/ApiWorkflowsWorkspaceGetSubresourceWorkflowSubresource.php +++ /dev/null @@ -1,64 +0,0 @@ -id = $id; - } - - public function getMethod(): string - { - return 'GET'; - } - - public function getUri(): string - { - return str_replace(['{id}'], [$this->id], '/runtime/workflow/{id}/workspace'); - } - - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array - { - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - /** - * {@inheritdoc} - * - * @return \Gyroscops\Api\Model\Workspace|null - */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) - { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Workspace::class, 'json'); - } - } - - public function getAuthenticationScopes(): array - { - return ['apiKey']; - } -} diff --git a/src/Endpoint/ApiWorkspacesAuthorizationsGetSubresourceWorkspaceSubresource.php b/src/Endpoint/ApiWorkspacesAuthorizationsGetSubresourceWorkspaceSubresource.php index 05c1d0b3..f8775b40 100644 --- a/src/Endpoint/ApiWorkspacesAuthorizationsGetSubresourceWorkspaceSubresource.php +++ b/src/Endpoint/ApiWorkspacesAuthorizationsGetSubresourceWorkspaceSubresource.php @@ -14,6 +14,7 @@ class ApiWorkspacesAuthorizationsGetSubresourceWorkspaceSubresource extends \Gyr { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Workspace resource. @@ -23,11 +24,14 @@ class ApiWorkspacesAuthorizationsGetSubresourceWorkspaceSubresource extends \Gyr * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, array $queryParameters = []) + public function __construct(string $id, array $queryParameters = [], array $accept = []) { $this->id = $id; $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -37,7 +41,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/authentication/workspace/{id}/authorizations'); + return str_replace(['{id}'], [$this->id], '/authentication/workspaces/{id}/authorizations'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -47,7 +51,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -56,7 +64,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -64,12 +72,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\UserAuthorization[]|null + * @return \Gyroscops\Api\Model\AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200|\Gyroscops\Api\Model\UserAuthorization[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\UserAuthorization[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\UserAuthorization[]', 'json'); + } } } diff --git a/src/Endpoint/ApiWorkspacesUsersGetSubresourceWorkspaceSubresource.php b/src/Endpoint/ApiWorkspacesUsersGetSubresourceWorkspaceSubresource.php index 5a255a40..984dbb1b 100644 --- a/src/Endpoint/ApiWorkspacesUsersGetSubresourceWorkspaceSubresource.php +++ b/src/Endpoint/ApiWorkspacesUsersGetSubresourceWorkspaceSubresource.php @@ -14,6 +14,7 @@ class ApiWorkspacesUsersGetSubresourceWorkspaceSubresource extends \Gyroscops\Ap { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Workspace resource. @@ -23,11 +24,14 @@ class ApiWorkspacesUsersGetSubresourceWorkspaceSubresource extends \Gyroscops\Ap * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, array $queryParameters = []) + public function __construct(string $id, array $queryParameters = [], array $accept = []) { $this->id = $id; $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -37,7 +41,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/authentication/workspace/{id}/users'); + return str_replace(['{id}'], [$this->id], '/authentication/workspaces/{id}/users'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -47,7 +51,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -56,7 +64,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -64,12 +72,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\User[]|null + * @return \Gyroscops\Api\Model\AuthenticationWorkspacesIdUsersGetLdjsonResponse200|\Gyroscops\Api\Model\User[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\User[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AuthenticationWorkspacesIdUsersGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\User[]', 'json'); + } } } diff --git a/src/Endpoint/AppendPipelineStepPipelineItem.php b/src/Endpoint/AppendPipelineStepPipelineItem.php index d641c305..237b4c26 100644 --- a/src/Endpoint/AppendPipelineStepPipelineItem.php +++ b/src/Endpoint/AppendPipelineStepPipelineItem.php @@ -14,17 +14,20 @@ class AppendPipelineStepPipelineItem extends \Gyroscops\Api\Runtime\Client\BaseE { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Appends a step to a pipeline. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandInputJsonld|\Gyroscops\Api\Model\PipelineAppendPipelineStepCommandInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -34,13 +37,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/pipeline/{id}/step'); + return str_replace(['{id}'], [$this->id], '/runtime/pipelines/{id}/steps'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -54,29 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * + * @return \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandJsonldRead|null + * * @throws \Gyroscops\Api\Exception\AppendPipelineStepPipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\AppendPipelineStepPipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\AppendPipelineStepPipelineItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineAppendPipelineStepCommandJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\AppendPipelineStepPipelineItemBadRequestException(); + throw new \Gyroscops\Api\Exception\AppendPipelineStepPipelineItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\AppendPipelineStepPipelineItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\AppendPipelineStepPipelineItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\AppendPipelineStepPipelineItemNotFoundException(); + throw new \Gyroscops\Api\Exception\AppendPipelineStepPipelineItemNotFoundException($response); } } diff --git a/src/Endpoint/ChangePasswordUserItem.php b/src/Endpoint/ChangePasswordUserItem.php index 4c1c3817..1a4f3ccb 100644 --- a/src/Endpoint/ChangePasswordUserItem.php +++ b/src/Endpoint/ChangePasswordUserItem.php @@ -14,16 +14,19 @@ class ChangePasswordUserItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Updates the User resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, ?\Gyroscops\Api\Model\UserUserChangePasswordInput $requestBody = null) + public function __construct(string $id, ?\Gyroscops\Api\Model\UserUserChangePasswordInput $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -33,13 +36,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/authentication/user/{id}/change-password'); + return str_replace(['{id}'], [$this->id], '/authentication/users/{id}/change-password'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\UserUserChangePasswordInput) { - return [['Content-Type' => ['application/merge-patch+json']], $this->body]; + return [['Content-Type' => ['application/merge-patch+json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; @@ -47,31 +50,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\User|null + * @return \Gyroscops\Api\Model\UserJsonld|\Gyroscops\Api\Model\User|null * * @throws \Gyroscops\Api\Exception\ChangePasswordUserItemBadRequestException * @throws \Gyroscops\Api\Exception\ChangePasswordUserItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\ChangePasswordUserItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\User::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\UserJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\User', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\ChangePasswordUserItemBadRequestException(); + throw new \Gyroscops\Api\Exception\ChangePasswordUserItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\ChangePasswordUserItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\ChangePasswordUserItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\ChangePasswordUserItemNotFoundException(); + throw new \Gyroscops\Api\Exception\ChangePasswordUserItemNotFoundException($response); } } diff --git a/src/Endpoint/ChangeValuesConfigurationItem.php b/src/Endpoint/ChangeValuesConfigurationItem.php index 4f25ec6f..56311237 100644 --- a/src/Endpoint/ChangeValuesConfigurationItem.php +++ b/src/Endpoint/ChangeValuesConfigurationItem.php @@ -14,17 +14,20 @@ class ChangeValuesConfigurationItem extends \Gyroscops\Api\Runtime\Client\BaseEn { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Change the configuration values inside an existing configurations storage. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\ConfigurationChangeConfigurationValueInputJsonld|\Gyroscops\Api\Model\ConfigurationChangeConfigurationValueInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -34,13 +37,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/environment/configuration/{id}/change'); + return str_replace(['{id}'], [$this->id], '/environment/configurations/{id}/change'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\ConfigurationChangeConfigurationValueInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\ConfigurationChangeConfigurationValueInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -54,31 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Configuration|null + * @return \Gyroscops\Api\Model\ConfigurationJsonld|\Gyroscops\Api\Model\Configuration|null * * @throws \Gyroscops\Api\Exception\ChangeValuesConfigurationItemBadRequestException * @throws \Gyroscops\Api\Exception\ChangeValuesConfigurationItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\ChangeValuesConfigurationItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Configuration::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ConfigurationJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Configuration', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\ChangeValuesConfigurationItemBadRequestException(); + throw new \Gyroscops\Api\Exception\ChangeValuesConfigurationItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\ChangeValuesConfigurationItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\ChangeValuesConfigurationItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\ChangeValuesConfigurationItemNotFoundException(); + throw new \Gyroscops\Api\Exception\ChangeValuesConfigurationItemNotFoundException($response); } } diff --git a/src/Endpoint/ChangeValuesSecretItem.php b/src/Endpoint/ChangeValuesSecretItem.php index 0b595517..d2e260c8 100644 --- a/src/Endpoint/ChangeValuesSecretItem.php +++ b/src/Endpoint/ChangeValuesSecretItem.php @@ -14,17 +14,20 @@ class ChangeValuesSecretItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Change the secret values values inside an existing secrets storage. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\SecretChangeSecretValueInputJsonld|\Gyroscops\Api\Model\SecretChangeSecretValueInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -34,13 +37,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/environment/secret/{id}/change'); + return str_replace(['{id}'], [$this->id], '/environment/secrets/{id}/change'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\SecretChangeSecretValueInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\SecretChangeSecretValueInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -54,31 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Secret|null + * @return \Gyroscops\Api\Model\SecretJsonld|\Gyroscops\Api\Model\Secret|null * * @throws \Gyroscops\Api\Exception\ChangeValuesSecretItemBadRequestException * @throws \Gyroscops\Api\Exception\ChangeValuesSecretItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\ChangeValuesSecretItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Secret::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\SecretJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Secret', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\ChangeValuesSecretItemBadRequestException(); + throw new \Gyroscops\Api\Exception\ChangeValuesSecretItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\ChangeValuesSecretItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\ChangeValuesSecretItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\ChangeValuesSecretItemNotFoundException(); + throw new \Gyroscops\Api\Exception\ChangeValuesSecretItemNotFoundException($response); } } diff --git a/src/Endpoint/DeclareExecutionExecutionCollection.php b/src/Endpoint/DeclareExecutionExecutionCollection.php index 6664dd03..47b12845 100644 --- a/src/Endpoint/DeclareExecutionExecutionCollection.php +++ b/src/Endpoint/DeclareExecutionExecutionCollection.php @@ -13,15 +13,18 @@ class DeclareExecutionExecutionCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Declares a pipeline execution. * * @param \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandInputJsonld|\Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct($requestBody = null) + public function __construct($requestBody = null, array $accept = []) { $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -31,13 +34,13 @@ public function getMethod(): string public function getUri(): string { - return '/runtime/execution'; + return '/runtime/executions'; } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -51,25 +54,38 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * + * @return \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandJsonldRead|null + * * @throws \Gyroscops\Api\Exception\DeclareExecutionExecutionCollectionBadRequestException * @throws \Gyroscops\Api\Exception\DeclareExecutionExecutionCollectionUnprocessableEntityException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionDeclarePipelineExecutionCommandJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\DeclareExecutionExecutionCollectionBadRequestException(); + throw new \Gyroscops\Api\Exception\DeclareExecutionExecutionCollectionBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\DeclareExecutionExecutionCollectionUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\DeclareExecutionExecutionCollectionUnprocessableEntityException($response); } } diff --git a/src/Endpoint/DeclarePipelinePipelineCollection.php b/src/Endpoint/DeclarePipelinePipelineCollection.php index ee58bdbd..7f98201b 100644 --- a/src/Endpoint/DeclarePipelinePipelineCollection.php +++ b/src/Endpoint/DeclarePipelinePipelineCollection.php @@ -13,15 +13,18 @@ class DeclarePipelinePipelineCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** - * Declares a docker pipeline. + * Declares a pipeline. * * @param \Gyroscops\Api\Model\PipelineDeclarePipelineCommandInputJsonld|\Gyroscops\Api\Model\PipelineDeclarePipelineCommandInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct($requestBody = null) + public function __construct($requestBody = null, array $accept = []) { $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -31,13 +34,13 @@ public function getMethod(): string public function getUri(): string { - return '/runtime/pipeline'; + return '/runtime/pipelines'; } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\PipelineDeclarePipelineCommandInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\PipelineDeclarePipelineCommandInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -51,25 +54,38 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * + * @return \Gyroscops\Api\Model\PipelineDeclarePipelineCommandJsonldRead|null + * * @throws \Gyroscops\Api\Exception\DeclarePipelinePipelineCollectionBadRequestException * @throws \Gyroscops\Api\Exception\DeclarePipelinePipelineCollectionUnprocessableEntityException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineDeclarePipelineCommandJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\DeclarePipelinePipelineCollectionBadRequestException(); + throw new \Gyroscops\Api\Exception\DeclarePipelinePipelineCollectionBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\DeclarePipelinePipelineCollectionUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\DeclarePipelinePipelineCollectionUnprocessableEntityException($response); } } diff --git a/src/Endpoint/DeclareWorkflowWorkflowCollection.php b/src/Endpoint/DeclareWorkflowWorkflowCollection.php new file mode 100644 index 00000000..342c677c --- /dev/null +++ b/src/Endpoint/DeclareWorkflowWorkflowCollection.php @@ -0,0 +1,96 @@ +body = $requestBody; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/runtime/workflows'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Gyroscops\Api\Model\WorkflowDeclareWorkflowCommandInputJsonld) { + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; + } + if ($this->body instanceof \Gyroscops\Api\Model\WorkflowDeclareWorkflowCommandInput) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + if ($this->body instanceof \Gyroscops\Api\Model\WorkflowDeclareWorkflowCommandInput) { + return [['Content-Type' => ['text/html']], $this->body]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; + } + + /** + * {@inheritdoc} + * + * @return \Gyroscops\Api\Model\WorkflowDeclareWorkflowCommandJsonldRead|null + * + * @throws \Gyroscops\Api\Exception\DeclareWorkflowWorkflowCollectionBadRequestException + * @throws \Gyroscops\Api\Exception\DeclareWorkflowWorkflowCollectionUnprocessableEntityException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkflowDeclareWorkflowCommandJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } + } + if (400 === $status) { + throw new \Gyroscops\Api\Exception\DeclareWorkflowWorkflowCollectionBadRequestException($response); + } + if (422 === $status) { + throw new \Gyroscops\Api\Exception\DeclareWorkflowWorkflowCollectionUnprocessableEntityException($response); + } + } + + public function getAuthenticationScopes(): array + { + return ['apiKey']; + } +} diff --git a/src/Endpoint/DeleteConfigurationItem.php b/src/Endpoint/DeleteConfigurationItem.php index 62c7f44d..bea3c74e 100644 --- a/src/Endpoint/DeleteConfigurationItem.php +++ b/src/Endpoint/DeleteConfigurationItem.php @@ -32,7 +32,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/environment/configuration/{id}'); + return str_replace(['{id}'], [$this->id], '/environment/configurations/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -43,15 +43,19 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * + * @return null + * * @throws \Gyroscops\Api\Exception\DeleteConfigurationItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); if (204 === $status) { return null; } if (404 === $status) { - throw new \Gyroscops\Api\Exception\DeleteConfigurationItemNotFoundException(); + throw new \Gyroscops\Api\Exception\DeleteConfigurationItemNotFoundException($response); } } diff --git a/src/Endpoint/DeleteEnvironmentItem.php b/src/Endpoint/DeleteEnvironmentItem.php index ba5a9d64..26d4c8d0 100644 --- a/src/Endpoint/DeleteEnvironmentItem.php +++ b/src/Endpoint/DeleteEnvironmentItem.php @@ -32,7 +32,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/environment/environment/{id}'); + return str_replace(['{id}'], [$this->id], '/environment/environments/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -43,15 +43,19 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * + * @return null + * * @throws \Gyroscops\Api\Exception\DeleteEnvironmentItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); if (204 === $status) { return null; } if (404 === $status) { - throw new \Gyroscops\Api\Exception\DeleteEnvironmentItemNotFoundException(); + throw new \Gyroscops\Api\Exception\DeleteEnvironmentItemNotFoundException($response); } } diff --git a/src/Endpoint/DeleteOfferItem.php b/src/Endpoint/DeleteOfferItem.php deleted file mode 100644 index b775e290..00000000 --- a/src/Endpoint/DeleteOfferItem.php +++ /dev/null @@ -1,62 +0,0 @@ -id = $id; - } - - public function getMethod(): string - { - return 'DELETE'; - } - - public function getUri(): string - { - return str_replace(['{id}'], [$this->id], '/authentication/offer/{id}'); - } - - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array - { - return [[], null]; - } - - /** - * {@inheritdoc} - * - * @throws \Gyroscops\Api\Exception\DeleteOfferItemNotFoundException - */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) - { - if (204 === $status) { - return null; - } - if (404 === $status) { - throw new \Gyroscops\Api\Exception\DeleteOfferItemNotFoundException(); - } - } - - public function getAuthenticationScopes(): array - { - return ['apiKey']; - } -} diff --git a/src/Endpoint/DeleteOrganizationItem.php b/src/Endpoint/DeleteOrganizationItem.php index 454a17d2..c3aaa392 100644 --- a/src/Endpoint/DeleteOrganizationItem.php +++ b/src/Endpoint/DeleteOrganizationItem.php @@ -32,7 +32,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/authentication/organization/{id}'); + return str_replace(['{id}'], [$this->id], '/authentication/organizations/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -43,15 +43,19 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * + * @return null + * * @throws \Gyroscops\Api\Exception\DeleteOrganizationItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); if (204 === $status) { return null; } if (404 === $status) { - throw new \Gyroscops\Api\Exception\DeleteOrganizationItemNotFoundException(); + throw new \Gyroscops\Api\Exception\DeleteOrganizationItemNotFoundException($response); } } diff --git a/src/Endpoint/DeletePipelinePipelineItem.php b/src/Endpoint/DeletePipelinePipelineItem.php index a22847f5..4c11e5f6 100644 --- a/src/Endpoint/DeletePipelinePipelineItem.php +++ b/src/Endpoint/DeletePipelinePipelineItem.php @@ -32,7 +32,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/pipeline/{id}'); + return str_replace(['{id}'], [$this->id], '/runtime/pipelines/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -43,15 +43,19 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * + * @return null + * * @throws \Gyroscops\Api\Exception\DeletePipelinePipelineItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); if (204 === $status) { return null; } if (404 === $status) { - throw new \Gyroscops\Api\Exception\DeletePipelinePipelineItemNotFoundException(); + throw new \Gyroscops\Api\Exception\DeletePipelinePipelineItemNotFoundException($response); } } diff --git a/src/Endpoint/DeletePipelineStepPipelineItem.php b/src/Endpoint/DeletePipelineStepPipelineItem.php index 34e649c6..82993998 100644 --- a/src/Endpoint/DeletePipelineStepPipelineItem.php +++ b/src/Endpoint/DeletePipelineStepPipelineItem.php @@ -35,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{code}', '{id}'], [$this->code, $this->id], '/runtime/pipeline/{id}/step/{code}'); + return str_replace(['{code}', '{id}'], [$this->code, $this->id], '/runtime/pipelines/{id}/steps/{code}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -46,15 +46,19 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * + * @return null + * * @throws \Gyroscops\Api\Exception\DeletePipelineStepPipelineItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); if (204 === $status) { return null; } if (404 === $status) { - throw new \Gyroscops\Api\Exception\DeletePipelineStepPipelineItemNotFoundException(); + throw new \Gyroscops\Api\Exception\DeletePipelineStepPipelineItemNotFoundException($response); } } diff --git a/src/Endpoint/DeleteReferralCodeItem.php b/src/Endpoint/DeleteReferralCodeItem.php index 644796ad..881ddb15 100644 --- a/src/Endpoint/DeleteReferralCodeItem.php +++ b/src/Endpoint/DeleteReferralCodeItem.php @@ -43,15 +43,19 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * + * @return null + * * @throws \Gyroscops\Api\Exception\DeleteReferralCodeItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); if (204 === $status) { return null; } if (404 === $status) { - throw new \Gyroscops\Api\Exception\DeleteReferralCodeItemNotFoundException(); + throw new \Gyroscops\Api\Exception\DeleteReferralCodeItemNotFoundException($response); } } diff --git a/src/Endpoint/DeleteSecretItem.php b/src/Endpoint/DeleteSecretItem.php index 2e3a1488..503789d2 100644 --- a/src/Endpoint/DeleteSecretItem.php +++ b/src/Endpoint/DeleteSecretItem.php @@ -32,7 +32,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/environment/secret/{id}'); + return str_replace(['{id}'], [$this->id], '/environment/secrets/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -43,15 +43,19 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * + * @return null + * * @throws \Gyroscops\Api\Exception\DeleteSecretItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); if (204 === $status) { return null; } if (404 === $status) { - throw new \Gyroscops\Api\Exception\DeleteSecretItemNotFoundException(); + throw new \Gyroscops\Api\Exception\DeleteSecretItemNotFoundException($response); } } diff --git a/src/Endpoint/DeleteSubscriptionItem.php b/src/Endpoint/DeleteSubscriptionItem.php index b5d1a59c..f0eeedb3 100644 --- a/src/Endpoint/DeleteSubscriptionItem.php +++ b/src/Endpoint/DeleteSubscriptionItem.php @@ -32,7 +32,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/authentication/subscription/{id}'); + return str_replace(['{id}'], [$this->id], '/authentication/subscriptions/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -43,15 +43,19 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * + * @return null + * * @throws \Gyroscops\Api\Exception\DeleteSubscriptionItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); if (204 === $status) { return null; } if (404 === $status) { - throw new \Gyroscops\Api\Exception\DeleteSubscriptionItemNotFoundException(); + throw new \Gyroscops\Api\Exception\DeleteSubscriptionItemNotFoundException($response); } } diff --git a/src/Endpoint/DeleteSubscriptionOfferItem.php b/src/Endpoint/DeleteSubscriptionOfferItem.php new file mode 100644 index 00000000..9955a7c5 --- /dev/null +++ b/src/Endpoint/DeleteSubscriptionOfferItem.php @@ -0,0 +1,66 @@ +id = $id; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return str_replace(['{id}'], [$this->id], '/authentication/subscription-offers/{id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + /** + * {@inheritdoc} + * + * @return null + * + * @throws \Gyroscops\Api\Exception\DeleteSubscriptionOfferItemNotFoundException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (204 === $status) { + return null; + } + if (404 === $status) { + throw new \Gyroscops\Api\Exception\DeleteSubscriptionOfferItemNotFoundException($response); + } + } + + public function getAuthenticationScopes(): array + { + return ['apiKey']; + } +} diff --git a/src/Endpoint/DeleteUserAuthorizationItem.php b/src/Endpoint/DeleteUserAuthorizationItem.php index e67994e4..f050d441 100644 --- a/src/Endpoint/DeleteUserAuthorizationItem.php +++ b/src/Endpoint/DeleteUserAuthorizationItem.php @@ -43,15 +43,19 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * + * @return null + * * @throws \Gyroscops\Api\Exception\DeleteUserAuthorizationItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); if (204 === $status) { return null; } if (404 === $status) { - throw new \Gyroscops\Api\Exception\DeleteUserAuthorizationItemNotFoundException(); + throw new \Gyroscops\Api\Exception\DeleteUserAuthorizationItemNotFoundException($response); } } diff --git a/src/Endpoint/DeleteUserItem.php b/src/Endpoint/DeleteUserItem.php index 41bdaa48..54f4badd 100644 --- a/src/Endpoint/DeleteUserItem.php +++ b/src/Endpoint/DeleteUserItem.php @@ -32,7 +32,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/authentication/user/{id}'); + return str_replace(['{id}'], [$this->id], '/authentication/users/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -43,15 +43,19 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * + * @return null + * * @throws \Gyroscops\Api\Exception\DeleteUserItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); if (204 === $status) { return null; } if (404 === $status) { - throw new \Gyroscops\Api\Exception\DeleteUserItemNotFoundException(); + throw new \Gyroscops\Api\Exception\DeleteUserItemNotFoundException($response); } } diff --git a/src/Endpoint/DeleteVariableFromConfigurationItem.php b/src/Endpoint/DeleteVariableFromConfigurationItem.php index 509b14bc..00c35334 100644 --- a/src/Endpoint/DeleteVariableFromConfigurationItem.php +++ b/src/Endpoint/DeleteVariableFromConfigurationItem.php @@ -43,15 +43,19 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * + * @return null + * * @throws \Gyroscops\Api\Exception\DeleteVariableFromConfigurationItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); if (204 === $status) { return null; } if (404 === $status) { - throw new \Gyroscops\Api\Exception\DeleteVariableFromConfigurationItemNotFoundException(); + throw new \Gyroscops\Api\Exception\DeleteVariableFromConfigurationItemNotFoundException($response); } } diff --git a/src/Endpoint/DeleteVariableFromConstantItem.php b/src/Endpoint/DeleteVariableFromConstantItem.php index 646a70fa..df29a828 100644 --- a/src/Endpoint/DeleteVariableFromConstantItem.php +++ b/src/Endpoint/DeleteVariableFromConstantItem.php @@ -43,15 +43,19 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * + * @return null + * * @throws \Gyroscops\Api\Exception\DeleteVariableFromConstantItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); if (204 === $status) { return null; } if (404 === $status) { - throw new \Gyroscops\Api\Exception\DeleteVariableFromConstantItemNotFoundException(); + throw new \Gyroscops\Api\Exception\DeleteVariableFromConstantItemNotFoundException($response); } } diff --git a/src/Endpoint/DeleteVariableFromSecretItem.php b/src/Endpoint/DeleteVariableFromSecretItem.php index d879a765..46dad218 100644 --- a/src/Endpoint/DeleteVariableFromSecretItem.php +++ b/src/Endpoint/DeleteVariableFromSecretItem.php @@ -43,15 +43,19 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * + * @return null + * * @throws \Gyroscops\Api\Exception\DeleteVariableFromSecretItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); if (204 === $status) { return null; } if (404 === $status) { - throw new \Gyroscops\Api\Exception\DeleteVariableFromSecretItemNotFoundException(); + throw new \Gyroscops\Api\Exception\DeleteVariableFromSecretItemNotFoundException($response); } } diff --git a/src/Endpoint/DeleteWorkspaceItem.php b/src/Endpoint/DeleteWorkspaceItem.php index f2c3a76f..c5f974f3 100644 --- a/src/Endpoint/DeleteWorkspaceItem.php +++ b/src/Endpoint/DeleteWorkspaceItem.php @@ -32,7 +32,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/authentication/workspace/{id}'); + return str_replace(['{id}'], [$this->id], '/authentication/workspaces/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -43,15 +43,19 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * + * @return null + * * @throws \Gyroscops\Api\Exception\DeleteWorkspaceItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); if (204 === $status) { return null; } if (404 === $status) { - throw new \Gyroscops\Api\Exception\DeleteWorkspaceItemNotFoundException(); + throw new \Gyroscops\Api\Exception\DeleteWorkspaceItemNotFoundException($response); } } diff --git a/src/Endpoint/EditConfigurationItem.php b/src/Endpoint/EditConfigurationItem.php index 32a2fb3f..4a39a1a2 100644 --- a/src/Endpoint/EditConfigurationItem.php +++ b/src/Endpoint/EditConfigurationItem.php @@ -14,17 +14,20 @@ class EditConfigurationItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint i { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Replaces the Configuration resource. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\ConfigurationJsonldEdit|\Gyroscops\Api\Model\ConfigurationEdit|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -34,13 +37,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/environment/configuration/{id}'); + return str_replace(['{id}'], [$this->id], '/environment/configurations/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\ConfigurationJsonldEdit) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\ConfigurationEdit) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -54,31 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Configuration|null + * @return \Gyroscops\Api\Model\ConfigurationJsonld|\Gyroscops\Api\Model\Configuration|null * * @throws \Gyroscops\Api\Exception\EditConfigurationItemBadRequestException * @throws \Gyroscops\Api\Exception\EditConfigurationItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\EditConfigurationItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Configuration::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ConfigurationJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Configuration', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\EditConfigurationItemBadRequestException(); + throw new \Gyroscops\Api\Exception\EditConfigurationItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\EditConfigurationItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\EditConfigurationItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\EditConfigurationItemNotFoundException(); + throw new \Gyroscops\Api\Exception\EditConfigurationItemNotFoundException($response); } } diff --git a/src/Endpoint/EditEnvironmentItem.php b/src/Endpoint/EditEnvironmentItem.php index c1ff3f0c..c1bf7ceb 100644 --- a/src/Endpoint/EditEnvironmentItem.php +++ b/src/Endpoint/EditEnvironmentItem.php @@ -14,17 +14,20 @@ class EditEnvironmentItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint imp { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Replaces the Environment resource. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\EnvironmentJsonldWrite|\Gyroscops\Api\Model\EnvironmentWrite|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -34,13 +37,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/environment/environment/{id}'); + return str_replace(['{id}'], [$this->id], '/environment/environments/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\EnvironmentJsonldWrite) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\EnvironmentWrite) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -54,31 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\EnvironmentRead|null + * @return \Gyroscops\Api\Model\EnvironmentJsonldRead|\Gyroscops\Api\Model\EnvironmentRead|null * * @throws \Gyroscops\Api\Exception\EditEnvironmentItemBadRequestException * @throws \Gyroscops\Api\Exception\EditEnvironmentItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\EditEnvironmentItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\EnvironmentRead::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\EnvironmentJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\EnvironmentRead', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\EditEnvironmentItemBadRequestException(); + throw new \Gyroscops\Api\Exception\EditEnvironmentItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\EditEnvironmentItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\EditEnvironmentItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\EditEnvironmentItemNotFoundException(); + throw new \Gyroscops\Api\Exception\EditEnvironmentItemNotFoundException($response); } } diff --git a/src/Endpoint/EditSecretItem.php b/src/Endpoint/EditSecretItem.php index 7bdd42df..3bf1ab32 100644 --- a/src/Endpoint/EditSecretItem.php +++ b/src/Endpoint/EditSecretItem.php @@ -14,17 +14,20 @@ class EditSecretItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implemen { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Replaces the Secret resource. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\SecretJsonldEdit|\Gyroscops\Api\Model\SecretEdit|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -34,13 +37,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/environment/secret/{id}'); + return str_replace(['{id}'], [$this->id], '/environment/secrets/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\SecretJsonldEdit) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\SecretEdit) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -54,31 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Secret|null + * @return \Gyroscops\Api\Model\SecretJsonld|\Gyroscops\Api\Model\Secret|null * * @throws \Gyroscops\Api\Exception\EditSecretItemBadRequestException * @throws \Gyroscops\Api\Exception\EditSecretItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\EditSecretItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Secret::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\SecretJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Secret', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\EditSecretItemBadRequestException(); + throw new \Gyroscops\Api\Exception\EditSecretItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\EditSecretItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\EditSecretItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\EditSecretItemNotFoundException(); + throw new \Gyroscops\Api\Exception\EditSecretItemNotFoundException($response); } } diff --git a/src/Endpoint/EditVariableFromConfigurationItem.php b/src/Endpoint/EditVariableFromConfigurationItem.php index 6e03c55f..eefb55a5 100644 --- a/src/Endpoint/EditVariableFromConfigurationItem.php +++ b/src/Endpoint/EditVariableFromConfigurationItem.php @@ -14,17 +14,20 @@ class EditVariableFromConfigurationItem extends \Gyroscops\Api\Runtime\Client\Ba { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Replaces the VariableFromConfiguration resource. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\VariableFromConfigurationJsonldWrite|\stdClass|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -40,10 +43,10 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\VariableFromConfigurationJsonldWrite) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body, \JSON_THROW_ON_ERROR)]; + return [['Content-Type' => ['application/json']], json_encode($this->body)]; } if ($this->body instanceof \stdClass) { return [['Content-Type' => ['text/html']], $this->body]; @@ -54,31 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\VariableFromConfigurationRead|null + * @return \Gyroscops\Api\Model\VariableFromConfigurationJsonldRead|\Gyroscops\Api\Model\VariableFromConfigurationRead|null * * @throws \Gyroscops\Api\Exception\EditVariableFromConfigurationItemBadRequestException * @throws \Gyroscops\Api\Exception\EditVariableFromConfigurationItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\EditVariableFromConfigurationItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\VariableFromConfigurationRead::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\VariableFromConfigurationJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\VariableFromConfigurationRead', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\EditVariableFromConfigurationItemBadRequestException(); + throw new \Gyroscops\Api\Exception\EditVariableFromConfigurationItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\EditVariableFromConfigurationItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\EditVariableFromConfigurationItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\EditVariableFromConfigurationItemNotFoundException(); + throw new \Gyroscops\Api\Exception\EditVariableFromConfigurationItemNotFoundException($response); } } diff --git a/src/Endpoint/EditVariableFromConstantItem.php b/src/Endpoint/EditVariableFromConstantItem.php index 5373dd53..5f032688 100644 --- a/src/Endpoint/EditVariableFromConstantItem.php +++ b/src/Endpoint/EditVariableFromConstantItem.php @@ -14,17 +14,20 @@ class EditVariableFromConstantItem extends \Gyroscops\Api\Runtime\Client\BaseEnd { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Replaces the VariableFromConstant resource. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\VariableFromConstantJsonldWrite|\stdClass|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -40,10 +43,10 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\VariableFromConstantJsonldWrite) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body, \JSON_THROW_ON_ERROR)]; + return [['Content-Type' => ['application/json']], json_encode($this->body)]; } if ($this->body instanceof \stdClass) { return [['Content-Type' => ['text/html']], $this->body]; @@ -54,31 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\VariableFromConstantRead|null + * @return \Gyroscops\Api\Model\VariableFromConstantJsonldRead|\Gyroscops\Api\Model\VariableFromConstantRead|null * * @throws \Gyroscops\Api\Exception\EditVariableFromConstantItemBadRequestException * @throws \Gyroscops\Api\Exception\EditVariableFromConstantItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\EditVariableFromConstantItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\VariableFromConstantRead::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\VariableFromConstantJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\VariableFromConstantRead', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\EditVariableFromConstantItemBadRequestException(); + throw new \Gyroscops\Api\Exception\EditVariableFromConstantItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\EditVariableFromConstantItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\EditVariableFromConstantItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\EditVariableFromConstantItemNotFoundException(); + throw new \Gyroscops\Api\Exception\EditVariableFromConstantItemNotFoundException($response); } } diff --git a/src/Endpoint/EditVariableFromSecretItem.php b/src/Endpoint/EditVariableFromSecretItem.php index 9e17c49c..b17915f2 100644 --- a/src/Endpoint/EditVariableFromSecretItem.php +++ b/src/Endpoint/EditVariableFromSecretItem.php @@ -14,17 +14,20 @@ class EditVariableFromSecretItem extends \Gyroscops\Api\Runtime\Client\BaseEndpo { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Replaces the VariableFromSecret resource. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\VariableFromSecretJsonldWrite|\stdClass|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -40,10 +43,10 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\VariableFromSecretJsonldWrite) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body, \JSON_THROW_ON_ERROR)]; + return [['Content-Type' => ['application/json']], json_encode($this->body)]; } if ($this->body instanceof \stdClass) { return [['Content-Type' => ['text/html']], $this->body]; @@ -54,31 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\VariableFromSecretRead|null + * @return \Gyroscops\Api\Model\VariableFromSecretJsonldRead|\Gyroscops\Api\Model\VariableFromSecretRead|null * * @throws \Gyroscops\Api\Exception\EditVariableFromSecretItemBadRequestException * @throws \Gyroscops\Api\Exception\EditVariableFromSecretItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\EditVariableFromSecretItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\VariableFromSecretRead::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\VariableFromSecretJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\VariableFromSecretRead', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\EditVariableFromSecretItemBadRequestException(); + throw new \Gyroscops\Api\Exception\EditVariableFromSecretItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\EditVariableFromSecretItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\EditVariableFromSecretItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\EditVariableFromSecretItemNotFoundException(); + throw new \Gyroscops\Api\Exception\EditVariableFromSecretItemNotFoundException($response); } } diff --git a/src/Endpoint/FinishExecutionExecutionItem.php b/src/Endpoint/FinishExecutionExecutionItem.php deleted file mode 100644 index 84293484..00000000 --- a/src/Endpoint/FinishExecutionExecutionItem.php +++ /dev/null @@ -1,87 +0,0 @@ -id = $id; - $this->body = $requestBody; - } - - public function getMethod(): string - { - return 'PUT'; - } - - public function getUri(): string - { - return str_replace(['{id}'], [$this->id], '/runtime/execution/{id}/finish'); - } - - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array - { - if ($this->body instanceof \Gyroscops\Api\Model\ExecutionFinishPipelineExecutionCommandInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; - } - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body, \JSON_THROW_ON_ERROR)]; - } - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['text/html']], $this->body]; - } - - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - /** - * {@inheritdoc} - * - * @throws \Gyroscops\Api\Exception\FinishExecutionExecutionItemBadRequestException - * @throws \Gyroscops\Api\Exception\FinishExecutionExecutionItemUnprocessableEntityException - * @throws \Gyroscops\Api\Exception\FinishExecutionExecutionItemNotFoundException - */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) - { - if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); - } - if (400 === $status) { - throw new \Gyroscops\Api\Exception\FinishExecutionExecutionItemBadRequestException(); - } - if (422 === $status) { - throw new \Gyroscops\Api\Exception\FinishExecutionExecutionItemUnprocessableEntityException(); - } - if (404 === $status) { - throw new \Gyroscops\Api\Exception\FinishExecutionExecutionItemNotFoundException(); - } - } - - public function getAuthenticationScopes(): array - { - return ['apiKey']; - } -} diff --git a/src/Endpoint/GetActionCollection.php b/src/Endpoint/GetActionCollection.php index d1150f21..ec15bb5e 100644 --- a/src/Endpoint/GetActionCollection.php +++ b/src/Endpoint/GetActionCollection.php @@ -13,6 +13,7 @@ class GetActionCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Retrieves the collection of Action resources. @@ -21,10 +22,13 @@ class GetActionCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint imp * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(array $queryParameters = []) + public function __construct(array $queryParameters = [], array $accept = []) { $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -44,7 +48,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -53,7 +61,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -61,12 +69,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ActionRead[]|null + * @return \Gyroscops\Api\Model\RuntimeActionsGetLdjsonResponse200|\Gyroscops\Api\Model\ActionRead[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ActionRead[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\RuntimeActionsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ActionRead[]', 'json'); + } } } diff --git a/src/Endpoint/GetActionItem.php b/src/Endpoint/GetActionItem.php index 9d688eb8..91a3d75b 100644 --- a/src/Endpoint/GetActionItem.php +++ b/src/Endpoint/GetActionItem.php @@ -14,15 +14,18 @@ class GetActionItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implement { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Action resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/action/{id}'); + return str_replace(['{id}'], [$this->id], '/runtime/actions/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ActionRead|null + * @return \Gyroscops\Api\Model\ActionJsonldRead|\Gyroscops\Api\Model\ActionRead|null * * @throws \Gyroscops\Api\Exception\GetActionItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\ActionRead::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ActionJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ActionRead', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetActionItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetActionItemNotFoundException($response); } } diff --git a/src/Endpoint/GetAkeneoInstanceByPimUrlAkeneoInstanceCollection.php b/src/Endpoint/GetAkeneoInstanceByPimUrlAkeneoInstanceCollection.php index c33e43d4..2991a027 100644 --- a/src/Endpoint/GetAkeneoInstanceByPimUrlAkeneoInstanceCollection.php +++ b/src/Endpoint/GetAkeneoInstanceByPimUrlAkeneoInstanceCollection.php @@ -13,6 +13,7 @@ class GetAkeneoInstanceByPimUrlAkeneoInstanceCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Check if an organization exists in the database. @@ -22,10 +23,13 @@ class GetAkeneoInstanceByPimUrlAkeneoInstanceCollection extends \Gyroscops\Api\R * @var string $url * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(array $queryParameters = []) + public function __construct(array $queryParameters = [], array $accept = []) { $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -35,7 +39,7 @@ public function getMethod(): string public function getUri(): string { - return '/gateway/akeneo/instance/from-url'; + return '/gateway/akeneo/instances/from-url'; } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -45,7 +49,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -54,8 +62,8 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['url', 'page']); $optionsResolver->setRequired(['url']); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('url', ['string']); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('url', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -63,12 +71,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\AkeneoInstance[]|null + * @return \Gyroscops\Api\Model\GatewayAkeneoInstancesFromUrlGetLdjsonResponse200|\Gyroscops\Api\Model\AkeneoInstance[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AkeneoInstance[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\GatewayAkeneoInstancesFromUrlGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AkeneoInstance[]', 'json'); + } } } diff --git a/src/Endpoint/GetAkeneoInstanceCollection.php b/src/Endpoint/GetAkeneoInstanceCollection.php index c0fa6395..bc8057ca 100644 --- a/src/Endpoint/GetAkeneoInstanceCollection.php +++ b/src/Endpoint/GetAkeneoInstanceCollection.php @@ -13,6 +13,7 @@ class GetAkeneoInstanceCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Retrieves the collection of AkeneoInstance resources. @@ -21,10 +22,13 @@ class GetAkeneoInstanceCollection extends \Gyroscops\Api\Runtime\Client\BaseEndp * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(array $queryParameters = []) + public function __construct(array $queryParameters = [], array $accept = []) { $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -44,7 +48,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -53,7 +61,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -61,12 +69,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\AkeneoInstance[]|null + * @return \Gyroscops\Api\Model\GatewayAkeneoInstancesGetLdjsonResponse200|\Gyroscops\Api\Model\AkeneoInstance[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AkeneoInstance[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\GatewayAkeneoInstancesGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AkeneoInstance[]', 'json'); + } } } diff --git a/src/Endpoint/GetAkeneoInstanceItem.php b/src/Endpoint/GetAkeneoInstanceItem.php index 5b1d3fb1..42ee2d88 100644 --- a/src/Endpoint/GetAkeneoInstanceItem.php +++ b/src/Endpoint/GetAkeneoInstanceItem.php @@ -14,15 +14,18 @@ class GetAkeneoInstanceItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint i { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a AkeneoInstance resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/gateway/akeneo/instance/{id}'); + return str_replace(['{id}'], [$this->id], '/gateway/akeneo/instances/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\AkeneoInstance|null + * @return \Gyroscops\Api\Model\AkeneoInstanceJsonld|\Gyroscops\Api\Model\AkeneoInstance|null * * @throws \Gyroscops\Api\Exception\GetAkeneoInstanceItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\AkeneoInstance::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AkeneoInstanceJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AkeneoInstance', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetAkeneoInstanceItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetAkeneoInstanceItemNotFoundException($response); } } diff --git a/src/Endpoint/GetAkeneoInstanceOauthAkeneoInstanceCollection.php b/src/Endpoint/GetAkeneoInstanceOauthAkeneoInstanceCollection.php index abc9b6b7..2dfd16c4 100644 --- a/src/Endpoint/GetAkeneoInstanceOauthAkeneoInstanceCollection.php +++ b/src/Endpoint/GetAkeneoInstanceOauthAkeneoInstanceCollection.php @@ -13,6 +13,7 @@ class GetAkeneoInstanceOauthAkeneoInstanceCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Check if an organization exists in the database. @@ -22,10 +23,13 @@ class GetAkeneoInstanceOauthAkeneoInstanceCollection extends \Gyroscops\Api\Runt * @var string $url * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(array $queryParameters = []) + public function __construct(array $queryParameters = [], array $accept = []) { $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -35,7 +39,7 @@ public function getMethod(): string public function getUri(): string { - return '/gateway/akeneo/instance/oauth-state'; + return '/gateway/akeneo/instances/oauth-state'; } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -45,7 +49,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -54,8 +62,8 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['url', 'page']); $optionsResolver->setRequired(['url']); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('url', ['string']); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('url', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -63,12 +71,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\AkeneoInstance[]|null + * @return \Gyroscops\Api\Model\GatewayAkeneoInstancesOauthStateGetLdjsonResponse200|\Gyroscops\Api\Model\AkeneoInstance[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AkeneoInstance[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\GatewayAkeneoInstancesOauthStateGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AkeneoInstance[]', 'json'); + } } } diff --git a/src/Endpoint/GetAkeneoLinkedAccountAkeneoLinkedAccountCollection.php b/src/Endpoint/GetAkeneoLinkedAccountAkeneoLinkedAccountCollection.php index 0096620b..b41ebf5e 100644 --- a/src/Endpoint/GetAkeneoLinkedAccountAkeneoLinkedAccountCollection.php +++ b/src/Endpoint/GetAkeneoLinkedAccountAkeneoLinkedAccountCollection.php @@ -14,6 +14,7 @@ class GetAkeneoLinkedAccountAkeneoLinkedAccountCollection extends \Gyroscops\Api { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $akeneoUserId; + protected $accept; /** * Check if an akeneo user exists in the database. @@ -22,11 +23,14 @@ class GetAkeneoLinkedAccountAkeneoLinkedAccountCollection extends \Gyroscops\Api * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $akeneoUserId, array $queryParameters = []) + public function __construct(string $akeneoUserId, array $queryParameters = [], array $accept = []) { $this->akeneoUserId = $akeneoUserId; $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -46,7 +50,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -55,7 +63,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -63,12 +71,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\AkeneoLinkedAccount[]|null + * @return \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200|\Gyroscops\Api\Model\AkeneoLinkedAccount[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AkeneoLinkedAccount[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AkeneoLinkedAccount[]', 'json'); + } } } diff --git a/src/Endpoint/GetAkeneoLinkedAccountCollection.php b/src/Endpoint/GetAkeneoLinkedAccountCollection.php index 3c7fe751..cb80b632 100644 --- a/src/Endpoint/GetAkeneoLinkedAccountCollection.php +++ b/src/Endpoint/GetAkeneoLinkedAccountCollection.php @@ -13,6 +13,7 @@ class GetAkeneoLinkedAccountCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Retrieves the collection of AkeneoLinkedAccount resources. @@ -21,10 +22,13 @@ class GetAkeneoLinkedAccountCollection extends \Gyroscops\Api\Runtime\Client\Bas * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(array $queryParameters = []) + public function __construct(array $queryParameters = [], array $accept = []) { $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -44,7 +48,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -53,7 +61,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -61,12 +69,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\AkeneoLinkedAccount[]|null + * @return \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetLdjsonResponse200|\Gyroscops\Api\Model\AkeneoLinkedAccount[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AkeneoLinkedAccount[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\GatewayAkeneoLinkedAccountsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AkeneoLinkedAccount[]', 'json'); + } } } diff --git a/src/Endpoint/GetAkeneoLinkedAccountItem.php b/src/Endpoint/GetAkeneoLinkedAccountItem.php index 7461db5a..4c0f1e60 100644 --- a/src/Endpoint/GetAkeneoLinkedAccountItem.php +++ b/src/Endpoint/GetAkeneoLinkedAccountItem.php @@ -14,15 +14,18 @@ class GetAkeneoLinkedAccountItem extends \Gyroscops\Api\Runtime\Client\BaseEndpo { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a AkeneoLinkedAccount resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\AkeneoLinkedAccount|null + * @return \Gyroscops\Api\Model\AkeneoLinkedAccountJsonld|\Gyroscops\Api\Model\AkeneoLinkedAccount|null * * @throws \Gyroscops\Api\Exception\GetAkeneoLinkedAccountItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\AkeneoLinkedAccount::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AkeneoLinkedAccountJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AkeneoLinkedAccount', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetAkeneoLinkedAccountItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetAkeneoLinkedAccountItemNotFoundException($response); } } diff --git a/src/Endpoint/GetAkeneoOauthTokenCollection.php b/src/Endpoint/GetAkeneoOauthTokenCollection.php index 1f292efe..92dd787f 100644 --- a/src/Endpoint/GetAkeneoOauthTokenCollection.php +++ b/src/Endpoint/GetAkeneoOauthTokenCollection.php @@ -13,6 +13,7 @@ class GetAkeneoOauthTokenCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Retrieves the collection of AkeneoOauthToken resources. @@ -21,10 +22,13 @@ class GetAkeneoOauthTokenCollection extends \Gyroscops\Api\Runtime\Client\BaseEn * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(array $queryParameters = []) + public function __construct(array $queryParameters = [], array $accept = []) { $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -44,7 +48,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -53,7 +61,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -61,12 +69,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\AkeneoOauthTokenRead[]|null + * @return \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetLdjsonResponse200|\Gyroscops\Api\Model\AkeneoOauthTokenRead[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AkeneoOauthTokenRead[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthStatesGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AkeneoOauthTokenRead[]', 'json'); + } } } diff --git a/src/Endpoint/GetAkeneoOauthTokenItem.php b/src/Endpoint/GetAkeneoOauthTokenItem.php index 0f391914..f0818d25 100644 --- a/src/Endpoint/GetAkeneoOauthTokenItem.php +++ b/src/Endpoint/GetAkeneoOauthTokenItem.php @@ -14,15 +14,18 @@ class GetAkeneoOauthTokenItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a AkeneoOauthToken resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/gateway/akeneo/oauth/state/{id}'); + return str_replace(['{id}'], [$this->id], '/gateway/akeneo/oauth/akeneo-oauth-tokens/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\AkeneoOauthTokenRead|null + * @return \Gyroscops\Api\Model\AkeneoOauthTokenJsonldRead|\Gyroscops\Api\Model\AkeneoOauthTokenRead|null * * @throws \Gyroscops\Api\Exception\GetAkeneoOauthTokenItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\AkeneoOauthTokenRead::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AkeneoOauthTokenJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AkeneoOauthTokenRead', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetAkeneoOauthTokenItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetAkeneoOauthTokenItemNotFoundException($response); } } diff --git a/src/Endpoint/GetCompilationCollection.php b/src/Endpoint/GetCompilationCollection.php index 7dbb4f67..a1beda48 100644 --- a/src/Endpoint/GetCompilationCollection.php +++ b/src/Endpoint/GetCompilationCollection.php @@ -13,6 +13,7 @@ class GetCompilationCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Retrieves the collection of Compilation resources. @@ -21,10 +22,13 @@ class GetCompilationCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoin * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(array $queryParameters = []) + public function __construct(array $queryParameters = [], array $accept = []) { $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -44,7 +48,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -53,7 +61,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -61,12 +69,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Compilation[]|null + * @return \Gyroscops\Api\Model\RuntimeCompilationsGetLdjsonResponse200|\Gyroscops\Api\Model\Compilation[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Compilation[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\RuntimeCompilationsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Compilation[]', 'json'); + } } } diff --git a/src/Endpoint/GetCompilationItem.php b/src/Endpoint/GetCompilationItem.php index 5322be30..1acec417 100644 --- a/src/Endpoint/GetCompilationItem.php +++ b/src/Endpoint/GetCompilationItem.php @@ -14,15 +14,18 @@ class GetCompilationItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint impl { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Compilation resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/compilation/{id}'); + return str_replace(['{id}'], [$this->id], '/runtime/compilations/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Compilation|null + * @return \Gyroscops\Api\Model\CompilationJsonld|\Gyroscops\Api\Model\Compilation|null * * @throws \Gyroscops\Api\Exception\GetCompilationItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Compilation::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\CompilationJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Compilation', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetCompilationItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetCompilationItemNotFoundException($response); } } diff --git a/src/Endpoint/GetConfigurationCollection.php b/src/Endpoint/GetConfigurationCollection.php index b88fef77..62d95473 100644 --- a/src/Endpoint/GetConfigurationCollection.php +++ b/src/Endpoint/GetConfigurationCollection.php @@ -13,6 +13,7 @@ class GetConfigurationCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Retrieves the collection of Configuration resources. @@ -21,10 +22,13 @@ class GetConfigurationCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpo * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(array $queryParameters = []) + public function __construct(array $queryParameters = [], array $accept = []) { $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -44,7 +48,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -53,7 +61,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -61,12 +69,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Configuration[]|null + * @return \Gyroscops\Api\Model\EnvironmentConfigurationsGetLdjsonResponse200|\Gyroscops\Api\Model\Configuration[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Configuration[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\EnvironmentConfigurationsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Configuration[]', 'json'); + } } } diff --git a/src/Endpoint/GetConfigurationItem.php b/src/Endpoint/GetConfigurationItem.php index bbeeacea..ddc5762f 100644 --- a/src/Endpoint/GetConfigurationItem.php +++ b/src/Endpoint/GetConfigurationItem.php @@ -14,15 +14,18 @@ class GetConfigurationItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint im { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Configuration resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/environment/configuration/{id}'); + return str_replace(['{id}'], [$this->id], '/environment/configurations/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Configuration|null + * @return \Gyroscops\Api\Model\ConfigurationJsonld|\Gyroscops\Api\Model\Configuration|null * * @throws \Gyroscops\Api\Exception\GetConfigurationItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Configuration::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ConfigurationJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Configuration', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetConfigurationItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetConfigurationItemNotFoundException($response); } } diff --git a/src/Endpoint/GetEnvironmentCollection.php b/src/Endpoint/GetEnvironmentCollection.php index fbf66d15..1ddd102f 100644 --- a/src/Endpoint/GetEnvironmentCollection.php +++ b/src/Endpoint/GetEnvironmentCollection.php @@ -13,6 +13,7 @@ class GetEnvironmentCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Retrieves the collection of Environment resources. @@ -21,10 +22,13 @@ class GetEnvironmentCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoin * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(array $queryParameters = []) + public function __construct(array $queryParameters = [], array $accept = []) { $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -44,7 +48,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -53,7 +61,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -61,12 +69,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\EnvironmentRead[]|null + * @return \Gyroscops\Api\Model\EnvironmentEnvironmentsGetLdjsonResponse200|\Gyroscops\Api\Model\EnvironmentRead[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\EnvironmentRead[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\EnvironmentEnvironmentsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\EnvironmentRead[]', 'json'); + } } } diff --git a/src/Endpoint/GetEnvironmentItem.php b/src/Endpoint/GetEnvironmentItem.php index 131b7ae9..08310e00 100644 --- a/src/Endpoint/GetEnvironmentItem.php +++ b/src/Endpoint/GetEnvironmentItem.php @@ -14,15 +14,18 @@ class GetEnvironmentItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint impl { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Environment resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/environment/environment/{id}'); + return str_replace(['{id}'], [$this->id], '/environment/environments/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\EnvironmentRead|null + * @return \Gyroscops\Api\Model\EnvironmentJsonldRead|\Gyroscops\Api\Model\EnvironmentRead|null * * @throws \Gyroscops\Api\Exception\GetEnvironmentItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\EnvironmentRead::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\EnvironmentJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\EnvironmentRead', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetEnvironmentItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetEnvironmentItemNotFoundException($response); } } diff --git a/src/Endpoint/GetExecutionActionItem.php b/src/Endpoint/GetExecutionActionItem.php index 90174355..31c5abbb 100644 --- a/src/Endpoint/GetExecutionActionItem.php +++ b/src/Endpoint/GetExecutionActionItem.php @@ -14,15 +14,18 @@ class GetExecutionActionItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a ExecutionAction resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/execution/action/{id}'); + return str_replace(['{id}'], [$this->id], '/runtime/executions/execution-actions/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ExecutionAction|null + * @return \Gyroscops\Api\Model\ExecutionActionJsonld|\Gyroscops\Api\Model\ExecutionAction|null * * @throws \Gyroscops\Api\Exception\GetExecutionActionItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionAction::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionActionJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionAction', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetExecutionActionItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetExecutionActionItemNotFoundException($response); } } diff --git a/src/Endpoint/GetExecutionActionLogsExecutionWorkflowItem.php b/src/Endpoint/GetExecutionActionLogsExecutionWorkflowItem.php new file mode 100644 index 00000000..74d0e02d --- /dev/null +++ b/src/Endpoint/GetExecutionActionLogsExecutionWorkflowItem.php @@ -0,0 +1,86 @@ +jobCode = $jobCode; + $this->id = $id; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{jobCode}', '{id}'], [$this->jobCode, $this->id], '/runtime/executions/runtime/executions/workflows/{id}/pipelines/{jobCode}/steps/{stepCode}/logs'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; + } + + /** + * {@inheritdoc} + * + * @return \Gyroscops\Api\Model\ExecutionWorkflowJsonld|\Gyroscops\Api\Model\ExecutionWorkflow|null + * + * @throws \Gyroscops\Api\Exception\GetExecutionActionLogsExecutionWorkflowItemNotFoundException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflowJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflow', 'json'); + } + } + if (404 === $status) { + throw new \Gyroscops\Api\Exception\GetExecutionActionLogsExecutionWorkflowItemNotFoundException($response); + } + } + + public function getAuthenticationScopes(): array + { + return ['apiKey']; + } +} diff --git a/src/Endpoint/GetExecutionCollection.php b/src/Endpoint/GetExecutionCollection.php index be5d50a6..f12519c0 100644 --- a/src/Endpoint/GetExecutionCollection.php +++ b/src/Endpoint/GetExecutionCollection.php @@ -13,6 +13,7 @@ class GetExecutionCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Retrieves the collection of Execution resources. @@ -21,10 +22,13 @@ class GetExecutionCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(array $queryParameters = []) + public function __construct(array $queryParameters = [], array $accept = []) { $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -44,7 +48,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -53,7 +61,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -61,12 +69,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ExecutionRead[]|null + * @return \Gyroscops\Api\Model\RuntimeExecutionsGetLdjsonResponse200|\Gyroscops\Api\Model\ExecutionRead[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionRead[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\RuntimeExecutionsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionRead[]', 'json'); + } } } diff --git a/src/Endpoint/GetExecutionItem.php b/src/Endpoint/GetExecutionItem.php index 822e0e0c..18c68a1a 100644 --- a/src/Endpoint/GetExecutionItem.php +++ b/src/Endpoint/GetExecutionItem.php @@ -14,15 +14,18 @@ class GetExecutionItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implem { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Execution resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/execution/{id}'); + return str_replace(['{id}'], [$this->id], '/runtime/executions/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ExecutionRead|null + * @return \Gyroscops\Api\Model\ExecutionJsonldRead|\Gyroscops\Api\Model\ExecutionRead|null * * @throws \Gyroscops\Api\Exception\GetExecutionItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionRead::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionRead', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetExecutionItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetExecutionItemNotFoundException($response); } } diff --git a/src/Endpoint/GetExecutionLogsExecutionPipelineItem.php b/src/Endpoint/GetExecutionLogsExecutionPipelineItem.php new file mode 100644 index 00000000..b5e07d85 --- /dev/null +++ b/src/Endpoint/GetExecutionLogsExecutionPipelineItem.php @@ -0,0 +1,86 @@ +stepCode = $stepCode; + $this->id = $id; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{stepCode}', '{id}'], [$this->stepCode, $this->id], '/runtime/executions/runtime/executions/pipelines/{id}/steps/{stepCode}/logs'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; + } + + /** + * {@inheritdoc} + * + * @return \Gyroscops\Api\Model\ExecutionPipelineJsonld|\Gyroscops\Api\Model\ExecutionPipeline|null + * + * @throws \Gyroscops\Api\Exception\GetExecutionLogsExecutionPipelineItemNotFoundException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipelineJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipeline', 'json'); + } + } + if (404 === $status) { + throw new \Gyroscops\Api\Exception\GetExecutionLogsExecutionPipelineItemNotFoundException($response); + } + } + + public function getAuthenticationScopes(): array + { + return ['apiKey']; + } +} diff --git a/src/Endpoint/GetExecutionPipelineCollection.php b/src/Endpoint/GetExecutionPipelineCollection.php index 914fda3a..6525314b 100644 --- a/src/Endpoint/GetExecutionPipelineCollection.php +++ b/src/Endpoint/GetExecutionPipelineCollection.php @@ -13,6 +13,7 @@ class GetExecutionPipelineCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Retrieves the collection of ExecutionPipeline resources. @@ -21,10 +22,13 @@ class GetExecutionPipelineCollection extends \Gyroscops\Api\Runtime\Client\BaseE * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(array $queryParameters = []) + public function __construct(array $queryParameters = [], array $accept = []) { $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -34,7 +38,7 @@ public function getMethod(): string public function getUri(): string { - return '/runtime/execution/execution-pipelines'; + return '/runtime/executions/pipelines'; } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -44,7 +48,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -53,7 +61,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -61,12 +69,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ExecutionPipeline[]|null + * @return \Gyroscops\Api\Model\RuntimeExecutionsPipelinesGetLdjsonResponse200|\Gyroscops\Api\Model\ExecutionPipeline[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipeline[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\RuntimeExecutionsPipelinesGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipeline[]', 'json'); + } } } diff --git a/src/Endpoint/GetExecutionPipelineItem.php b/src/Endpoint/GetExecutionPipelineItem.php index 31ca6e2d..00f9e89b 100644 --- a/src/Endpoint/GetExecutionPipelineItem.php +++ b/src/Endpoint/GetExecutionPipelineItem.php @@ -14,15 +14,18 @@ class GetExecutionPipelineItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoin { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a ExecutionPipeline resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/execution/pipeline/{id}'); + return str_replace(['{id}'], [$this->id], '/runtime/executions/execution-pipelines/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ExecutionPipeline|null + * @return \Gyroscops\Api\Model\ExecutionPipelineJsonld|\Gyroscops\Api\Model\ExecutionPipeline|null * * @throws \Gyroscops\Api\Exception\GetExecutionPipelineItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionPipeline::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipelineJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipeline', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetExecutionPipelineItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetExecutionPipelineItemNotFoundException($response); } } diff --git a/src/Endpoint/GetExecutionPipelineJobCollection.php b/src/Endpoint/GetExecutionPipelineJobCollection.php index 7c9087c3..27ed6352 100644 --- a/src/Endpoint/GetExecutionPipelineJobCollection.php +++ b/src/Endpoint/GetExecutionPipelineJobCollection.php @@ -13,6 +13,7 @@ class GetExecutionPipelineJobCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Retrieves the collection of ExecutionPipelineJob resources. @@ -21,10 +22,13 @@ class GetExecutionPipelineJobCollection extends \Gyroscops\Api\Runtime\Client\Ba * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(array $queryParameters = []) + public function __construct(array $queryParameters = [], array $accept = []) { $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -44,7 +48,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -53,7 +61,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -61,12 +69,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ExecutionPipelineJob[]|null + * @return \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetLdjsonResponse200|\Gyroscops\Api\Model\ExecutionPipelineJob[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipelineJob[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\RuntimeExecutionPipelineJobsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipelineJob[]', 'json'); + } } } diff --git a/src/Endpoint/GetExecutionPipelineJobItem.php b/src/Endpoint/GetExecutionPipelineJobItem.php index 2816f2c5..5d67f6fd 100644 --- a/src/Endpoint/GetExecutionPipelineJobItem.php +++ b/src/Endpoint/GetExecutionPipelineJobItem.php @@ -14,15 +14,18 @@ class GetExecutionPipelineJobItem extends \Gyroscops\Api\Runtime\Client\BaseEndp { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a ExecutionPipelineJob resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/execution-pipeline-job/{id}'); + return str_replace(['{id}'], [$this->id], '/runtime/executions/pipelines/jobs/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ExecutionPipelineJob|null + * @return \Gyroscops\Api\Model\ExecutionPipelineJobJsonld|\Gyroscops\Api\Model\ExecutionPipelineJob|null * * @throws \Gyroscops\Api\Exception\GetExecutionPipelineJobItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionPipelineJob::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipelineJobJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipelineJob', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetExecutionPipelineJobItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetExecutionPipelineJobItemNotFoundException($response); } } diff --git a/src/Endpoint/GetExecutionPipelineRejectsExecutionWorkflowItem.php b/src/Endpoint/GetExecutionPipelineRejectsExecutionWorkflowItem.php new file mode 100644 index 00000000..8359107c --- /dev/null +++ b/src/Endpoint/GetExecutionPipelineRejectsExecutionWorkflowItem.php @@ -0,0 +1,89 @@ +jobCode = $jobCode; + $this->stepCode = $stepCode; + $this->id = $id; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{jobCode}', '{stepCode}', '{id}'], [$this->jobCode, $this->stepCode, $this->id], '/runtime/executions/runtime/executions/workflows/{id}/pipelines/{jobCode}/steps/{stepCode}/rejects'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; + } + + /** + * {@inheritdoc} + * + * @return \Gyroscops\Api\Model\ExecutionWorkflowJsonld|\Gyroscops\Api\Model\ExecutionWorkflow|null + * + * @throws \Gyroscops\Api\Exception\GetExecutionPipelineRejectsExecutionWorkflowItemNotFoundException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflowJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflow', 'json'); + } + } + if (404 === $status) { + throw new \Gyroscops\Api\Exception\GetExecutionPipelineRejectsExecutionWorkflowItemNotFoundException($response); + } + } + + public function getAuthenticationScopes(): array + { + return ['apiKey']; + } +} diff --git a/src/Endpoint/GetExecutionPipelineStepItem.php b/src/Endpoint/GetExecutionPipelineStepItem.php index 4c81c8be..b6ede9ce 100644 --- a/src/Endpoint/GetExecutionPipelineStepItem.php +++ b/src/Endpoint/GetExecutionPipelineStepItem.php @@ -14,15 +14,18 @@ class GetExecutionPipelineStepItem extends \Gyroscops\Api\Runtime\Client\BaseEnd { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a ExecutionPipelineStep resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/execution/pipeline/step/{id}'); + return str_replace(['{id}'], [$this->id], '/runtime/executions/pipelines/execution-pipeline-steps/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ExecutionPipelineStep|null + * @return \Gyroscops\Api\Model\ExecutionPipelineStepJsonld|\Gyroscops\Api\Model\ExecutionPipelineStep|null * * @throws \Gyroscops\Api\Exception\GetExecutionPipelineStepItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionPipelineStep::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipelineStepJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipelineStep', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetExecutionPipelineStepItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetExecutionPipelineStepItemNotFoundException($response); } } diff --git a/src/Endpoint/GetExecutionRejectsExecutionPipelineItem.php b/src/Endpoint/GetExecutionRejectsExecutionPipelineItem.php new file mode 100644 index 00000000..e0ac47a5 --- /dev/null +++ b/src/Endpoint/GetExecutionRejectsExecutionPipelineItem.php @@ -0,0 +1,86 @@ +stepCode = $stepCode; + $this->id = $id; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{stepCode}', '{id}'], [$this->stepCode, $this->id], '/runtime/executions/runtime/executions/pipelines/{id}/steps/{stepCode}/rejects'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; + } + + /** + * {@inheritdoc} + * + * @return \Gyroscops\Api\Model\ExecutionPipelineJsonld|\Gyroscops\Api\Model\ExecutionPipeline|null + * + * @throws \Gyroscops\Api\Exception\GetExecutionRejectsExecutionPipelineItemNotFoundException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipelineJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionPipeline', 'json'); + } + } + if (404 === $status) { + throw new \Gyroscops\Api\Exception\GetExecutionRejectsExecutionPipelineItemNotFoundException($response); + } + } + + public function getAuthenticationScopes(): array + { + return ['apiKey']; + } +} diff --git a/src/Endpoint/GetExecutionWorkflowCollection.php b/src/Endpoint/GetExecutionWorkflowCollection.php index 4c1173ba..ed9487f9 100644 --- a/src/Endpoint/GetExecutionWorkflowCollection.php +++ b/src/Endpoint/GetExecutionWorkflowCollection.php @@ -13,6 +13,7 @@ class GetExecutionWorkflowCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Retrieves the collection of ExecutionWorkflow resources. @@ -21,10 +22,13 @@ class GetExecutionWorkflowCollection extends \Gyroscops\Api\Runtime\Client\BaseE * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(array $queryParameters = []) + public function __construct(array $queryParameters = [], array $accept = []) { $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -34,7 +38,7 @@ public function getMethod(): string public function getUri(): string { - return '/runtime/execution/execution-workflows'; + return '/runtime/executions/workflows'; } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -44,7 +48,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -53,7 +61,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -61,12 +69,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ExecutionWorkflow[]|null + * @return \Gyroscops\Api\Model\RuntimeExecutionsWorkflowsGetLdjsonResponse200|\Gyroscops\Api\Model\ExecutionWorkflow[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflow[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflow[]', 'json'); + } } } diff --git a/src/Endpoint/GetExecutionWorkflowItem.php b/src/Endpoint/GetExecutionWorkflowItem.php index fa916826..4a2573b1 100644 --- a/src/Endpoint/GetExecutionWorkflowItem.php +++ b/src/Endpoint/GetExecutionWorkflowItem.php @@ -14,15 +14,18 @@ class GetExecutionWorkflowItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoin { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a ExecutionWorkflow resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/execution/workflow/{id}'); + return str_replace(['{id}'], [$this->id], '/runtime/executions/execution-workflows/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ExecutionWorkflow|null + * @return \Gyroscops\Api\Model\ExecutionWorkflowJsonld|\Gyroscops\Api\Model\ExecutionWorkflow|null * * @throws \Gyroscops\Api\Exception\GetExecutionWorkflowItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionWorkflow::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflowJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflow', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetExecutionWorkflowItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetExecutionWorkflowItemNotFoundException($response); } } diff --git a/src/Endpoint/GetExecutionWorkflowJobActionItem.php b/src/Endpoint/GetExecutionWorkflowJobActionItem.php index 617cd812..c8b4c977 100644 --- a/src/Endpoint/GetExecutionWorkflowJobActionItem.php +++ b/src/Endpoint/GetExecutionWorkflowJobActionItem.php @@ -14,15 +14,18 @@ class GetExecutionWorkflowJobActionItem extends \Gyroscops\Api\Runtime\Client\Ba { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a ExecutionWorkflowJobAction resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/execution/workflow/action/{id}'); + return str_replace(['{id}'], [$this->id], '/runtime/executions/workflows/execution-workflow-job-actions/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ExecutionWorkflowJobAction|null + * @return \Gyroscops\Api\Model\ExecutionWorkflowJobActionJsonld|\Gyroscops\Api\Model\ExecutionWorkflowJobAction|null * * @throws \Gyroscops\Api\Exception\GetExecutionWorkflowJobActionItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionWorkflowJobAction::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflowJobActionJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflowJobAction', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetExecutionWorkflowJobActionItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetExecutionWorkflowJobActionItemNotFoundException($response); } } diff --git a/src/Endpoint/GetExecutionWorkflowJobCollection.php b/src/Endpoint/GetExecutionWorkflowJobCollection.php index 62b8b567..808764ce 100644 --- a/src/Endpoint/GetExecutionWorkflowJobCollection.php +++ b/src/Endpoint/GetExecutionWorkflowJobCollection.php @@ -13,6 +13,7 @@ class GetExecutionWorkflowJobCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Retrieves the collection of ExecutionWorkflowJob resources. @@ -21,10 +22,13 @@ class GetExecutionWorkflowJobCollection extends \Gyroscops\Api\Runtime\Client\Ba * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(array $queryParameters = []) + public function __construct(array $queryParameters = [], array $accept = []) { $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -34,7 +38,7 @@ public function getMethod(): string public function getUri(): string { - return '/runtime/execution/workflow/execution-workflow-jobs'; + return '/runtime/executions/workflows/jobs'; } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -44,7 +48,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -53,7 +61,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -61,12 +69,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ExecutionWorkflowJob[]|null + * @return \Gyroscops\Api\Model\RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200|\Gyroscops\Api\Model\ExecutionWorkflowJob[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflowJob[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflowJob[]', 'json'); + } } } diff --git a/src/Endpoint/GetExecutionWorkflowJobItem.php b/src/Endpoint/GetExecutionWorkflowJobItem.php index 26359f5f..7764af31 100644 --- a/src/Endpoint/GetExecutionWorkflowJobItem.php +++ b/src/Endpoint/GetExecutionWorkflowJobItem.php @@ -14,15 +14,18 @@ class GetExecutionWorkflowJobItem extends \Gyroscops\Api\Runtime\Client\BaseEndp { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a ExecutionWorkflowJob resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/execution/workflow/job/{id}'); + return str_replace(['{id}'], [$this->id], '/runtime/executions/workflows/execution-workflow-jobs/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ExecutionWorkflowJob|null + * @return \Gyroscops\Api\Model\ExecutionWorkflowJobJsonld|\Gyroscops\Api\Model\ExecutionWorkflowJob|null * * @throws \Gyroscops\Api\Exception\GetExecutionWorkflowJobItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\ExecutionWorkflowJob::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflowJobJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflowJob', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetExecutionWorkflowJobItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetExecutionWorkflowJobItemNotFoundException($response); } } diff --git a/src/Endpoint/GetForgotPassword.php b/src/Endpoint/GetForgotPassword.php index 78b11c76..ffc06b22 100644 --- a/src/Endpoint/GetForgotPassword.php +++ b/src/Endpoint/GetForgotPassword.php @@ -43,15 +43,19 @@ public function getExtraHeaders(): array /** * {@inheritdoc} * + * @return null + * * @throws \Gyroscops\Api\Exception\GetForgotPasswordNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return json_decode($body); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetForgotPasswordNotFoundException(); + throw new \Gyroscops\Api\Exception\GetForgotPasswordNotFoundException($response); } } diff --git a/src/Endpoint/GetOfferCollection.php b/src/Endpoint/GetOfferCollection.php deleted file mode 100644 index 08e4a643..00000000 --- a/src/Endpoint/GetOfferCollection.php +++ /dev/null @@ -1,77 +0,0 @@ -queryParameters = $queryParameters; - } - - public function getMethod(): string - { - return 'GET'; - } - - public function getUri(): string - { - return '/authentication/offers'; - } - - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array - { - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver - { - $optionsResolver = parent::getQueryOptionsResolver(); - $optionsResolver->setDefined(['page']); - $optionsResolver->setRequired([]); - $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); - - return $optionsResolver; - } - - /** - * {@inheritdoc} - * - * @return \Gyroscops\Api\Model\Offer[]|null - */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) - { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Offer[]', 'json'); - } - } - - public function getAuthenticationScopes(): array - { - return ['apiKey']; - } -} diff --git a/src/Endpoint/GetOfferItem.php b/src/Endpoint/GetOfferItem.php deleted file mode 100644 index 1613f4e0..00000000 --- a/src/Endpoint/GetOfferItem.php +++ /dev/null @@ -1,69 +0,0 @@ -id = $id; - } - - public function getMethod(): string - { - return 'GET'; - } - - public function getUri(): string - { - return str_replace(['{id}'], [$this->id], '/authentication/offer/{id}'); - } - - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array - { - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - /** - * {@inheritdoc} - * - * @return \Gyroscops\Api\Model\Offer|null - * - * @throws \Gyroscops\Api\Exception\GetOfferItemNotFoundException - */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) - { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Offer::class, 'json'); - } - if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetOfferItemNotFoundException(); - } - } - - public function getAuthenticationScopes(): array - { - return ['apiKey']; - } -} diff --git a/src/Endpoint/GetOnPremiseRequestCollection.php b/src/Endpoint/GetOnPremiseRequestCollection.php index f6c4e021..26abc3f7 100644 --- a/src/Endpoint/GetOnPremiseRequestCollection.php +++ b/src/Endpoint/GetOnPremiseRequestCollection.php @@ -13,6 +13,7 @@ class GetOnPremiseRequestCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Retrieves the collection of OnPremiseRequest resources. @@ -21,10 +22,13 @@ class GetOnPremiseRequestCollection extends \Gyroscops\Api\Runtime\Client\BaseEn * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(array $queryParameters = []) + public function __construct(array $queryParameters = [], array $accept = []) { $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -44,7 +48,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -53,7 +61,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -61,12 +69,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestRead[]|null + * @return \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetLdjsonResponse200|\Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestRead[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\OnPremiseRequestOnPremiseRequestRead[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ReferralOnPremiseRequestsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\OnPremiseRequestOnPremiseRequestRead[]', 'json'); + } } } diff --git a/src/Endpoint/GetOnPremiseRequestItem.php b/src/Endpoint/GetOnPremiseRequestItem.php index ce98b09b..947f8535 100644 --- a/src/Endpoint/GetOnPremiseRequestItem.php +++ b/src/Endpoint/GetOnPremiseRequestItem.php @@ -14,15 +14,18 @@ class GetOnPremiseRequestItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a OnPremiseRequest resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestRead|null + * @return \Gyroscops\Api\Model\OnPremiseRequestJsonldOnPremiseRequestRead|\Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestRead|null * * @throws \Gyroscops\Api\Exception\GetOnPremiseRequestItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestRead::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\OnPremiseRequestJsonldOnPremiseRequestRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\OnPremiseRequestOnPremiseRequestRead', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetOnPremiseRequestItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetOnPremiseRequestItemNotFoundException($response); } } diff --git a/src/Endpoint/GetOrganizationCollection.php b/src/Endpoint/GetOrganizationCollection.php index e88b4358..385b8033 100644 --- a/src/Endpoint/GetOrganizationCollection.php +++ b/src/Endpoint/GetOrganizationCollection.php @@ -13,6 +13,7 @@ class GetOrganizationCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Retrieves the collection of Organization resources. @@ -21,10 +22,13 @@ class GetOrganizationCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoi * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(array $queryParameters = []) + public function __construct(array $queryParameters = [], array $accept = []) { $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -44,7 +48,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -53,7 +61,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -61,12 +69,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Organization[]|null + * @return \Gyroscops\Api\Model\AuthenticationOrganizationsGetLdjsonResponse200|\Gyroscops\Api\Model\Organization[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Organization[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Organization[]', 'json'); + } } } diff --git a/src/Endpoint/GetOrganizationItem.php b/src/Endpoint/GetOrganizationItem.php index 9f41288d..eea88ff1 100644 --- a/src/Endpoint/GetOrganizationItem.php +++ b/src/Endpoint/GetOrganizationItem.php @@ -14,15 +14,18 @@ class GetOrganizationItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint imp { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Organization resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/authentication/organization/{id}'); + return str_replace(['{id}'], [$this->id], '/authentication/organizations/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Organization|null + * @return \Gyroscops\Api\Model\OrganizationJsonld|\Gyroscops\Api\Model\Organization|null * * @throws \Gyroscops\Api\Exception\GetOrganizationItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Organization::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\OrganizationJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Organization', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetOrganizationItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetOrganizationItemNotFoundException($response); } } diff --git a/src/Endpoint/GetPipelineCollection.php b/src/Endpoint/GetPipelineCollection.php index 20eef930..1901b3ad 100644 --- a/src/Endpoint/GetPipelineCollection.php +++ b/src/Endpoint/GetPipelineCollection.php @@ -13,6 +13,7 @@ class GetPipelineCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Retrieves the collection of Pipeline resources. @@ -23,10 +24,13 @@ class GetPipelineCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint i * @var string $code * @var array $code[] * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(array $queryParameters = []) + public function __construct(array $queryParameters = [], array $accept = []) { $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -46,18 +50,22 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver { $optionsResolver = parent::getQueryOptionsResolver(); - $optionsResolver->setDefined(['page', 'code', 'code[]']); + $optionsResolver->setDefined(['page', 'code']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); - $optionsResolver->setAllowedTypes('code', ['string']); - $optionsResolver->setAllowedTypes('code[]', ['array']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('code', ['string']); + $optionsResolver->addAllowedTypes('code', ['array']); return $optionsResolver; } @@ -65,12 +73,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\PipelineRead[]|null + * @return \Gyroscops\Api\Model\RuntimePipelinesGetLdjsonResponse200|\Gyroscops\Api\Model\PipelineRead[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineRead[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\RuntimePipelinesGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineRead[]', 'json'); + } } } diff --git a/src/Endpoint/GetPipelineItem.php b/src/Endpoint/GetPipelineItem.php index c7c0ff77..4ae23ee7 100644 --- a/src/Endpoint/GetPipelineItem.php +++ b/src/Endpoint/GetPipelineItem.php @@ -14,15 +14,18 @@ class GetPipelineItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint impleme { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Pipeline resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/pipeline/{id}'); + return str_replace(['{id}'], [$this->id], '/runtime/pipelines/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\PipelineRead|null + * @return \Gyroscops\Api\Model\PipelineJsonldRead|\Gyroscops\Api\Model\PipelineRead|null * * @throws \Gyroscops\Api\Exception\GetPipelineItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\PipelineRead::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineRead', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetPipelineItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetPipelineItemNotFoundException($response); } } diff --git a/src/Endpoint/GetPipelineStepCollection.php b/src/Endpoint/GetPipelineStepCollection.php index 30d9cbac..2a8f11ae 100644 --- a/src/Endpoint/GetPipelineStepCollection.php +++ b/src/Endpoint/GetPipelineStepCollection.php @@ -13,6 +13,7 @@ class GetPipelineStepCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Retrieves the collection of PipelineStep resources. @@ -21,10 +22,13 @@ class GetPipelineStepCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoi * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(array $queryParameters = []) + public function __construct(array $queryParameters = [], array $accept = []) { $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -34,7 +38,7 @@ public function getMethod(): string public function getUri(): string { - return '/runtime/pipeline/steps'; + return '/runtime/pipeline-steps'; } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -44,7 +48,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -53,7 +61,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -61,12 +69,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\PipelineStep[]|null + * @return \Gyroscops\Api\Model\RuntimePipelineStepsGetLdjsonResponse200|\Gyroscops\Api\Model\PipelineStep[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineStep[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\RuntimePipelineStepsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineStep[]', 'json'); + } } } diff --git a/src/Endpoint/GetPipelineStepItem.php b/src/Endpoint/GetPipelineStepItem.php index 51ebc09f..61d93149 100644 --- a/src/Endpoint/GetPipelineStepItem.php +++ b/src/Endpoint/GetPipelineStepItem.php @@ -14,15 +14,18 @@ class GetPipelineStepItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint imp { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a PipelineStep resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/pipeline/step/{id}'); + return str_replace(['{id}'], [$this->id], '/runtime/pipeline-steps/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\PipelineStep|null + * @return \Gyroscops\Api\Model\PipelineStepJsonld|\Gyroscops\Api\Model\PipelineStep|null * * @throws \Gyroscops\Api\Exception\GetPipelineStepItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\PipelineStep::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineStepJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineStep', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetPipelineStepItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetPipelineStepItemNotFoundException($response); } } diff --git a/src/Endpoint/GetPipelineStepProbeCollection.php b/src/Endpoint/GetPipelineStepProbeCollection.php index 8713844d..70410aa3 100644 --- a/src/Endpoint/GetPipelineStepProbeCollection.php +++ b/src/Endpoint/GetPipelineStepProbeCollection.php @@ -13,6 +13,7 @@ class GetPipelineStepProbeCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Retrieves the collection of PipelineStepProbe resources. @@ -21,10 +22,13 @@ class GetPipelineStepProbeCollection extends \Gyroscops\Api\Runtime\Client\BaseE * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(array $queryParameters = []) + public function __construct(array $queryParameters = [], array $accept = []) { $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -44,7 +48,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -53,7 +61,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -61,12 +69,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\PipelineStepProbe[]|null + * @return \Gyroscops\Api\Model\RuntimePipelineStepProbesGetLdjsonResponse200|\Gyroscops\Api\Model\PipelineStepProbe[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineStepProbe[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\RuntimePipelineStepProbesGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineStepProbe[]', 'json'); + } } } diff --git a/src/Endpoint/GetPipelineStepProbeItem.php b/src/Endpoint/GetPipelineStepProbeItem.php index 0bc65b48..3ccfc30e 100644 --- a/src/Endpoint/GetPipelineStepProbeItem.php +++ b/src/Endpoint/GetPipelineStepProbeItem.php @@ -14,15 +14,18 @@ class GetPipelineStepProbeItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoin { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a PipelineStepProbe resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/pipeline/step/probe/{id}'); + return str_replace(['{id}'], [$this->id], '/runtime/pipeline-step-probes/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\PipelineStepProbe|null + * @return \Gyroscops\Api\Model\PipelineStepProbeJsonld|\Gyroscops\Api\Model\PipelineStepProbe|null * * @throws \Gyroscops\Api\Exception\GetPipelineStepProbeItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\PipelineStepProbe::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineStepProbeJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineStepProbe', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetPipelineStepProbeItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetPipelineStepProbeItemNotFoundException($response); } } diff --git a/src/Endpoint/GetReferralCodeCollection.php b/src/Endpoint/GetReferralCodeCollection.php index dbbfbd99..132e1a03 100644 --- a/src/Endpoint/GetReferralCodeCollection.php +++ b/src/Endpoint/GetReferralCodeCollection.php @@ -13,6 +13,7 @@ class GetReferralCodeCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Retrieves the collection of ReferralCode resources. @@ -21,10 +22,13 @@ class GetReferralCodeCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoi * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(array $queryParameters = []) + public function __construct(array $queryParameters = [], array $accept = []) { $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -44,7 +48,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -53,7 +61,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -61,12 +69,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ReferralCodeReferralCodeRead[]|null + * @return \Gyroscops\Api\Model\ReferralCodesGetLdjsonResponse200|\Gyroscops\Api\Model\ReferralCodeReferralCodeRead[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ReferralCodeReferralCodeRead[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ReferralCodesGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ReferralCodeReferralCodeRead[]', 'json'); + } } } diff --git a/src/Endpoint/GetReferralCodeItem.php b/src/Endpoint/GetReferralCodeItem.php index 27386b66..6e94bf18 100644 --- a/src/Endpoint/GetReferralCodeItem.php +++ b/src/Endpoint/GetReferralCodeItem.php @@ -14,15 +14,18 @@ class GetReferralCodeItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint imp { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a ReferralCode resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ReferralCodeReferralCodeRead|null + * @return \Gyroscops\Api\Model\ReferralCodeJsonldReferralCodeRead|\Gyroscops\Api\Model\ReferralCodeReferralCodeRead|null * * @throws \Gyroscops\Api\Exception\GetReferralCodeItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\ReferralCodeReferralCodeRead::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ReferralCodeJsonldReferralCodeRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ReferralCodeReferralCodeRead', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetReferralCodeItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetReferralCodeItemNotFoundException($response); } } diff --git a/src/Endpoint/GetReferralRequestCollection.php b/src/Endpoint/GetReferralRequestCollection.php index a4da9938..a3b5c1c7 100644 --- a/src/Endpoint/GetReferralRequestCollection.php +++ b/src/Endpoint/GetReferralRequestCollection.php @@ -13,6 +13,7 @@ class GetReferralRequestCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Retrieves the collection of ReferralRequest resources. @@ -21,10 +22,13 @@ class GetReferralRequestCollection extends \Gyroscops\Api\Runtime\Client\BaseEnd * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(array $queryParameters = []) + public function __construct(array $queryParameters = [], array $accept = []) { $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -44,7 +48,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -53,7 +61,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -61,12 +69,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ReferralRequestReferralRequestRead[]|null + * @return \Gyroscops\Api\Model\ReferralRequestsGetLdjsonResponse200|\Gyroscops\Api\Model\ReferralRequestReferralRequestRead[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ReferralRequestReferralRequestRead[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ReferralRequestsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ReferralRequestReferralRequestRead[]', 'json'); + } } } diff --git a/src/Endpoint/GetReferralRequestItem.php b/src/Endpoint/GetReferralRequestItem.php index 996b4c2f..9602b936 100644 --- a/src/Endpoint/GetReferralRequestItem.php +++ b/src/Endpoint/GetReferralRequestItem.php @@ -14,15 +14,18 @@ class GetReferralRequestItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a ReferralRequest resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ReferralRequestReferralRequestRead|null + * @return \Gyroscops\Api\Model\ReferralRequestJsonldReferralRequestRead|\Gyroscops\Api\Model\ReferralRequestReferralRequestRead|null * * @throws \Gyroscops\Api\Exception\GetReferralRequestItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\ReferralRequestReferralRequestRead::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ReferralRequestJsonldReferralRequestRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ReferralRequestReferralRequestRead', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetReferralRequestItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetReferralRequestItemNotFoundException($response); } } diff --git a/src/Endpoint/GetScheduleCollection.php b/src/Endpoint/GetScheduleCollection.php index 9e0bb0c3..b313e4ee 100644 --- a/src/Endpoint/GetScheduleCollection.php +++ b/src/Endpoint/GetScheduleCollection.php @@ -13,6 +13,7 @@ class GetScheduleCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Retrieves the collection of Schedule resources. @@ -21,10 +22,13 @@ class GetScheduleCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint i * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(array $queryParameters = []) + public function __construct(array $queryParameters = [], array $accept = []) { $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -44,7 +48,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -53,7 +61,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -61,12 +69,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Schedule[]|null + * @return \Gyroscops\Api\Model\RuntimeSchedulesGetLdjsonResponse200|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Schedule[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\RuntimeSchedulesGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } } } diff --git a/src/Endpoint/GetScheduleItem.php b/src/Endpoint/GetScheduleItem.php index 6c5cf6ee..057663d6 100644 --- a/src/Endpoint/GetScheduleItem.php +++ b/src/Endpoint/GetScheduleItem.php @@ -14,15 +14,18 @@ class GetScheduleItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint impleme { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Schedule resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/schedule/{id}'); + return str_replace(['{id}'], [$this->id], '/runtime/schedules/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Schedule|null + * @return \Gyroscops\Api\Model\ScheduleJsonld|null * * @throws \Gyroscops\Api\Exception\GetScheduleItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Schedule::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ScheduleJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetScheduleItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetScheduleItemNotFoundException($response); } } diff --git a/src/Endpoint/GetSecretCollection.php b/src/Endpoint/GetSecretCollection.php index 7961157f..01dccd3e 100644 --- a/src/Endpoint/GetSecretCollection.php +++ b/src/Endpoint/GetSecretCollection.php @@ -13,6 +13,7 @@ class GetSecretCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Retrieves the collection of Secret resources. @@ -21,10 +22,13 @@ class GetSecretCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint imp * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(array $queryParameters = []) + public function __construct(array $queryParameters = [], array $accept = []) { $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -44,7 +48,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -53,7 +61,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -61,12 +69,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Secret[]|null + * @return \Gyroscops\Api\Model\EnvironmentSecretsGetLdjsonResponse200|\Gyroscops\Api\Model\Secret[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Secret[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\EnvironmentSecretsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Secret[]', 'json'); + } } } diff --git a/src/Endpoint/GetSecretItem.php b/src/Endpoint/GetSecretItem.php index 8654c5f4..d4164776 100644 --- a/src/Endpoint/GetSecretItem.php +++ b/src/Endpoint/GetSecretItem.php @@ -14,15 +14,18 @@ class GetSecretItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implement { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Secret resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/environment/secret/{id}'); + return str_replace(['{id}'], [$this->id], '/environment/secrets/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Secret|null + * @return \Gyroscops\Api\Model\SecretJsonld|\Gyroscops\Api\Model\Secret|null * * @throws \Gyroscops\Api\Exception\GetSecretItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Secret::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\SecretJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Secret', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetSecretItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetSecretItemNotFoundException($response); } } diff --git a/src/Endpoint/GetSubscriptionCollection.php b/src/Endpoint/GetSubscriptionCollection.php index 145d684b..cd858e23 100644 --- a/src/Endpoint/GetSubscriptionCollection.php +++ b/src/Endpoint/GetSubscriptionCollection.php @@ -13,6 +13,7 @@ class GetSubscriptionCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Retrieves the collection of Subscription resources. @@ -21,10 +22,13 @@ class GetSubscriptionCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoi * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(array $queryParameters = []) + public function __construct(array $queryParameters = [], array $accept = []) { $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -44,7 +48,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -53,7 +61,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -61,12 +69,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Subscription[]|null + * @return \Gyroscops\Api\Model\AuthenticationSubscriptionsGetLdjsonResponse200|\Gyroscops\Api\Model\Subscription[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Subscription[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AuthenticationSubscriptionsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Subscription[]', 'json'); + } } } diff --git a/src/Endpoint/GetSubscriptionItem.php b/src/Endpoint/GetSubscriptionItem.php index b6149252..4c15c795 100644 --- a/src/Endpoint/GetSubscriptionItem.php +++ b/src/Endpoint/GetSubscriptionItem.php @@ -14,15 +14,18 @@ class GetSubscriptionItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint imp { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Subscription resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/authentication/subscription/{id}'); + return str_replace(['{id}'], [$this->id], '/authentication/subscriptions/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Subscription|null + * @return \Gyroscops\Api\Model\SubscriptionJsonld|\Gyroscops\Api\Model\Subscription|null * * @throws \Gyroscops\Api\Exception\GetSubscriptionItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Subscription::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\SubscriptionJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Subscription', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetSubscriptionItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetSubscriptionItemNotFoundException($response); } } diff --git a/src/Endpoint/GetSubscriptionOfferCollection.php b/src/Endpoint/GetSubscriptionOfferCollection.php new file mode 100644 index 00000000..f32a3582 --- /dev/null +++ b/src/Endpoint/GetSubscriptionOfferCollection.php @@ -0,0 +1,92 @@ +queryParameters = $queryParameters; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/authentication/subscription-offers'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['page' => 1]); + $optionsResolver->addAllowedTypes('page', ['int']); + + return $optionsResolver; + } + + /** + * {@inheritdoc} + * + * @return \Gyroscops\Api\Model\AuthenticationSubscriptionOffersGetLdjsonResponse200|\Gyroscops\Api\Model\SubscriptionOfferRead[]|null + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AuthenticationSubscriptionOffersGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\SubscriptionOfferRead[]', 'json'); + } + } + } + + public function getAuthenticationScopes(): array + { + return ['apiKey']; + } +} diff --git a/src/Endpoint/GetSubscriptionOfferItem.php b/src/Endpoint/GetSubscriptionOfferItem.php new file mode 100644 index 00000000..f14abd21 --- /dev/null +++ b/src/Endpoint/GetSubscriptionOfferItem.php @@ -0,0 +1,83 @@ +id = $id; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return str_replace(['{id}'], [$this->id], '/authentication/subscription-offers/{id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; + } + + /** + * {@inheritdoc} + * + * @return \Gyroscops\Api\Model\SubscriptionOfferJsonldRead|\Gyroscops\Api\Model\SubscriptionOfferRead|null + * + * @throws \Gyroscops\Api\Exception\GetSubscriptionOfferItemNotFoundException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\SubscriptionOfferJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\SubscriptionOfferRead', 'json'); + } + } + if (404 === $status) { + throw new \Gyroscops\Api\Exception\GetSubscriptionOfferItemNotFoundException($response); + } + } + + public function getAuthenticationScopes(): array + { + return ['apiKey']; + } +} diff --git a/src/Endpoint/GetUserAuthorizationCollection.php b/src/Endpoint/GetUserAuthorizationCollection.php index a0dcbd15..32c10631 100644 --- a/src/Endpoint/GetUserAuthorizationCollection.php +++ b/src/Endpoint/GetUserAuthorizationCollection.php @@ -13,6 +13,7 @@ class GetUserAuthorizationCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Retrieves the collection of UserAuthorization resources. @@ -21,10 +22,13 @@ class GetUserAuthorizationCollection extends \Gyroscops\Api\Runtime\Client\BaseE * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(array $queryParameters = []) + public function __construct(array $queryParameters = [], array $accept = []) { $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -44,7 +48,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -53,7 +61,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -61,12 +69,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\UserAuthorization[]|null + * @return \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetLdjsonResponse200|\Gyroscops\Api\Model\UserAuthorization[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\UserAuthorization[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AuthenticationUserAuthorizationsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\UserAuthorization[]', 'json'); + } } } diff --git a/src/Endpoint/GetUserAuthorizationItem.php b/src/Endpoint/GetUserAuthorizationItem.php index 30c7382e..bf99e222 100644 --- a/src/Endpoint/GetUserAuthorizationItem.php +++ b/src/Endpoint/GetUserAuthorizationItem.php @@ -14,15 +14,18 @@ class GetUserAuthorizationItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoin { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a UserAuthorization resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\UserAuthorization|null + * @return \Gyroscops\Api\Model\UserAuthorizationJsonld|\Gyroscops\Api\Model\UserAuthorization|null * * @throws \Gyroscops\Api\Exception\GetUserAuthorizationItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\UserAuthorization::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\UserAuthorizationJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\UserAuthorization', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetUserAuthorizationItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetUserAuthorizationItemNotFoundException($response); } } diff --git a/src/Endpoint/GetUserCollection.php b/src/Endpoint/GetUserCollection.php index d99d578c..1f3af69e 100644 --- a/src/Endpoint/GetUserCollection.php +++ b/src/Endpoint/GetUserCollection.php @@ -13,6 +13,7 @@ class GetUserCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Retrieves the collection of User resources. @@ -21,10 +22,13 @@ class GetUserCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint imple * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(array $queryParameters = []) + public function __construct(array $queryParameters = [], array $accept = []) { $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -44,7 +48,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -53,7 +61,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -61,12 +69,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\User[]|null + * @return \Gyroscops\Api\Model\AuthenticationUsersGetLdjsonResponse200|\Gyroscops\Api\Model\User[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\User[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AuthenticationUsersGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\User[]', 'json'); + } } } diff --git a/src/Endpoint/GetUserItem.php b/src/Endpoint/GetUserItem.php index ba55a208..9757e784 100644 --- a/src/Endpoint/GetUserItem.php +++ b/src/Endpoint/GetUserItem.php @@ -14,15 +14,18 @@ class GetUserItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a User resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/authentication/user/{id}'); + return str_replace(['{id}'], [$this->id], '/authentication/users/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\User|null + * @return \Gyroscops\Api\Model\UserJsonld|\Gyroscops\Api\Model\User|null * * @throws \Gyroscops\Api\Exception\GetUserItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\User::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\UserJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\User', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetUserItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetUserItemNotFoundException($response); } } diff --git a/src/Endpoint/GetVariableFromConfigurationItem.php b/src/Endpoint/GetVariableFromConfigurationItem.php index 8697131b..c24ffd64 100644 --- a/src/Endpoint/GetVariableFromConfigurationItem.php +++ b/src/Endpoint/GetVariableFromConfigurationItem.php @@ -14,15 +14,18 @@ class GetVariableFromConfigurationItem extends \Gyroscops\Api\Runtime\Client\Bas { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a VariableFromConfiguration resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\VariableFromConfigurationRead|null + * @return \Gyroscops\Api\Model\VariableFromConfigurationJsonldRead|\Gyroscops\Api\Model\VariableFromConfigurationRead|null * * @throws \Gyroscops\Api\Exception\GetVariableFromConfigurationItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\VariableFromConfigurationRead::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\VariableFromConfigurationJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\VariableFromConfigurationRead', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetVariableFromConfigurationItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetVariableFromConfigurationItemNotFoundException($response); } } diff --git a/src/Endpoint/GetVariableFromConstantItem.php b/src/Endpoint/GetVariableFromConstantItem.php index 695060c2..5f2d4182 100644 --- a/src/Endpoint/GetVariableFromConstantItem.php +++ b/src/Endpoint/GetVariableFromConstantItem.php @@ -14,15 +14,18 @@ class GetVariableFromConstantItem extends \Gyroscops\Api\Runtime\Client\BaseEndp { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a VariableFromConstant resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\VariableFromConstantRead|null + * @return \Gyroscops\Api\Model\VariableFromConstantJsonldRead|\Gyroscops\Api\Model\VariableFromConstantRead|null * * @throws \Gyroscops\Api\Exception\GetVariableFromConstantItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\VariableFromConstantRead::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\VariableFromConstantJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\VariableFromConstantRead', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetVariableFromConstantItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetVariableFromConstantItemNotFoundException($response); } } diff --git a/src/Endpoint/GetVariableFromSecretItem.php b/src/Endpoint/GetVariableFromSecretItem.php index 7054e9db..dbfc489d 100644 --- a/src/Endpoint/GetVariableFromSecretItem.php +++ b/src/Endpoint/GetVariableFromSecretItem.php @@ -14,15 +14,18 @@ class GetVariableFromSecretItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoi { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a VariableFromSecret resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\VariableFromSecretRead|null + * @return \Gyroscops\Api\Model\VariableFromSecretJsonldRead|\Gyroscops\Api\Model\VariableFromSecretRead|null * * @throws \Gyroscops\Api\Exception\GetVariableFromSecretItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\VariableFromSecretRead::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\VariableFromSecretJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\VariableFromSecretRead', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetVariableFromSecretItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetVariableFromSecretItemNotFoundException($response); } } diff --git a/src/Endpoint/GetWorkflowCollection.php b/src/Endpoint/GetWorkflowCollection.php index 66e87e4b..701c537d 100644 --- a/src/Endpoint/GetWorkflowCollection.php +++ b/src/Endpoint/GetWorkflowCollection.php @@ -13,6 +13,7 @@ class GetWorkflowCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Retrieves the collection of Workflow resources. @@ -21,10 +22,13 @@ class GetWorkflowCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint i * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(array $queryParameters = []) + public function __construct(array $queryParameters = [], array $accept = []) { $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -44,7 +48,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -53,7 +61,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -61,12 +69,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\WorkflowRead[]|null + * @return \Gyroscops\Api\Model\RuntimeWorkflowsGetLdjsonResponse200|\Gyroscops\Api\Model\WorkflowRead[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkflowRead[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\RuntimeWorkflowsGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkflowRead[]', 'json'); + } } } diff --git a/src/Endpoint/GetWorkflowItem.php b/src/Endpoint/GetWorkflowItem.php index 7829620b..63904bb2 100644 --- a/src/Endpoint/GetWorkflowItem.php +++ b/src/Endpoint/GetWorkflowItem.php @@ -14,15 +14,18 @@ class GetWorkflowItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint impleme { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Workflow resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/workflow/{id}'); + return str_replace(['{id}'], [$this->id], '/runtime/workflows/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\WorkflowRead|null + * @return \Gyroscops\Api\Model\WorkflowJsonldRead|\Gyroscops\Api\Model\WorkflowRead|null * * @throws \Gyroscops\Api\Exception\GetWorkflowItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\WorkflowRead::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkflowJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkflowRead', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetWorkflowItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetWorkflowItemNotFoundException($response); } } diff --git a/src/Endpoint/GetWorkflowJobActionItem.php b/src/Endpoint/GetWorkflowJobActionItem.php index c42f0548..3ce993c9 100644 --- a/src/Endpoint/GetWorkflowJobActionItem.php +++ b/src/Endpoint/GetWorkflowJobActionItem.php @@ -14,15 +14,18 @@ class GetWorkflowJobActionItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoin { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a WorkflowJobAction resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/workflow/action/{id}'); + return str_replace(['{id}'], [$this->id], '/runtime/workflows/workflow-job-actions/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\WorkflowJobAction|null + * @return \Gyroscops\Api\Model\WorkflowJobActionJsonld|\Gyroscops\Api\Model\WorkflowJobAction|null * * @throws \Gyroscops\Api\Exception\GetWorkflowJobActionItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\WorkflowJobAction::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkflowJobActionJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkflowJobAction', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetWorkflowJobActionItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetWorkflowJobActionItemNotFoundException($response); } } diff --git a/src/Endpoint/GetWorkflowJobItem.php b/src/Endpoint/GetWorkflowJobItem.php index 381cd51e..82313e74 100644 --- a/src/Endpoint/GetWorkflowJobItem.php +++ b/src/Endpoint/GetWorkflowJobItem.php @@ -14,15 +14,18 @@ class GetWorkflowJobItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint impl { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a WorkflowJob resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/workflow/job/{id}'); + return str_replace(['{id}'], [$this->id], '/runtime/workflows/jobs/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\WorkflowJobRead|null + * @return \Gyroscops\Api\Model\WorkflowJobJsonldRead|\Gyroscops\Api\Model\WorkflowJobRead|null * * @throws \Gyroscops\Api\Exception\GetWorkflowJobItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\WorkflowJobRead::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkflowJobJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkflowJobRead', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetWorkflowJobItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetWorkflowJobItemNotFoundException($response); } } diff --git a/src/Endpoint/GetWorkflowJobPipelineCollection.php b/src/Endpoint/GetWorkflowJobPipelineCollection.php index d73c6bb1..193d6a83 100644 --- a/src/Endpoint/GetWorkflowJobPipelineCollection.php +++ b/src/Endpoint/GetWorkflowJobPipelineCollection.php @@ -13,6 +13,7 @@ class GetWorkflowJobPipelineCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Retrieves the collection of WorkflowJobPipeline resources. @@ -21,10 +22,13 @@ class GetWorkflowJobPipelineCollection extends \Gyroscops\Api\Runtime\Client\Bas * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(array $queryParameters = []) + public function __construct(array $queryParameters = [], array $accept = []) { $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -34,7 +38,7 @@ public function getMethod(): string public function getUri(): string { - return '/runtime/workflow/pipelines'; + return '/runtime/workflows/pipelines'; } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -44,7 +48,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -53,7 +61,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -61,12 +69,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\WorkflowJobPipeline[]|null + * @return \Gyroscops\Api\Model\RuntimeWorkflowsPipelinesGetLdjsonResponse200|\Gyroscops\Api\Model\WorkflowJobPipeline[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkflowJobPipeline[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\RuntimeWorkflowsPipelinesGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkflowJobPipeline[]', 'json'); + } } } diff --git a/src/Endpoint/GetWorkflowJobPipelineItem.php b/src/Endpoint/GetWorkflowJobPipelineItem.php index ca2ad4d7..9520c5e0 100644 --- a/src/Endpoint/GetWorkflowJobPipelineItem.php +++ b/src/Endpoint/GetWorkflowJobPipelineItem.php @@ -14,15 +14,18 @@ class GetWorkflowJobPipelineItem extends \Gyroscops\Api\Runtime\Client\BaseEndpo { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a WorkflowJobPipeline resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/workflow/pipeline/{id}'); + return str_replace(['{id}'], [$this->id], '/runtime/workflows/pipelines/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\WorkflowJobPipeline|null + * @return \Gyroscops\Api\Model\WorkflowJobPipelineJsonld|\Gyroscops\Api\Model\WorkflowJobPipeline|null * * @throws \Gyroscops\Api\Exception\GetWorkflowJobPipelineItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\WorkflowJobPipeline::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkflowJobPipelineJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkflowJobPipeline', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetWorkflowJobPipelineItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetWorkflowJobPipelineItemNotFoundException($response); } } diff --git a/src/Endpoint/GetWorkspaceCollection.php b/src/Endpoint/GetWorkspaceCollection.php index 0ec4c826..74433ef3 100644 --- a/src/Endpoint/GetWorkspaceCollection.php +++ b/src/Endpoint/GetWorkspaceCollection.php @@ -13,6 +13,7 @@ class GetWorkspaceCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Retrieves the collection of Workspace resources. @@ -21,10 +22,13 @@ class GetWorkspaceCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint * * @var int $page The collection page number * } + * + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(array $queryParameters = []) + public function __construct(array $queryParameters = [], array $accept = []) { $this->queryParameters = $queryParameters; + $this->accept = $accept; } public function getMethod(): string @@ -44,7 +48,11 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver @@ -53,7 +61,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setDefined(['page']); $optionsResolver->setRequired([]); $optionsResolver->setDefaults(['page' => 1]); - $optionsResolver->setAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('page', ['int']); return $optionsResolver; } @@ -61,12 +69,19 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Workspace[]|null + * @return \Gyroscops\Api\Model\AuthenticationWorkspacesGetLdjsonResponse200|\Gyroscops\Api\Model\Workspace[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Workspace[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AuthenticationWorkspacesGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Workspace[]', 'json'); + } } } diff --git a/src/Endpoint/GetWorkspaceItem.php b/src/Endpoint/GetWorkspaceItem.php index 61c21f00..c9b07bd1 100644 --- a/src/Endpoint/GetWorkspaceItem.php +++ b/src/Endpoint/GetWorkspaceItem.php @@ -14,15 +14,18 @@ class GetWorkspaceItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implem { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Retrieves a Workspace resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id) + public function __construct(string $id, array $accept = []) { $this->id = $id; + $this->accept = $accept; } public function getMethod(): string @@ -32,7 +35,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/authentication/workspace/{id}'); + return str_replace(['{id}'], [$this->id], '/authentication/workspaces/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -42,23 +45,34 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Workspace|null + * @return \Gyroscops\Api\Model\WorkspaceJsonld|\Gyroscops\Api\Model\Workspace|null * * @throws \Gyroscops\Api\Exception\GetWorkspaceItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Workspace::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkspaceJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Workspace', 'json'); + } } if (404 === $status) { - throw new \Gyroscops\Api\Exception\GetWorkspaceItemNotFoundException(); + throw new \Gyroscops\Api\Exception\GetWorkspaceItemNotFoundException($response); } } diff --git a/src/Endpoint/InterruptExecutionExecutionItem.php b/src/Endpoint/InterruptExecutionExecutionItem.php deleted file mode 100644 index dd247135..00000000 --- a/src/Endpoint/InterruptExecutionExecutionItem.php +++ /dev/null @@ -1,87 +0,0 @@ -id = $id; - $this->body = $requestBody; - } - - public function getMethod(): string - { - return 'PUT'; - } - - public function getUri(): string - { - return str_replace(['{id}'], [$this->id], '/runtime/execution/{id}/interrupt'); - } - - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array - { - if ($this->body instanceof \Gyroscops\Api\Model\ExecutionInterruptPipelineExecutionCommandInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; - } - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body, \JSON_THROW_ON_ERROR)]; - } - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['text/html']], $this->body]; - } - - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - /** - * {@inheritdoc} - * - * @throws \Gyroscops\Api\Exception\InterruptExecutionExecutionItemBadRequestException - * @throws \Gyroscops\Api\Exception\InterruptExecutionExecutionItemUnprocessableEntityException - * @throws \Gyroscops\Api\Exception\InterruptExecutionExecutionItemNotFoundException - */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) - { - if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); - } - if (400 === $status) { - throw new \Gyroscops\Api\Exception\InterruptExecutionExecutionItemBadRequestException(); - } - if (422 === $status) { - throw new \Gyroscops\Api\Exception\InterruptExecutionExecutionItemUnprocessableEntityException(); - } - if (404 === $status) { - throw new \Gyroscops\Api\Exception\InterruptExecutionExecutionItemNotFoundException(); - } - } - - public function getAuthenticationScopes(): array - { - return ['apiKey']; - } -} diff --git a/src/Endpoint/InterruptExecutionExecutionWorkflowItem.php b/src/Endpoint/InterruptExecutionExecutionWorkflowItem.php new file mode 100644 index 00000000..005a6560 --- /dev/null +++ b/src/Endpoint/InterruptExecutionExecutionWorkflowItem.php @@ -0,0 +1,103 @@ +id = $id; + $this->body = $requestBody; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'PUT'; + } + + public function getUri(): string + { + return str_replace(['{id}'], [$this->id], '/runtime/executions/{id}/interrupt'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Gyroscops\Api\Model\ExecutionWorkflowInterruptWorkflowExecutionCommandInputJsonld) { + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; + } + if ($this->body instanceof \stdClass) { + return [['Content-Type' => ['application/json']], json_encode($this->body)]; + } + if ($this->body instanceof \stdClass) { + return [['Content-Type' => ['text/html']], $this->body]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; + } + + /** + * {@inheritdoc} + * + * @return \Gyroscops\Api\Model\ExecutionWorkflowInterruptWorkflowExecutionCommandJsonld|\Gyroscops\Api\Model\ExecutionWorkflowInterruptWorkflowExecutionCommand|null + * + * @throws \Gyroscops\Api\Exception\InterruptExecutionExecutionWorkflowItemBadRequestException + * @throws \Gyroscops\Api\Exception\InterruptExecutionExecutionWorkflowItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\InterruptExecutionExecutionWorkflowItemNotFoundException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflowInterruptWorkflowExecutionCommandJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflowInterruptWorkflowExecutionCommand', 'json'); + } + } + if (400 === $status) { + throw new \Gyroscops\Api\Exception\InterruptExecutionExecutionWorkflowItemBadRequestException($response); + } + if (422 === $status) { + throw new \Gyroscops\Api\Exception\InterruptExecutionExecutionWorkflowItemUnprocessableEntityException($response); + } + if (404 === $status) { + throw new \Gyroscops\Api\Exception\InterruptExecutionExecutionWorkflowItemNotFoundException($response); + } + } + + public function getAuthenticationScopes(): array + { + return ['apiKey']; + } +} diff --git a/src/Endpoint/MeUserCollection.php b/src/Endpoint/MeUserCollection.php index 6ee05699..35560cfc 100644 --- a/src/Endpoint/MeUserCollection.php +++ b/src/Endpoint/MeUserCollection.php @@ -13,6 +13,17 @@ class MeUserCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; + + /** + * Get the current user. + * + * @param array $accept Accept content header application/ld+json|application/json|text/html + */ + public function __construct(array $accept = []) + { + $this->accept = $accept; + } public function getMethod(): string { @@ -31,18 +42,29 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\User[]|null + * @return \Gyroscops\Api\Model\AuthenticationMeGetLdjsonResponse200|\Gyroscops\Api\Model\User[]|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\User[]', 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AuthenticationMeGetLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\User[]', 'json'); + } } } diff --git a/src/Endpoint/MoveAfterPipelineStepPipelineItem.php b/src/Endpoint/MoveAfterPipelineStepPipelineItem.php index 385fc72f..b96f75dc 100644 --- a/src/Endpoint/MoveAfterPipelineStepPipelineItem.php +++ b/src/Endpoint/MoveAfterPipelineStepPipelineItem.php @@ -14,17 +14,20 @@ class MoveAfterPipelineStepPipelineItem extends \Gyroscops\Api\Runtime\Client\Ba { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Moves a step after another one in a pipeline. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandInputJsonld|\Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -34,13 +37,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/pipeline/{id}/step/{code}/move-after'); + return str_replace(['{id}'], [$this->id], '/runtime/pipelines/{id}/steps/{code}/move-after'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -54,29 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * + * @return \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandJsonldRead|null + * * @throws \Gyroscops\Api\Exception\MoveAfterPipelineStepPipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\MoveAfterPipelineStepPipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\MoveAfterPipelineStepPipelineItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineMoveAfterPipelineStepCommandJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\MoveAfterPipelineStepPipelineItemBadRequestException(); + throw new \Gyroscops\Api\Exception\MoveAfterPipelineStepPipelineItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\MoveAfterPipelineStepPipelineItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\MoveAfterPipelineStepPipelineItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\MoveAfterPipelineStepPipelineItemNotFoundException(); + throw new \Gyroscops\Api\Exception\MoveAfterPipelineStepPipelineItemNotFoundException($response); } } diff --git a/src/Endpoint/MoveBeforePipelineStepPipelineItem.php b/src/Endpoint/MoveBeforePipelineStepPipelineItem.php index 55ea1a7c..7c1edfa4 100644 --- a/src/Endpoint/MoveBeforePipelineStepPipelineItem.php +++ b/src/Endpoint/MoveBeforePipelineStepPipelineItem.php @@ -14,17 +14,20 @@ class MoveBeforePipelineStepPipelineItem extends \Gyroscops\Api\Runtime\Client\B { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Moves a step before another one in a pipeline. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandInputJsonld|\Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -34,13 +37,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/pipeline/{id}/step/{code}/move-before'); + return str_replace(['{id}'], [$this->id], '/runtime/pipelines/{id}/steps/{code}/move-before'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -54,29 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * + * @return \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandJsonldRead|null + * * @throws \Gyroscops\Api\Exception\MoveBeforePipelineStepPipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\MoveBeforePipelineStepPipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\MoveBeforePipelineStepPipelineItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineMoveBeforePipelineStepCommandJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\MoveBeforePipelineStepPipelineItemBadRequestException(); + throw new \Gyroscops\Api\Exception\MoveBeforePipelineStepPipelineItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\MoveBeforePipelineStepPipelineItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\MoveBeforePipelineStepPipelineItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\MoveBeforePipelineStepPipelineItemNotFoundException(); + throw new \Gyroscops\Api\Exception\MoveBeforePipelineStepPipelineItemNotFoundException($response); } } diff --git a/src/Endpoint/PatchOfferItem.php b/src/Endpoint/PatchOfferItem.php deleted file mode 100644 index 572ad768..00000000 --- a/src/Endpoint/PatchOfferItem.php +++ /dev/null @@ -1,82 +0,0 @@ -id = $id; - $this->body = $requestBody; - } - - public function getMethod(): string - { - return 'PATCH'; - } - - public function getUri(): string - { - return str_replace(['{id}'], [$this->id], '/authentication/offer/{id}'); - } - - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array - { - if ($this->body instanceof \Gyroscops\Api\Model\Offer) { - return [['Content-Type' => ['application/merge-patch+json']], $this->body]; - } - - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - /** - * {@inheritdoc} - * - * @return \Gyroscops\Api\Model\Offer|null - * - * @throws \Gyroscops\Api\Exception\PatchOfferItemBadRequestException - * @throws \Gyroscops\Api\Exception\PatchOfferItemUnprocessableEntityException - * @throws \Gyroscops\Api\Exception\PatchOfferItemNotFoundException - */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) - { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Offer::class, 'json'); - } - if (400 === $status) { - throw new \Gyroscops\Api\Exception\PatchOfferItemBadRequestException(); - } - if (422 === $status) { - throw new \Gyroscops\Api\Exception\PatchOfferItemUnprocessableEntityException(); - } - if (404 === $status) { - throw new \Gyroscops\Api\Exception\PatchOfferItemNotFoundException(); - } - } - - public function getAuthenticationScopes(): array - { - return ['apiKey']; - } -} diff --git a/src/Endpoint/PatchOrganizationItem.php b/src/Endpoint/PatchOrganizationItem.php index eb9064fb..f5ad6ab3 100644 --- a/src/Endpoint/PatchOrganizationItem.php +++ b/src/Endpoint/PatchOrganizationItem.php @@ -14,16 +14,19 @@ class PatchOrganizationItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint i { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Updates the Organization resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, ?\Gyroscops\Api\Model\Organization $requestBody = null) + public function __construct(string $id, ?\Gyroscops\Api\Model\Organization $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -33,13 +36,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/authentication/organization/{id}'); + return str_replace(['{id}'], [$this->id], '/authentication/organizations/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\Organization) { - return [['Content-Type' => ['application/merge-patch+json']], $this->body]; + return [['Content-Type' => ['application/merge-patch+json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; @@ -47,31 +50,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Organization|null + * @return \Gyroscops\Api\Model\OrganizationJsonld|\Gyroscops\Api\Model\Organization|null * * @throws \Gyroscops\Api\Exception\PatchOrganizationItemBadRequestException * @throws \Gyroscops\Api\Exception\PatchOrganizationItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\PatchOrganizationItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Organization::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\OrganizationJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Organization', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\PatchOrganizationItemBadRequestException(); + throw new \Gyroscops\Api\Exception\PatchOrganizationItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\PatchOrganizationItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\PatchOrganizationItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\PatchOrganizationItemNotFoundException(); + throw new \Gyroscops\Api\Exception\PatchOrganizationItemNotFoundException($response); } } diff --git a/src/Endpoint/PatchSubscriptionItem.php b/src/Endpoint/PatchSubscriptionItem.php index 47fe96ba..0306b15f 100644 --- a/src/Endpoint/PatchSubscriptionItem.php +++ b/src/Endpoint/PatchSubscriptionItem.php @@ -14,16 +14,19 @@ class PatchSubscriptionItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint i { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Updates the Subscription resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, ?\Gyroscops\Api\Model\Subscription $requestBody = null) + public function __construct(string $id, ?\Gyroscops\Api\Model\Subscription $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -33,13 +36,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/authentication/subscription/{id}'); + return str_replace(['{id}'], [$this->id], '/authentication/subscriptions/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\Subscription) { - return [['Content-Type' => ['application/merge-patch+json']], $this->body]; + return [['Content-Type' => ['application/merge-patch+json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; @@ -47,31 +50,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Subscription|null + * @return \Gyroscops\Api\Model\SubscriptionJsonld|\Gyroscops\Api\Model\Subscription|null * * @throws \Gyroscops\Api\Exception\PatchSubscriptionItemBadRequestException * @throws \Gyroscops\Api\Exception\PatchSubscriptionItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\PatchSubscriptionItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Subscription::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\SubscriptionJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Subscription', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\PatchSubscriptionItemBadRequestException(); + throw new \Gyroscops\Api\Exception\PatchSubscriptionItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\PatchSubscriptionItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\PatchSubscriptionItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\PatchSubscriptionItemNotFoundException(); + throw new \Gyroscops\Api\Exception\PatchSubscriptionItemNotFoundException($response); } } diff --git a/src/Endpoint/PatchSubscriptionOfferItem.php b/src/Endpoint/PatchSubscriptionOfferItem.php new file mode 100644 index 00000000..ed64b4bc --- /dev/null +++ b/src/Endpoint/PatchSubscriptionOfferItem.php @@ -0,0 +1,96 @@ +id = $id; + $this->body = $requestBody; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return str_replace(['{id}'], [$this->id], '/authentication/subscription-offers/{id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Gyroscops\Api\Model\SubscriptionOfferWrite) { + return [['Content-Type' => ['application/merge-patch+json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; + } + + /** + * {@inheritdoc} + * + * @return \Gyroscops\Api\Model\SubscriptionOfferJsonldRead|\Gyroscops\Api\Model\SubscriptionOfferRead|null + * + * @throws \Gyroscops\Api\Exception\PatchSubscriptionOfferItemBadRequestException + * @throws \Gyroscops\Api\Exception\PatchSubscriptionOfferItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\PatchSubscriptionOfferItemNotFoundException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\SubscriptionOfferJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\SubscriptionOfferRead', 'json'); + } + } + if (400 === $status) { + throw new \Gyroscops\Api\Exception\PatchSubscriptionOfferItemBadRequestException($response); + } + if (422 === $status) { + throw new \Gyroscops\Api\Exception\PatchSubscriptionOfferItemUnprocessableEntityException($response); + } + if (404 === $status) { + throw new \Gyroscops\Api\Exception\PatchSubscriptionOfferItemNotFoundException($response); + } + } + + public function getAuthenticationScopes(): array + { + return ['apiKey']; + } +} diff --git a/src/Endpoint/PatchUserAuthorizationItem.php b/src/Endpoint/PatchUserAuthorizationItem.php index ea1a4c30..e343eb99 100644 --- a/src/Endpoint/PatchUserAuthorizationItem.php +++ b/src/Endpoint/PatchUserAuthorizationItem.php @@ -14,16 +14,19 @@ class PatchUserAuthorizationItem extends \Gyroscops\Api\Runtime\Client\BaseEndpo { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Updates the UserAuthorization resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, ?\Gyroscops\Api\Model\UserAuthorization $requestBody = null) + public function __construct(string $id, ?\Gyroscops\Api\Model\UserAuthorization $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -39,7 +42,7 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\UserAuthorization) { - return [['Content-Type' => ['application/merge-patch+json']], $this->body]; + return [['Content-Type' => ['application/merge-patch+json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; @@ -47,31 +50,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\UserAuthorization|null + * @return \Gyroscops\Api\Model\UserAuthorizationJsonld|\Gyroscops\Api\Model\UserAuthorization|null * * @throws \Gyroscops\Api\Exception\PatchUserAuthorizationItemBadRequestException * @throws \Gyroscops\Api\Exception\PatchUserAuthorizationItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\PatchUserAuthorizationItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\UserAuthorization::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\UserAuthorizationJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\UserAuthorization', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\PatchUserAuthorizationItemBadRequestException(); + throw new \Gyroscops\Api\Exception\PatchUserAuthorizationItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\PatchUserAuthorizationItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\PatchUserAuthorizationItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\PatchUserAuthorizationItemNotFoundException(); + throw new \Gyroscops\Api\Exception\PatchUserAuthorizationItemNotFoundException($response); } } diff --git a/src/Endpoint/PatchUserItem.php b/src/Endpoint/PatchUserItem.php index eb9814b5..915f65d9 100644 --- a/src/Endpoint/PatchUserItem.php +++ b/src/Endpoint/PatchUserItem.php @@ -14,16 +14,19 @@ class PatchUserItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implement { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Updates the User resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, ?\Gyroscops\Api\Model\User $requestBody = null) + public function __construct(string $id, ?\Gyroscops\Api\Model\User $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -33,13 +36,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/authentication/user/{id}'); + return str_replace(['{id}'], [$this->id], '/authentication/users/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\User) { - return [['Content-Type' => ['application/merge-patch+json']], $this->body]; + return [['Content-Type' => ['application/merge-patch+json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; @@ -47,31 +50,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\User|null + * @return \Gyroscops\Api\Model\UserJsonld|\Gyroscops\Api\Model\User|null * * @throws \Gyroscops\Api\Exception\PatchUserItemBadRequestException * @throws \Gyroscops\Api\Exception\PatchUserItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\PatchUserItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\User::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\UserJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\User', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\PatchUserItemBadRequestException(); + throw new \Gyroscops\Api\Exception\PatchUserItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\PatchUserItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\PatchUserItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\PatchUserItemNotFoundException(); + throw new \Gyroscops\Api\Exception\PatchUserItemNotFoundException($response); } } diff --git a/src/Endpoint/PatchWorkspaceItem.php b/src/Endpoint/PatchWorkspaceItem.php index c30f3965..40c4ad32 100644 --- a/src/Endpoint/PatchWorkspaceItem.php +++ b/src/Endpoint/PatchWorkspaceItem.php @@ -14,16 +14,19 @@ class PatchWorkspaceItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint impl { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Updates the Workspace resource. * - * @param string $id Resource identifier + * @param string $id Resource identifier + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, ?\Gyroscops\Api\Model\Workspace $requestBody = null) + public function __construct(string $id, ?\Gyroscops\Api\Model\Workspace $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -33,13 +36,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/authentication/workspace/{id}'); + return str_replace(['{id}'], [$this->id], '/authentication/workspaces/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\Workspace) { - return [['Content-Type' => ['application/merge-patch+json']], $this->body]; + return [['Content-Type' => ['application/merge-patch+json']], $serializer->serialize($this->body, 'json')]; } return [[], null]; @@ -47,31 +50,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Workspace|null + * @return \Gyroscops\Api\Model\WorkspaceJsonld|\Gyroscops\Api\Model\Workspace|null * * @throws \Gyroscops\Api\Exception\PatchWorkspaceItemBadRequestException * @throws \Gyroscops\Api\Exception\PatchWorkspaceItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\PatchWorkspaceItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Workspace::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkspaceJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Workspace', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\PatchWorkspaceItemBadRequestException(); + throw new \Gyroscops\Api\Exception\PatchWorkspaceItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\PatchWorkspaceItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\PatchWorkspaceItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\PatchWorkspaceItemNotFoundException(); + throw new \Gyroscops\Api\Exception\PatchWorkspaceItemNotFoundException($response); } } diff --git a/src/Endpoint/PipelineCompilationPipelineItem.php b/src/Endpoint/PipelineCompilationPipelineItem.php index 40e58106..839a5a5d 100644 --- a/src/Endpoint/PipelineCompilationPipelineItem.php +++ b/src/Endpoint/PipelineCompilationPipelineItem.php @@ -14,17 +14,20 @@ class PipelineCompilationPipelineItem extends \Gyroscops\Api\Runtime\Client\Base { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Launches a pipeline compilation. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\PipelineCompilePipelineCommandInputJsonld|\stdClass|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -34,16 +37,16 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/pipeline/{id}/compile'); + return str_replace(['{id}'], [$this->id], '/runtime/pipelines/{id}/compile'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\PipelineCompilePipelineCommandInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body, \JSON_THROW_ON_ERROR)]; + return [['Content-Type' => ['application/json']], json_encode($this->body)]; } if ($this->body instanceof \stdClass) { return [['Content-Type' => ['text/html']], $this->body]; @@ -54,29 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * + * @return \Gyroscops\Api\Model\PipelineCompilePipelineCommandJsonldRead|null + * * @throws \Gyroscops\Api\Exception\PipelineCompilationPipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\PipelineCompilationPipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\PipelineCompilationPipelineItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineCompilePipelineCommandJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\PipelineCompilationPipelineItemBadRequestException(); + throw new \Gyroscops\Api\Exception\PipelineCompilationPipelineItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\PipelineCompilationPipelineItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\PipelineCompilationPipelineItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\PipelineCompilationPipelineItemNotFoundException(); + throw new \Gyroscops\Api\Exception\PipelineCompilationPipelineItemNotFoundException($response); } } diff --git a/src/Endpoint/PipelineScheduleImmediatePipelineItem.php b/src/Endpoint/PipelineScheduleImmediatePipelineItem.php new file mode 100644 index 00000000..eb740ad8 --- /dev/null +++ b/src/Endpoint/PipelineScheduleImmediatePipelineItem.php @@ -0,0 +1,103 @@ +id = $id; + $this->body = $requestBody; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'PUT'; + } + + public function getUri(): string + { + return str_replace(['{id}'], [$this->id], '/runtime/pipelines/{id}/schedule-now'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Gyroscops\Api\Model\PipelineDeclarePipelineScheduleImmediateCommandInputJsonld) { + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; + } + if ($this->body instanceof \Gyroscops\Api\Model\PipelineDeclarePipelineScheduleImmediateCommandInput) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + if ($this->body instanceof \Gyroscops\Api\Model\PipelineDeclarePipelineScheduleImmediateCommandInput) { + return [['Content-Type' => ['text/html']], $this->body]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; + } + + /** + * {@inheritdoc} + * + * @return \Gyroscops\Api\Model\PipelineDeclarePipelineScheduleImmediateCommandJsonldRead|null + * + * @throws \Gyroscops\Api\Exception\PipelineScheduleImmediatePipelineItemBadRequestException + * @throws \Gyroscops\Api\Exception\PipelineScheduleImmediatePipelineItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\PipelineScheduleImmediatePipelineItemNotFoundException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineDeclarePipelineScheduleImmediateCommandJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } + } + if (400 === $status) { + throw new \Gyroscops\Api\Exception\PipelineScheduleImmediatePipelineItemBadRequestException($response); + } + if (422 === $status) { + throw new \Gyroscops\Api\Exception\PipelineScheduleImmediatePipelineItemUnprocessableEntityException($response); + } + if (404 === $status) { + throw new \Gyroscops\Api\Exception\PipelineScheduleImmediatePipelineItemNotFoundException($response); + } + } + + public function getAuthenticationScopes(): array + { + return ['apiKey']; + } +} diff --git a/src/Endpoint/PipelineScheduleOncePipelineItem.php b/src/Endpoint/PipelineScheduleOncePipelineItem.php new file mode 100644 index 00000000..73f429c4 --- /dev/null +++ b/src/Endpoint/PipelineScheduleOncePipelineItem.php @@ -0,0 +1,103 @@ +id = $id; + $this->body = $requestBody; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'PUT'; + } + + public function getUri(): string + { + return str_replace(['{id}'], [$this->id], '/runtime/pipelines/{id}/schedule-once'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Gyroscops\Api\Model\PipelineDeclarePipelineScheduleOnceCommandInputJsonld) { + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; + } + if ($this->body instanceof \Gyroscops\Api\Model\PipelineDeclarePipelineScheduleOnceCommandInput) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + if ($this->body instanceof \Gyroscops\Api\Model\PipelineDeclarePipelineScheduleOnceCommandInput) { + return [['Content-Type' => ['text/html']], $this->body]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; + } + + /** + * {@inheritdoc} + * + * @return \Gyroscops\Api\Model\PipelineDeclarePipelineScheduleOnceCommandJsonldRead|null + * + * @throws \Gyroscops\Api\Exception\PipelineScheduleOncePipelineItemBadRequestException + * @throws \Gyroscops\Api\Exception\PipelineScheduleOncePipelineItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\PipelineScheduleOncePipelineItemNotFoundException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineDeclarePipelineScheduleOnceCommandJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } + } + if (400 === $status) { + throw new \Gyroscops\Api\Exception\PipelineScheduleOncePipelineItemBadRequestException($response); + } + if (422 === $status) { + throw new \Gyroscops\Api\Exception\PipelineScheduleOncePipelineItemUnprocessableEntityException($response); + } + if (404 === $status) { + throw new \Gyroscops\Api\Exception\PipelineScheduleOncePipelineItemNotFoundException($response); + } + } + + public function getAuthenticationScopes(): array + { + return ['apiKey']; + } +} diff --git a/src/Endpoint/PostAkeneoInstanceCollection.php b/src/Endpoint/PostAkeneoInstanceCollection.php index cab0cb1b..b1fb728b 100644 --- a/src/Endpoint/PostAkeneoInstanceCollection.php +++ b/src/Endpoint/PostAkeneoInstanceCollection.php @@ -13,15 +13,18 @@ class PostAkeneoInstanceCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Creates a AkeneoInstance resource. * * @param \Gyroscops\Api\Model\AkeneoInstanceAkeneoInstanceInputJsonld|\Gyroscops\Api\Model\AkeneoInstanceAkeneoInstanceInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct($requestBody = null) + public function __construct($requestBody = null, array $accept = []) { $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -37,7 +40,7 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\AkeneoInstanceAkeneoInstanceInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\AkeneoInstanceAkeneoInstanceInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -51,27 +54,38 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\AkeneoInstance|null + * @return \Gyroscops\Api\Model\AkeneoInstanceJsonld|\Gyroscops\Api\Model\AkeneoInstance|null * * @throws \Gyroscops\Api\Exception\PostAkeneoInstanceCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PostAkeneoInstanceCollectionUnprocessableEntityException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\AkeneoInstance::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (201 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AkeneoInstanceJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AkeneoInstance', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\PostAkeneoInstanceCollectionBadRequestException(); + throw new \Gyroscops\Api\Exception\PostAkeneoInstanceCollectionBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\PostAkeneoInstanceCollectionUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\PostAkeneoInstanceCollectionUnprocessableEntityException($response); } } diff --git a/src/Endpoint/PostAkeneoLinkedAccountCollection.php b/src/Endpoint/PostAkeneoLinkedAccountCollection.php index acd2a889..55b287cf 100644 --- a/src/Endpoint/PostAkeneoLinkedAccountCollection.php +++ b/src/Endpoint/PostAkeneoLinkedAccountCollection.php @@ -13,15 +13,18 @@ class PostAkeneoLinkedAccountCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Creates a AkeneoLinkedAccount resource. * * @param \Gyroscops\Api\Model\AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonld|\Gyroscops\Api\Model\AkeneoLinkedAccountAkeneoLinkedAccountsInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct($requestBody = null) + public function __construct($requestBody = null, array $accept = []) { $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -37,7 +40,7 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\AkeneoLinkedAccountAkeneoLinkedAccountsInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -51,27 +54,38 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\AkeneoLinkedAccount|null + * @return \Gyroscops\Api\Model\AkeneoLinkedAccountJsonld|\Gyroscops\Api\Model\AkeneoLinkedAccount|null * * @throws \Gyroscops\Api\Exception\PostAkeneoLinkedAccountCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PostAkeneoLinkedAccountCollectionUnprocessableEntityException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\AkeneoLinkedAccount::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (201 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AkeneoLinkedAccountJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AkeneoLinkedAccount', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\PostAkeneoLinkedAccountCollectionBadRequestException(); + throw new \Gyroscops\Api\Exception\PostAkeneoLinkedAccountCollectionBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\PostAkeneoLinkedAccountCollectionUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\PostAkeneoLinkedAccountCollectionUnprocessableEntityException($response); } } diff --git a/src/Endpoint/PostAkeneoOauthTokenCollection.php b/src/Endpoint/PostAkeneoOauthTokenCollection.php index 1535953f..20ab0bee 100644 --- a/src/Endpoint/PostAkeneoOauthTokenCollection.php +++ b/src/Endpoint/PostAkeneoOauthTokenCollection.php @@ -13,15 +13,18 @@ class PostAkeneoOauthTokenCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Generate an Akeneo OAuth state. * * @param \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateInputJsonld|\Gyroscops\Api\Model\AkeneoOauthTokenOauthStateInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct($requestBody = null) + public function __construct($requestBody = null, array $accept = []) { $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -31,13 +34,13 @@ public function getMethod(): string public function getUri(): string { - return '/gateway/akeneo/oauth/state'; + return '/gateway/akeneo/oauth/akeneo-oauth-tokens'; } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -51,25 +54,38 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * + * @return \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateOutputJsonldRead|null + * * @throws \Gyroscops\Api\Exception\PostAkeneoOauthTokenCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PostAkeneoOauthTokenCollectionUnprocessableEntityException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (201 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\AkeneoOauthTokenOauthStateOutputJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\PostAkeneoOauthTokenCollectionBadRequestException(); + throw new \Gyroscops\Api\Exception\PostAkeneoOauthTokenCollectionBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\PostAkeneoOauthTokenCollectionUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\PostAkeneoOauthTokenCollectionUnprocessableEntityException($response); } } diff --git a/src/Endpoint/PostCompilationCollection.php b/src/Endpoint/PostCompilationCollection.php deleted file mode 100644 index 3a0d5e4d..00000000 --- a/src/Endpoint/PostCompilationCollection.php +++ /dev/null @@ -1,82 +0,0 @@ -body = $requestBody; - } - - public function getMethod(): string - { - return 'POST'; - } - - public function getUri(): string - { - return '/runtime/compilation'; - } - - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array - { - if ($this->body instanceof \Gyroscops\Api\Model\CompilationCompilePipelineCommandInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; - } - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body, \JSON_THROW_ON_ERROR)]; - } - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['text/html']], $this->body]; - } - - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - /** - * {@inheritdoc} - * - * @return \Gyroscops\Api\Model\CompilationCompilePipelineCommand|null - * - * @throws \Gyroscops\Api\Exception\PostCompilationCollectionBadRequestException - * @throws \Gyroscops\Api\Exception\PostCompilationCollectionUnprocessableEntityException - */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) - { - if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\CompilationCompilePipelineCommand::class, 'json'); - } - if (400 === $status) { - throw new \Gyroscops\Api\Exception\PostCompilationCollectionBadRequestException(); - } - if (422 === $status) { - throw new \Gyroscops\Api\Exception\PostCompilationCollectionUnprocessableEntityException(); - } - } - - public function getAuthenticationScopes(): array - { - return ['apiKey']; - } -} diff --git a/src/Endpoint/PostConfigurationCollection.php b/src/Endpoint/PostConfigurationCollection.php index 57ceb3d0..eb655968 100644 --- a/src/Endpoint/PostConfigurationCollection.php +++ b/src/Endpoint/PostConfigurationCollection.php @@ -13,15 +13,18 @@ class PostConfigurationCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Creates a Configuration resource. * * @param \Gyroscops\Api\Model\ConfigurationCreateConfigurationInputJsonld|\Gyroscops\Api\Model\ConfigurationCreateConfigurationInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct($requestBody = null) + public function __construct($requestBody = null, array $accept = []) { $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -31,13 +34,13 @@ public function getMethod(): string public function getUri(): string { - return '/environment/configuration'; + return '/environment/configurations'; } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\ConfigurationCreateConfigurationInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\ConfigurationCreateConfigurationInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -51,27 +54,38 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Configuration|null + * @return \Gyroscops\Api\Model\ConfigurationJsonld|\Gyroscops\Api\Model\Configuration|null * * @throws \Gyroscops\Api\Exception\PostConfigurationCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PostConfigurationCollectionUnprocessableEntityException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Configuration::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (201 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ConfigurationJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Configuration', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\PostConfigurationCollectionBadRequestException(); + throw new \Gyroscops\Api\Exception\PostConfigurationCollectionBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\PostConfigurationCollectionUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\PostConfigurationCollectionUnprocessableEntityException($response); } } diff --git a/src/Endpoint/PostCredentialsItem.php b/src/Endpoint/PostCredentialsItem.php index 4aec8352..9d25bdab 100644 --- a/src/Endpoint/PostCredentialsItem.php +++ b/src/Endpoint/PostCredentialsItem.php @@ -48,10 +48,12 @@ public function getExtraHeaders(): array * * @return \Gyroscops\Api\Model\Token|null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Token::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Token', 'json'); } } diff --git a/src/Endpoint/PostEnvironmentCollection.php b/src/Endpoint/PostEnvironmentCollection.php index cc18a825..355fcdcb 100644 --- a/src/Endpoint/PostEnvironmentCollection.php +++ b/src/Endpoint/PostEnvironmentCollection.php @@ -13,15 +13,18 @@ class PostEnvironmentCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Creates a Environment resource. * * @param \Gyroscops\Api\Model\EnvironmentCreateEnvironmentInputJsonld|\Gyroscops\Api\Model\EnvironmentCreateEnvironmentInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct($requestBody = null) + public function __construct($requestBody = null, array $accept = []) { $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -31,13 +34,13 @@ public function getMethod(): string public function getUri(): string { - return '/environment/environment'; + return '/environment/environments'; } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\EnvironmentCreateEnvironmentInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\EnvironmentCreateEnvironmentInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -51,27 +54,38 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\EnvironmentRead|null + * @return \Gyroscops\Api\Model\EnvironmentJsonldRead|\Gyroscops\Api\Model\EnvironmentRead|null * * @throws \Gyroscops\Api\Exception\PostEnvironmentCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PostEnvironmentCollectionUnprocessableEntityException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\EnvironmentRead::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (201 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\EnvironmentJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\EnvironmentRead', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\PostEnvironmentCollectionBadRequestException(); + throw new \Gyroscops\Api\Exception\PostEnvironmentCollectionBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\PostEnvironmentCollectionUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\PostEnvironmentCollectionUnprocessableEntityException($response); } } diff --git a/src/Endpoint/PostForgotPassword.php b/src/Endpoint/PostForgotPassword.php index 8a6d845b..d27981b5 100644 --- a/src/Endpoint/PostForgotPassword.php +++ b/src/Endpoint/PostForgotPassword.php @@ -32,7 +32,7 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body, \JSON_THROW_ON_ERROR)]; + return [['Content-Type' => ['application/json']], json_encode($this->body)]; } return [[], null]; @@ -41,15 +41,19 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * + * @return null + * * @throws \Gyroscops\Api\Exception\PostForgotPasswordBadRequestException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); if (204 === $status) { return null; } if (400 === $status) { - throw new \Gyroscops\Api\Exception\PostForgotPasswordBadRequestException(); + throw new \Gyroscops\Api\Exception\PostForgotPasswordBadRequestException($response); } } diff --git a/src/Endpoint/PostForgotPasswordToken.php b/src/Endpoint/PostForgotPasswordToken.php index c01320ba..d5bb31f5 100644 --- a/src/Endpoint/PostForgotPasswordToken.php +++ b/src/Endpoint/PostForgotPasswordToken.php @@ -34,7 +34,7 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body, \JSON_THROW_ON_ERROR)]; + return [['Content-Type' => ['application/json']], json_encode($this->body)]; } return [[], null]; @@ -43,19 +43,23 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * + * @return null + * * @throws \Gyroscops\Api\Exception\PostForgotPasswordTokenBadRequestException * @throws \Gyroscops\Api\Exception\PostForgotPasswordTokenNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); if (204 === $status) { return null; } if (400 === $status) { - throw new \Gyroscops\Api\Exception\PostForgotPasswordTokenBadRequestException(); + throw new \Gyroscops\Api\Exception\PostForgotPasswordTokenBadRequestException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\PostForgotPasswordTokenNotFoundException(); + throw new \Gyroscops\Api\Exception\PostForgotPasswordTokenNotFoundException($response); } } diff --git a/src/Endpoint/PostOnPremiseRequestCollection.php b/src/Endpoint/PostOnPremiseRequestCollection.php index 45fb1d12..6bc6f9cd 100644 --- a/src/Endpoint/PostOnPremiseRequestCollection.php +++ b/src/Endpoint/PostOnPremiseRequestCollection.php @@ -13,15 +13,18 @@ class PostOnPremiseRequestCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Creates a OnPremiseRequest resource. * * @param \Gyroscops\Api\Model\OnPremiseRequestJsonldOnPremiseRequestWrite|\Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestWrite|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct($requestBody = null) + public function __construct($requestBody = null, array $accept = []) { $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -37,7 +40,7 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\OnPremiseRequestJsonldOnPremiseRequestWrite) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestWrite) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -51,27 +54,38 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestRead|null + * @return \Gyroscops\Api\Model\OnPremiseRequestJsonldOnPremiseRequestRead|\Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestRead|null * * @throws \Gyroscops\Api\Exception\PostOnPremiseRequestCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PostOnPremiseRequestCollectionUnprocessableEntityException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestRead::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (201 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\OnPremiseRequestJsonldOnPremiseRequestRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\OnPremiseRequestOnPremiseRequestRead', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\PostOnPremiseRequestCollectionBadRequestException(); + throw new \Gyroscops\Api\Exception\PostOnPremiseRequestCollectionBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\PostOnPremiseRequestCollectionUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\PostOnPremiseRequestCollectionUnprocessableEntityException($response); } } diff --git a/src/Endpoint/PostOrganizationCollection.php b/src/Endpoint/PostOrganizationCollection.php index f4fe5f1a..3c42cf86 100644 --- a/src/Endpoint/PostOrganizationCollection.php +++ b/src/Endpoint/PostOrganizationCollection.php @@ -13,15 +13,18 @@ class PostOrganizationCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Creates a Organization resource. * * @param \Gyroscops\Api\Model\OrganizationJsonld|\Gyroscops\Api\Model\Organization|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct($requestBody = null) + public function __construct($requestBody = null, array $accept = []) { $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -37,7 +40,7 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\OrganizationJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\Organization) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -51,27 +54,38 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Organization|null + * @return \Gyroscops\Api\Model\OrganizationJsonld|\Gyroscops\Api\Model\Organization|null * * @throws \Gyroscops\Api\Exception\PostOrganizationCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PostOrganizationCollectionUnprocessableEntityException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Organization::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (201 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\OrganizationJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Organization', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\PostOrganizationCollectionBadRequestException(); + throw new \Gyroscops\Api\Exception\PostOrganizationCollectionBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\PostOrganizationCollectionUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\PostOrganizationCollectionUnprocessableEntityException($response); } } diff --git a/src/Endpoint/PostReferralCodeCollection.php b/src/Endpoint/PostReferralCodeCollection.php index 7ad1b22b..e03b77ed 100644 --- a/src/Endpoint/PostReferralCodeCollection.php +++ b/src/Endpoint/PostReferralCodeCollection.php @@ -13,15 +13,18 @@ class PostReferralCodeCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Creates a ReferralCode resource. * * @param \Gyroscops\Api\Model\ReferralCodeJsonldReferralCodeWrite|\Gyroscops\Api\Model\ReferralCodeReferralCodeWrite|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct($requestBody = null) + public function __construct($requestBody = null, array $accept = []) { $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -37,7 +40,7 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\ReferralCodeJsonldReferralCodeWrite) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\ReferralCodeReferralCodeWrite) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -51,27 +54,38 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ReferralCodeReferralCodeRead|null + * @return \Gyroscops\Api\Model\ReferralCodeJsonldReferralCodeRead|\Gyroscops\Api\Model\ReferralCodeReferralCodeRead|null * * @throws \Gyroscops\Api\Exception\PostReferralCodeCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PostReferralCodeCollectionUnprocessableEntityException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\ReferralCodeReferralCodeRead::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (201 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ReferralCodeJsonldReferralCodeRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ReferralCodeReferralCodeRead', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\PostReferralCodeCollectionBadRequestException(); + throw new \Gyroscops\Api\Exception\PostReferralCodeCollectionBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\PostReferralCodeCollectionUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\PostReferralCodeCollectionUnprocessableEntityException($response); } } diff --git a/src/Endpoint/PostReferralRequestCollection.php b/src/Endpoint/PostReferralRequestCollection.php index 80202c47..08764f03 100644 --- a/src/Endpoint/PostReferralRequestCollection.php +++ b/src/Endpoint/PostReferralRequestCollection.php @@ -13,15 +13,18 @@ class PostReferralRequestCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Creates a ReferralRequest resource. * * @param \Gyroscops\Api\Model\ReferralRequestReferralRequestInputJsonld|\Gyroscops\Api\Model\ReferralRequestReferralRequestInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct($requestBody = null) + public function __construct($requestBody = null, array $accept = []) { $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -37,7 +40,7 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\ReferralRequestReferralRequestInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\ReferralRequestReferralRequestInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -51,27 +54,38 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ReferralRequestReferralRequestRead|null + * @return \Gyroscops\Api\Model\ReferralRequestJsonldReferralRequestRead|\Gyroscops\Api\Model\ReferralRequestReferralRequestRead|null * * @throws \Gyroscops\Api\Exception\PostReferralRequestCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PostReferralRequestCollectionUnprocessableEntityException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\ReferralRequestReferralRequestRead::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (201 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ReferralRequestJsonldReferralRequestRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ReferralRequestReferralRequestRead', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\PostReferralRequestCollectionBadRequestException(); + throw new \Gyroscops\Api\Exception\PostReferralRequestCollectionBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\PostReferralRequestCollectionUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\PostReferralRequestCollectionUnprocessableEntityException($response); } } diff --git a/src/Endpoint/PostScheduleCollection.php b/src/Endpoint/PostScheduleCollection.php deleted file mode 100644 index 22ac5ef7..00000000 --- a/src/Endpoint/PostScheduleCollection.php +++ /dev/null @@ -1,84 +0,0 @@ - Immediate - * 2 => Once - * 3 => Times - * 4 => Until. - * - * @param \Gyroscops\Api\Model\ScheduleDeclarePipelineScheduleCommandInputJsonld|\Gyroscops\Api\Model\ScheduleDeclarePipelineScheduleCommandInput|null $requestBody - */ - public function __construct($requestBody = null) - { - $this->body = $requestBody; - } - - public function getMethod(): string - { - return 'POST'; - } - - public function getUri(): string - { - return '/runtime/schedule'; - } - - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array - { - if ($this->body instanceof \Gyroscops\Api\Model\ScheduleDeclarePipelineScheduleCommandInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; - } - if ($this->body instanceof \Gyroscops\Api\Model\ScheduleDeclarePipelineScheduleCommandInput) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; - } - if ($this->body instanceof \Gyroscops\Api\Model\ScheduleDeclarePipelineScheduleCommandInput) { - return [['Content-Type' => ['text/html']], $this->body]; - } - - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - /** - * {@inheritdoc} - * - * @throws \Gyroscops\Api\Exception\PostScheduleCollectionBadRequestException - * @throws \Gyroscops\Api\Exception\PostScheduleCollectionUnprocessableEntityException - */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) - { - if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); - } - if (400 === $status) { - throw new \Gyroscops\Api\Exception\PostScheduleCollectionBadRequestException(); - } - if (422 === $status) { - throw new \Gyroscops\Api\Exception\PostScheduleCollectionUnprocessableEntityException(); - } - } - - public function getAuthenticationScopes(): array - { - return ['apiKey']; - } -} diff --git a/src/Endpoint/PostSecretCollection.php b/src/Endpoint/PostSecretCollection.php index df14d1b1..e9ab8335 100644 --- a/src/Endpoint/PostSecretCollection.php +++ b/src/Endpoint/PostSecretCollection.php @@ -13,15 +13,18 @@ class PostSecretCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Creates a Secret resource. * * @param \Gyroscops\Api\Model\SecretCreateSecretInputJsonld|\Gyroscops\Api\Model\SecretCreateSecretInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct($requestBody = null) + public function __construct($requestBody = null, array $accept = []) { $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -31,13 +34,13 @@ public function getMethod(): string public function getUri(): string { - return '/environment/secret'; + return '/environment/secrets'; } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\SecretCreateSecretInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\SecretCreateSecretInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -51,27 +54,38 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Secret|null + * @return \Gyroscops\Api\Model\SecretJsonld|\Gyroscops\Api\Model\Secret|null * * @throws \Gyroscops\Api\Exception\PostSecretCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PostSecretCollectionUnprocessableEntityException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Secret::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (201 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\SecretJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Secret', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\PostSecretCollectionBadRequestException(); + throw new \Gyroscops\Api\Exception\PostSecretCollectionBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\PostSecretCollectionUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\PostSecretCollectionUnprocessableEntityException($response); } } diff --git a/src/Endpoint/PostSubscriptionCollection.php b/src/Endpoint/PostSubscriptionCollection.php index 0bb3a395..e7e4b78f 100644 --- a/src/Endpoint/PostSubscriptionCollection.php +++ b/src/Endpoint/PostSubscriptionCollection.php @@ -13,15 +13,18 @@ class PostSubscriptionCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Creates a Subscription resource. * * @param \Gyroscops\Api\Model\SubscriptionJsonld|\Gyroscops\Api\Model\Subscription|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct($requestBody = null) + public function __construct($requestBody = null, array $accept = []) { $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -31,13 +34,13 @@ public function getMethod(): string public function getUri(): string { - return '/authentication/subscription/{id}'; + return '/authentication/subscriptions'; } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\SubscriptionJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\Subscription) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -51,27 +54,38 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Subscription|null + * @return \Gyroscops\Api\Model\SubscriptionJsonld|\Gyroscops\Api\Model\Subscription|null * * @throws \Gyroscops\Api\Exception\PostSubscriptionCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PostSubscriptionCollectionUnprocessableEntityException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Subscription::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (201 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\SubscriptionJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Subscription', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\PostSubscriptionCollectionBadRequestException(); + throw new \Gyroscops\Api\Exception\PostSubscriptionCollectionBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\PostSubscriptionCollectionUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\PostSubscriptionCollectionUnprocessableEntityException($response); } } diff --git a/src/Endpoint/PostUserAuthorizationCollection.php b/src/Endpoint/PostUserAuthorizationCollection.php index 28d2adc5..00877036 100644 --- a/src/Endpoint/PostUserAuthorizationCollection.php +++ b/src/Endpoint/PostUserAuthorizationCollection.php @@ -13,15 +13,18 @@ class PostUserAuthorizationCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Creates a UserAuthorization resource. * * @param \Gyroscops\Api\Model\UserAuthorizationJsonld|\Gyroscops\Api\Model\UserAuthorization|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct($requestBody = null) + public function __construct($requestBody = null, array $accept = []) { $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -37,7 +40,7 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\UserAuthorizationJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\UserAuthorization) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -51,27 +54,38 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\UserAuthorization|null + * @return \Gyroscops\Api\Model\UserAuthorizationJsonld|\Gyroscops\Api\Model\UserAuthorization|null * * @throws \Gyroscops\Api\Exception\PostUserAuthorizationCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PostUserAuthorizationCollectionUnprocessableEntityException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\UserAuthorization::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (201 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\UserAuthorizationJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\UserAuthorization', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\PostUserAuthorizationCollectionBadRequestException(); + throw new \Gyroscops\Api\Exception\PostUserAuthorizationCollectionBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\PostUserAuthorizationCollectionUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\PostUserAuthorizationCollectionUnprocessableEntityException($response); } } diff --git a/src/Endpoint/PostUserCollection.php b/src/Endpoint/PostUserCollection.php index fda8353c..3bc03b5f 100644 --- a/src/Endpoint/PostUserCollection.php +++ b/src/Endpoint/PostUserCollection.php @@ -13,15 +13,18 @@ class PostUserCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Creates a User resource. * * @param \Gyroscops\Api\Model\UserJsonld|\Gyroscops\Api\Model\User|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct($requestBody = null) + public function __construct($requestBody = null, array $accept = []) { $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -37,7 +40,7 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\UserJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\User) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -51,27 +54,38 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\User|null + * @return \Gyroscops\Api\Model\UserJsonld|\Gyroscops\Api\Model\User|null * * @throws \Gyroscops\Api\Exception\PostUserCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PostUserCollectionUnprocessableEntityException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\User::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (201 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\UserJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\User', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\PostUserCollectionBadRequestException(); + throw new \Gyroscops\Api\Exception\PostUserCollectionBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\PostUserCollectionUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\PostUserCollectionUnprocessableEntityException($response); } } diff --git a/src/Endpoint/PostWorkspaceCollection.php b/src/Endpoint/PostWorkspaceCollection.php index 71d6333e..01b4e87b 100644 --- a/src/Endpoint/PostWorkspaceCollection.php +++ b/src/Endpoint/PostWorkspaceCollection.php @@ -13,15 +13,18 @@ class PostWorkspaceCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Creates a Workspace resource. * * @param \Gyroscops\Api\Model\WorkspaceJsonld|\Gyroscops\Api\Model\Workspace|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct($requestBody = null) + public function __construct($requestBody = null, array $accept = []) { $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -37,7 +40,7 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\WorkspaceJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\Workspace) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -51,27 +54,38 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Workspace|null + * @return \Gyroscops\Api\Model\WorkspaceJsonld|\Gyroscops\Api\Model\Workspace|null * * @throws \Gyroscops\Api\Exception\PostWorkspaceCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PostWorkspaceCollectionUnprocessableEntityException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Workspace::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (201 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkspaceJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Workspace', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\PostWorkspaceCollectionBadRequestException(); + throw new \Gyroscops\Api\Exception\PostWorkspaceCollectionBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\PostWorkspaceCollectionUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\PostWorkspaceCollectionUnprocessableEntityException($response); } } diff --git a/src/Endpoint/PutAkeneoOauthTokenAkeneoOauthTokenCollection.php b/src/Endpoint/PutAkeneoOauthTokenAkeneoOauthTokenCollection.php index e5718cb9..c4211a45 100644 --- a/src/Endpoint/PutAkeneoOauthTokenAkeneoOauthTokenCollection.php +++ b/src/Endpoint/PutAkeneoOauthTokenAkeneoOauthTokenCollection.php @@ -13,15 +13,18 @@ class PutAkeneoOauthTokenAkeneoOauthTokenCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements \Gyroscops\Api\Runtime\Client\Endpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; + protected $accept; /** * Generate an Akeneo OAuth token. * * @param \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBody|\Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInput[]|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct($requestBody = null) + public function __construct($requestBody = null, array $accept = []) { $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -37,12 +40,12 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBody) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } - if (\is_array($this->body) && isset($this->body[0]) && $this->body[0] instanceof \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInput) { + if (is_array($this->body) and isset($this->body[0]) and $this->body[0] instanceof \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; } - if (\is_array($this->body) && isset($this->body[0]) && $this->body[0] instanceof \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInput) { + if (is_array($this->body) and isset($this->body[0]) and $this->body[0] instanceof \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInput) { return [['Content-Type' => ['text/html']], $this->body]; } @@ -51,25 +54,38 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * + * @return \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutLdjsonResponse200|null + * * @throws \Gyroscops\Api\Exception\PutAkeneoOauthTokenAkeneoOauthTokenCollectionBadRequestException * @throws \Gyroscops\Api\Exception\PutAkeneoOauthTokenAkeneoOauthTokenCollectionUnprocessableEntityException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthTokenPutLdjsonResponse200', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\PutAkeneoOauthTokenAkeneoOauthTokenCollectionBadRequestException(); + throw new \Gyroscops\Api\Exception\PutAkeneoOauthTokenAkeneoOauthTokenCollectionBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\PutAkeneoOauthTokenAkeneoOauthTokenCollectionUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\PutAkeneoOauthTokenAkeneoOauthTokenCollectionUnprocessableEntityException($response); } } diff --git a/src/Endpoint/PutAuthenticationToken.php b/src/Endpoint/PutAuthenticationToken.php index 9c1a8591..c319800a 100644 --- a/src/Endpoint/PutAuthenticationToken.php +++ b/src/Endpoint/PutAuthenticationToken.php @@ -32,7 +32,7 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body, \JSON_THROW_ON_ERROR)]; + return [['Content-Type' => ['application/json']], json_encode($this->body)]; } return [[], null]; @@ -45,11 +45,15 @@ public function getExtraHeaders(): array /** * {@inheritdoc} + * + * @return null */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return json_decode($body); } } diff --git a/src/Endpoint/PutExternalCollaboratorsOrganizationItem.php b/src/Endpoint/PutExternalCollaboratorsOrganizationItem.php new file mode 100644 index 00000000..fbe2b0e6 --- /dev/null +++ b/src/Endpoint/PutExternalCollaboratorsOrganizationItem.php @@ -0,0 +1,103 @@ +id = $id; + $this->body = $requestBody; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'PUT'; + } + + public function getUri(): string + { + return str_replace(['{id}'], [$this->id], '/authentication/authentication/organizations/{id}/external-collaborators'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Gyroscops\Api\Model\OrganizationJsonldAddCollaborators) { + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; + } + if ($this->body instanceof \Gyroscops\Api\Model\OrganizationAddCollaborators) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + if ($this->body instanceof \Gyroscops\Api\Model\OrganizationAddCollaborators) { + return [['Content-Type' => ['text/html']], $this->body]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; + } + + /** + * {@inheritdoc} + * + * @return \Gyroscops\Api\Model\OrganizationJsonld|\Gyroscops\Api\Model\Organization|null + * + * @throws \Gyroscops\Api\Exception\PutExternalCollaboratorsOrganizationItemBadRequestException + * @throws \Gyroscops\Api\Exception\PutExternalCollaboratorsOrganizationItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\PutExternalCollaboratorsOrganizationItemNotFoundException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\OrganizationJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Organization', 'json'); + } + } + if (400 === $status) { + throw new \Gyroscops\Api\Exception\PutExternalCollaboratorsOrganizationItemBadRequestException($response); + } + if (422 === $status) { + throw new \Gyroscops\Api\Exception\PutExternalCollaboratorsOrganizationItemUnprocessableEntityException($response); + } + if (404 === $status) { + throw new \Gyroscops\Api\Exception\PutExternalCollaboratorsOrganizationItemNotFoundException($response); + } + } + + public function getAuthenticationScopes(): array + { + return ['apiKey']; + } +} diff --git a/src/Endpoint/PutOfferItem.php b/src/Endpoint/PutOfferItem.php deleted file mode 100644 index b2e5fb91..00000000 --- a/src/Endpoint/PutOfferItem.php +++ /dev/null @@ -1,89 +0,0 @@ -id = $id; - $this->body = $requestBody; - } - - public function getMethod(): string - { - return 'PUT'; - } - - public function getUri(): string - { - return str_replace(['{id}'], [$this->id], '/authentication/offer/{id}'); - } - - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array - { - if ($this->body instanceof \Gyroscops\Api\Model\OfferJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; - } - if ($this->body instanceof \Gyroscops\Api\Model\Offer) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; - } - if ($this->body instanceof \Gyroscops\Api\Model\Offer) { - return [['Content-Type' => ['text/html']], $this->body]; - } - - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - /** - * {@inheritdoc} - * - * @return \Gyroscops\Api\Model\Offer|null - * - * @throws \Gyroscops\Api\Exception\PutOfferItemBadRequestException - * @throws \Gyroscops\Api\Exception\PutOfferItemUnprocessableEntityException - * @throws \Gyroscops\Api\Exception\PutOfferItemNotFoundException - */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) - { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Offer::class, 'json'); - } - if (400 === $status) { - throw new \Gyroscops\Api\Exception\PutOfferItemBadRequestException(); - } - if (422 === $status) { - throw new \Gyroscops\Api\Exception\PutOfferItemUnprocessableEntityException(); - } - if (404 === $status) { - throw new \Gyroscops\Api\Exception\PutOfferItemNotFoundException(); - } - } - - public function getAuthenticationScopes(): array - { - return ['apiKey']; - } -} diff --git a/src/Endpoint/PutOrganizationItem.php b/src/Endpoint/PutOrganizationItem.php index c87ef507..2fbe7175 100644 --- a/src/Endpoint/PutOrganizationItem.php +++ b/src/Endpoint/PutOrganizationItem.php @@ -14,17 +14,20 @@ class PutOrganizationItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint imp { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Replaces the Organization resource. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\OrganizationJsonld|\Gyroscops\Api\Model\Organization|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -34,13 +37,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/authentication/organization/{id}'); + return str_replace(['{id}'], [$this->id], '/authentication/organizations/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\OrganizationJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\Organization) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -54,31 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Organization|null + * @return \Gyroscops\Api\Model\OrganizationJsonld|\Gyroscops\Api\Model\Organization|null * * @throws \Gyroscops\Api\Exception\PutOrganizationItemBadRequestException * @throws \Gyroscops\Api\Exception\PutOrganizationItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\PutOrganizationItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Organization::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\OrganizationJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Organization', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\PutOrganizationItemBadRequestException(); + throw new \Gyroscops\Api\Exception\PutOrganizationItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\PutOrganizationItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\PutOrganizationItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\PutOrganizationItemNotFoundException(); + throw new \Gyroscops\Api\Exception\PutOrganizationItemNotFoundException($response); } } diff --git a/src/Endpoint/PutSubscriptionItem.php b/src/Endpoint/PutSubscriptionItem.php index 3ebcbc15..a5a4cb32 100644 --- a/src/Endpoint/PutSubscriptionItem.php +++ b/src/Endpoint/PutSubscriptionItem.php @@ -14,17 +14,20 @@ class PutSubscriptionItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint imp { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Replaces the Subscription resource. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\SubscriptionJsonld|\Gyroscops\Api\Model\Subscription|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -34,13 +37,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/authentication/subscription/{id}'); + return str_replace(['{id}'], [$this->id], '/authentication/subscriptions/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\SubscriptionJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\Subscription) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -54,31 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Subscription|null + * @return \Gyroscops\Api\Model\SubscriptionJsonld|\Gyroscops\Api\Model\Subscription|null * * @throws \Gyroscops\Api\Exception\PutSubscriptionItemBadRequestException * @throws \Gyroscops\Api\Exception\PutSubscriptionItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\PutSubscriptionItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Subscription::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\SubscriptionJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Subscription', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\PutSubscriptionItemBadRequestException(); + throw new \Gyroscops\Api\Exception\PutSubscriptionItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\PutSubscriptionItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\PutSubscriptionItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\PutSubscriptionItemNotFoundException(); + throw new \Gyroscops\Api\Exception\PutSubscriptionItemNotFoundException($response); } } diff --git a/src/Endpoint/PutSubscriptionOfferItem.php b/src/Endpoint/PutSubscriptionOfferItem.php new file mode 100644 index 00000000..2ad30844 --- /dev/null +++ b/src/Endpoint/PutSubscriptionOfferItem.php @@ -0,0 +1,103 @@ +id = $id; + $this->body = $requestBody; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'PUT'; + } + + public function getUri(): string + { + return str_replace(['{id}'], [$this->id], '/authentication/subscription-offers/{id}'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Gyroscops\Api\Model\SubscriptionOfferJsonldWrite) { + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; + } + if ($this->body instanceof \Gyroscops\Api\Model\SubscriptionOfferWrite) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + if ($this->body instanceof \Gyroscops\Api\Model\SubscriptionOfferWrite) { + return [['Content-Type' => ['text/html']], $this->body]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; + } + + /** + * {@inheritdoc} + * + * @return \Gyroscops\Api\Model\SubscriptionOfferJsonldRead|\Gyroscops\Api\Model\SubscriptionOfferRead|null + * + * @throws \Gyroscops\Api\Exception\PutSubscriptionOfferItemBadRequestException + * @throws \Gyroscops\Api\Exception\PutSubscriptionOfferItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\PutSubscriptionOfferItemNotFoundException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\SubscriptionOfferJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\SubscriptionOfferRead', 'json'); + } + } + if (400 === $status) { + throw new \Gyroscops\Api\Exception\PutSubscriptionOfferItemBadRequestException($response); + } + if (422 === $status) { + throw new \Gyroscops\Api\Exception\PutSubscriptionOfferItemUnprocessableEntityException($response); + } + if (404 === $status) { + throw new \Gyroscops\Api\Exception\PutSubscriptionOfferItemNotFoundException($response); + } + } + + public function getAuthenticationScopes(): array + { + return ['apiKey']; + } +} diff --git a/src/Endpoint/PutUserAuthorizationItem.php b/src/Endpoint/PutUserAuthorizationItem.php index 53970c30..53de9a28 100644 --- a/src/Endpoint/PutUserAuthorizationItem.php +++ b/src/Endpoint/PutUserAuthorizationItem.php @@ -14,17 +14,20 @@ class PutUserAuthorizationItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoin { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Replaces the UserAuthorization resource. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\UserAuthorizationJsonld|\Gyroscops\Api\Model\UserAuthorization|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -40,7 +43,7 @@ public function getUri(): string public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\UserAuthorizationJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\UserAuthorization) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -54,31 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\UserAuthorization|null + * @return \Gyroscops\Api\Model\UserAuthorizationJsonld|\Gyroscops\Api\Model\UserAuthorization|null * * @throws \Gyroscops\Api\Exception\PutUserAuthorizationItemBadRequestException * @throws \Gyroscops\Api\Exception\PutUserAuthorizationItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\PutUserAuthorizationItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\UserAuthorization::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\UserAuthorizationJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\UserAuthorization', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\PutUserAuthorizationItemBadRequestException(); + throw new \Gyroscops\Api\Exception\PutUserAuthorizationItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\PutUserAuthorizationItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\PutUserAuthorizationItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\PutUserAuthorizationItemNotFoundException(); + throw new \Gyroscops\Api\Exception\PutUserAuthorizationItemNotFoundException($response); } } diff --git a/src/Endpoint/PutUserItem.php b/src/Endpoint/PutUserItem.php index 3a5ffa72..ee706df0 100644 --- a/src/Endpoint/PutUserItem.php +++ b/src/Endpoint/PutUserItem.php @@ -14,17 +14,20 @@ class PutUserItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implements { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Replaces the User resource. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\UserJsonld|\Gyroscops\Api\Model\User|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -34,13 +37,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/authentication/user/{id}'); + return str_replace(['{id}'], [$this->id], '/authentication/users/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\UserJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\User) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -54,31 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\User|null + * @return \Gyroscops\Api\Model\UserJsonld|\Gyroscops\Api\Model\User|null * * @throws \Gyroscops\Api\Exception\PutUserItemBadRequestException * @throws \Gyroscops\Api\Exception\PutUserItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\PutUserItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\User::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\UserJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\User', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\PutUserItemBadRequestException(); + throw new \Gyroscops\Api\Exception\PutUserItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\PutUserItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\PutUserItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\PutUserItemNotFoundException(); + throw new \Gyroscops\Api\Exception\PutUserItemNotFoundException($response); } } diff --git a/src/Endpoint/PutWorkspaceItem.php b/src/Endpoint/PutWorkspaceItem.php index 0125a108..54823e11 100644 --- a/src/Endpoint/PutWorkspaceItem.php +++ b/src/Endpoint/PutWorkspaceItem.php @@ -14,17 +14,20 @@ class PutWorkspaceItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint implem { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Replaces the Workspace resource. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\WorkspaceJsonld|\Gyroscops\Api\Model\Workspace|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -34,13 +37,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/authentication/workspace/{id}'); + return str_replace(['{id}'], [$this->id], '/authentication/workspaces/{id}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\WorkspaceJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\Workspace) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -54,31 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Workspace|null + * @return \Gyroscops\Api\Model\WorkspaceJsonld|\Gyroscops\Api\Model\Workspace|null * * @throws \Gyroscops\Api\Exception\PutWorkspaceItemBadRequestException * @throws \Gyroscops\Api\Exception\PutWorkspaceItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\PutWorkspaceItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Workspace::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkspaceJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Workspace', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\PutWorkspaceItemBadRequestException(); + throw new \Gyroscops\Api\Exception\PutWorkspaceItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\PutWorkspaceItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\PutWorkspaceItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\PutWorkspaceItemNotFoundException(); + throw new \Gyroscops\Api\Exception\PutWorkspaceItemNotFoundException($response); } } diff --git a/src/Endpoint/RejectReferralRequestReferralRequestItem.php b/src/Endpoint/RejectReferralRequestReferralRequestItem.php index ef88c99b..2e384fad 100644 --- a/src/Endpoint/RejectReferralRequestReferralRequestItem.php +++ b/src/Endpoint/RejectReferralRequestReferralRequestItem.php @@ -14,17 +14,20 @@ class RejectReferralRequestReferralRequestItem extends \Gyroscops\Api\Runtime\Cl { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Rejects a referral request. * * @param string $id Resource identifier * @param null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -44,31 +47,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\ReferralRequestReferralRequestRead|null + * @return \Gyroscops\Api\Model\ReferralRequestJsonldReferralRequestRead|\Gyroscops\Api\Model\ReferralRequestReferralRequestRead|null * * @throws \Gyroscops\Api\Exception\RejectReferralRequestReferralRequestItemBadRequestException * @throws \Gyroscops\Api\Exception\RejectReferralRequestReferralRequestItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\RejectReferralRequestReferralRequestItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\ReferralRequestReferralRequestRead::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ReferralRequestJsonldReferralRequestRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ReferralRequestReferralRequestRead', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\RejectReferralRequestReferralRequestItemBadRequestException(); + throw new \Gyroscops\Api\Exception\RejectReferralRequestReferralRequestItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\RejectReferralRequestReferralRequestItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\RejectReferralRequestReferralRequestItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\RejectReferralRequestReferralRequestItemNotFoundException(); + throw new \Gyroscops\Api\Exception\RejectReferralRequestReferralRequestItemNotFoundException($response); } } diff --git a/src/Endpoint/RemoveComposerAuthPipelinePipelineItem.php b/src/Endpoint/RemoveComposerAuthPipelinePipelineItem.php index 319b43bc..cd5c5fb8 100644 --- a/src/Endpoint/RemoveComposerAuthPipelinePipelineItem.php +++ b/src/Endpoint/RemoveComposerAuthPipelinePipelineItem.php @@ -14,17 +14,20 @@ class RemoveComposerAuthPipelinePipelineItem extends \Gyroscops\Api\Runtime\Clie { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Removes a composer auth from a pipeline. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandInputJsonld|\Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -34,13 +37,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/pipeline/{id}/remove-composer-auth'); + return str_replace(['{id}'], [$this->id], '/runtime/pipelines/{id}/remove-composer-auth'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -54,29 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * + * @return \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandJsonldRead|null + * * @throws \Gyroscops\Api\Exception\RemoveComposerAuthPipelinePipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\RemoveComposerAuthPipelinePipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\RemoveComposerAuthPipelinePipelineItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerAuthCommandJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\RemoveComposerAuthPipelinePipelineItemBadRequestException(); + throw new \Gyroscops\Api\Exception\RemoveComposerAuthPipelinePipelineItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\RemoveComposerAuthPipelinePipelineItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\RemoveComposerAuthPipelinePipelineItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\RemoveComposerAuthPipelinePipelineItemNotFoundException(); + throw new \Gyroscops\Api\Exception\RemoveComposerAuthPipelinePipelineItemNotFoundException($response); } } diff --git a/src/Endpoint/RemoveComposerAutoloadPipelinePipelineItem.php b/src/Endpoint/RemoveComposerAutoloadPipelinePipelineItem.php index ec7e05f8..46bbcc09 100644 --- a/src/Endpoint/RemoveComposerAutoloadPipelinePipelineItem.php +++ b/src/Endpoint/RemoveComposerAutoloadPipelinePipelineItem.php @@ -14,17 +14,20 @@ class RemoveComposerAutoloadPipelinePipelineItem extends \Gyroscops\Api\Runtime\ { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Removes PSR4 autoload composer from a pipeline. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonld|\Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -34,13 +37,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/pipeline/{id}/remove-composer-autoload'); + return str_replace(['{id}'], [$this->id], '/runtime/pipelines/{id}/remove-psr4-autoload'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -54,29 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * + * @return \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldRead|null + * * @throws \Gyroscops\Api\Exception\RemoveComposerAutoloadPipelinePipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\RemoveComposerAutoloadPipelinePipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\RemoveComposerAutoloadPipelinePipelineItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\RemoveComposerAutoloadPipelinePipelineItemBadRequestException(); + throw new \Gyroscops\Api\Exception\RemoveComposerAutoloadPipelinePipelineItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\RemoveComposerAutoloadPipelinePipelineItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\RemoveComposerAutoloadPipelinePipelineItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\RemoveComposerAutoloadPipelinePipelineItemNotFoundException(); + throw new \Gyroscops\Api\Exception\RemoveComposerAutoloadPipelinePipelineItemNotFoundException($response); } } diff --git a/src/Endpoint/RemoveComposerPackagePipelinePipelineItem.php b/src/Endpoint/RemoveComposerPackagePipelinePipelineItem.php index d61e1a03..5a3ef6fd 100644 --- a/src/Endpoint/RemoveComposerPackagePipelinePipelineItem.php +++ b/src/Endpoint/RemoveComposerPackagePipelinePipelineItem.php @@ -14,17 +14,20 @@ class RemoveComposerPackagePipelinePipelineItem extends \Gyroscops\Api\Runtime\C { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Removes a composer package from a pipeline. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandInputJsonld|\Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -34,13 +37,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/pipeline/{id}/remove-composer-package'); + return str_replace(['{id}'], [$this->id], '/runtime/pipelines/{id}/remove-composer-package'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -54,29 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * + * @return \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandJsonldRead|null + * * @throws \Gyroscops\Api\Exception\RemoveComposerPackagePipelinePipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\RemoveComposerPackagePipelinePipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\RemoveComposerPackagePipelinePipelineItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerPackageCommandJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\RemoveComposerPackagePipelinePipelineItemBadRequestException(); + throw new \Gyroscops\Api\Exception\RemoveComposerPackagePipelinePipelineItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\RemoveComposerPackagePipelinePipelineItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\RemoveComposerPackagePipelinePipelineItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\RemoveComposerPackagePipelinePipelineItemNotFoundException(); + throw new \Gyroscops\Api\Exception\RemoveComposerPackagePipelinePipelineItemNotFoundException($response); } } diff --git a/src/Endpoint/RemoveComposerRepositoryPipelinePipelineItem.php b/src/Endpoint/RemoveComposerRepositoryPipelinePipelineItem.php index 01f3a9c9..21cd237b 100644 --- a/src/Endpoint/RemoveComposerRepositoryPipelinePipelineItem.php +++ b/src/Endpoint/RemoveComposerRepositoryPipelinePipelineItem.php @@ -14,17 +14,20 @@ class RemoveComposerRepositoryPipelinePipelineItem extends \Gyroscops\Api\Runtim { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Adds a repository from a pipeline. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandInputJsonld|\Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -34,13 +37,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/pipeline/{id}/remove-composer-repository'); + return str_replace(['{id}'], [$this->id], '/runtime/pipelines/{id}/remove-composer-repository'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -54,29 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * + * @return \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandJsonldRead|null + * * @throws \Gyroscops\Api\Exception\RemoveComposerRepositoryPipelinePipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\RemoveComposerRepositoryPipelinePipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\RemoveComposerRepositoryPipelinePipelineItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerRepositoryCommandJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\RemoveComposerRepositoryPipelinePipelineItemBadRequestException(); + throw new \Gyroscops\Api\Exception\RemoveComposerRepositoryPipelinePipelineItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\RemoveComposerRepositoryPipelinePipelineItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\RemoveComposerRepositoryPipelinePipelineItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\RemoveComposerRepositoryPipelinePipelineItemNotFoundException(); + throw new \Gyroscops\Api\Exception\RemoveComposerRepositoryPipelinePipelineItemNotFoundException($response); } } diff --git a/src/Endpoint/RemovePipelineStepProbePipelineItem.php b/src/Endpoint/RemovePipelineStepProbePipelineItem.php index d84eb3c2..fdd91291 100644 --- a/src/Endpoint/RemovePipelineStepProbePipelineItem.php +++ b/src/Endpoint/RemovePipelineStepProbePipelineItem.php @@ -38,7 +38,7 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{code}', '{probe_code}', '{id}'], [$this->code, $this->probe_code, $this->id], '/runtime/pipeline/{id}/step/{code}/probe/{probeCode}'); + return str_replace(['{code}', '{probe_code}', '{id}'], [$this->code, $this->probe_code, $this->id], '/runtime/pipelines/{id}/steps/{code}/probes/{probeCode}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array @@ -49,15 +49,19 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria /** * {@inheritdoc} * + * @return null + * * @throws \Gyroscops\Api\Exception\RemovePipelineStepProbePipelineItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); if (204 === $status) { return null; } if (404 === $status) { - throw new \Gyroscops\Api\Exception\RemovePipelineStepProbePipelineItemNotFoundException(); + throw new \Gyroscops\Api\Exception\RemovePipelineStepProbePipelineItemNotFoundException($response); } } diff --git a/src/Endpoint/RemoveValuesConfigurationItem.php b/src/Endpoint/RemoveValuesConfigurationItem.php index aab9834b..78e64a55 100644 --- a/src/Endpoint/RemoveValuesConfigurationItem.php +++ b/src/Endpoint/RemoveValuesConfigurationItem.php @@ -14,17 +14,20 @@ class RemoveValuesConfigurationItem extends \Gyroscops\Api\Runtime\Client\BaseEn { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Remove some configuration values inside an existing configurations storage. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\ConfigurationRemoveConfigurationValueInputJsonld|\Gyroscops\Api\Model\ConfigurationRemoveConfigurationValueInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -34,13 +37,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/environment/configuration/{id}/remove'); + return str_replace(['{id}'], [$this->id], '/environment/configurations/{id}/remove'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\ConfigurationRemoveConfigurationValueInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\ConfigurationRemoveConfigurationValueInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -54,31 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Configuration|null + * @return \Gyroscops\Api\Model\ConfigurationJsonld|\Gyroscops\Api\Model\Configuration|null * * @throws \Gyroscops\Api\Exception\RemoveValuesConfigurationItemBadRequestException * @throws \Gyroscops\Api\Exception\RemoveValuesConfigurationItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\RemoveValuesConfigurationItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Configuration::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ConfigurationJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Configuration', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\RemoveValuesConfigurationItemBadRequestException(); + throw new \Gyroscops\Api\Exception\RemoveValuesConfigurationItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\RemoveValuesConfigurationItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\RemoveValuesConfigurationItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\RemoveValuesConfigurationItemNotFoundException(); + throw new \Gyroscops\Api\Exception\RemoveValuesConfigurationItemNotFoundException($response); } } diff --git a/src/Endpoint/RemoveValuesSecretItem.php b/src/Endpoint/RemoveValuesSecretItem.php index f8b228f7..560f680c 100644 --- a/src/Endpoint/RemoveValuesSecretItem.php +++ b/src/Endpoint/RemoveValuesSecretItem.php @@ -14,17 +14,20 @@ class RemoveValuesSecretItem extends \Gyroscops\Api\Runtime\Client\BaseEndpoint { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Remove some secret values inside an existing secrets storage. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\SecretRemoveSecretValueInputJsonld|\Gyroscops\Api\Model\SecretRemoveSecretValueInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -34,13 +37,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/environment/secret/{id}/remove'); + return str_replace(['{id}'], [$this->id], '/environment/secrets/{id}/remove'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\SecretRemoveSecretValueInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\SecretRemoveSecretValueInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -54,31 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * - * @return \Gyroscops\Api\Model\Secret|null + * @return \Gyroscops\Api\Model\SecretJsonld|\Gyroscops\Api\Model\Secret|null * * @throws \Gyroscops\Api\Exception\RemoveValuesSecretItemBadRequestException * @throws \Gyroscops\Api\Exception\RemoveValuesSecretItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\RemoveValuesSecretItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, \Gyroscops\Api\Model\Secret::class, 'json'); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (200 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\SecretJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\Secret', 'json'); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\RemoveValuesSecretItemBadRequestException(); + throw new \Gyroscops\Api\Exception\RemoveValuesSecretItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\RemoveValuesSecretItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\RemoveValuesSecretItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\RemoveValuesSecretItemNotFoundException(); + throw new \Gyroscops\Api\Exception\RemoveValuesSecretItemNotFoundException($response); } } diff --git a/src/Endpoint/ReorderPipelineStepsPipelineItem.php b/src/Endpoint/ReorderPipelineStepsPipelineItem.php index 59dc3af5..07bd3bce 100644 --- a/src/Endpoint/ReorderPipelineStepsPipelineItem.php +++ b/src/Endpoint/ReorderPipelineStepsPipelineItem.php @@ -14,17 +14,20 @@ class ReorderPipelineStepsPipelineItem extends \Gyroscops\Api\Runtime\Client\Bas { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Reorganizes the steps of a pipeline according to a given order. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandInputJsonld|\Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -34,13 +37,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/pipeline/{id}/steps/reorder'); + return str_replace(['{id}'], [$this->id], '/runtime/pipelines/{id}/steps/reorder'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -54,29 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * + * @return \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandJsonldRead|null + * * @throws \Gyroscops\Api\Exception\ReorderPipelineStepsPipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\ReorderPipelineStepsPipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\ReorderPipelineStepsPipelineItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineReorderPipelineStepsCommandJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\ReorderPipelineStepsPipelineItemBadRequestException(); + throw new \Gyroscops\Api\Exception\ReorderPipelineStepsPipelineItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\ReorderPipelineStepsPipelineItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\ReorderPipelineStepsPipelineItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\ReorderPipelineStepsPipelineItemNotFoundException(); + throw new \Gyroscops\Api\Exception\ReorderPipelineStepsPipelineItemNotFoundException($response); } } diff --git a/src/Endpoint/ReplacePipelineStepPipelineItem.php b/src/Endpoint/ReplacePipelineStepPipelineItem.php index 91eb8b9c..de5ad6b9 100644 --- a/src/Endpoint/ReplacePipelineStepPipelineItem.php +++ b/src/Endpoint/ReplacePipelineStepPipelineItem.php @@ -14,17 +14,20 @@ class ReplacePipelineStepPipelineItem extends \Gyroscops\Api\Runtime\Client\Base { use \Gyroscops\Api\Runtime\Client\EndpointTrait; protected $id; + protected $accept; /** * Replaces a step by another one in a pipeline. * * @param string $id Resource identifier * @param \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandInputJsonld|\Gyroscops\Api\Model\PipelineReplacePipelineStepCommandInput|null $requestBody + * @param array $accept Accept content header application/ld+json|application/json|text/html */ - public function __construct(string $id, $requestBody = null) + public function __construct(string $id, $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; + $this->accept = $accept; } public function getMethod(): string @@ -34,13 +37,13 @@ public function getMethod(): string public function getUri(): string { - return str_replace(['{id}'], [$this->id], '/runtime/pipeline/{id}/step/{code}/replace'); + return str_replace(['{id}'], [$this->id], '/runtime/pipelines/{id}/steps/{code}/replace'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array { if ($this->body instanceof \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; } if ($this->body instanceof \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandInput) { return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; @@ -54,29 +57,42 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria public function getExtraHeaders(): array { - return ['Accept' => ['application/json']]; + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; } /** * {@inheritdoc} * + * @return \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandJsonldRead|null + * * @throws \Gyroscops\Api\Exception\ReplacePipelineStepPipelineItemBadRequestException * @throws \Gyroscops\Api\Exception\ReplacePipelineStepPipelineItemUnprocessableEntityException * @throws \Gyroscops\Api\Exception\ReplacePipelineStepPipelineItemNotFoundException */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { - if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\PipelineReplacePipelineStepCommandJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } } if (400 === $status) { - throw new \Gyroscops\Api\Exception\ReplacePipelineStepPipelineItemBadRequestException(); + throw new \Gyroscops\Api\Exception\ReplacePipelineStepPipelineItemBadRequestException($response); } if (422 === $status) { - throw new \Gyroscops\Api\Exception\ReplacePipelineStepPipelineItemUnprocessableEntityException(); + throw new \Gyroscops\Api\Exception\ReplacePipelineStepPipelineItemUnprocessableEntityException($response); } if (404 === $status) { - throw new \Gyroscops\Api\Exception\ReplacePipelineStepPipelineItemNotFoundException(); + throw new \Gyroscops\Api\Exception\ReplacePipelineStepPipelineItemNotFoundException($response); } } diff --git a/src/Endpoint/ResumeExecutionExecutionItem.php b/src/Endpoint/ResumeExecutionExecutionItem.php deleted file mode 100644 index eb90f19b..00000000 --- a/src/Endpoint/ResumeExecutionExecutionItem.php +++ /dev/null @@ -1,87 +0,0 @@ -id = $id; - $this->body = $requestBody; - } - - public function getMethod(): string - { - return 'PUT'; - } - - public function getUri(): string - { - return str_replace(['{id}'], [$this->id], '/runtime/execution/{id}/resume'); - } - - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array - { - if ($this->body instanceof \Gyroscops\Api\Model\ExecutionResumePipelineExecutionCommandInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; - } - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body, \JSON_THROW_ON_ERROR)]; - } - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['text/html']], $this->body]; - } - - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - /** - * {@inheritdoc} - * - * @throws \Gyroscops\Api\Exception\ResumeExecutionExecutionItemBadRequestException - * @throws \Gyroscops\Api\Exception\ResumeExecutionExecutionItemUnprocessableEntityException - * @throws \Gyroscops\Api\Exception\ResumeExecutionExecutionItemNotFoundException - */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) - { - if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); - } - if (400 === $status) { - throw new \Gyroscops\Api\Exception\ResumeExecutionExecutionItemBadRequestException(); - } - if (422 === $status) { - throw new \Gyroscops\Api\Exception\ResumeExecutionExecutionItemUnprocessableEntityException(); - } - if (404 === $status) { - throw new \Gyroscops\Api\Exception\ResumeExecutionExecutionItemNotFoundException(); - } - } - - public function getAuthenticationScopes(): array - { - return ['apiKey']; - } -} diff --git a/src/Endpoint/ResumeExecutionExecutionWorkflowItem.php b/src/Endpoint/ResumeExecutionExecutionWorkflowItem.php new file mode 100644 index 00000000..22632063 --- /dev/null +++ b/src/Endpoint/ResumeExecutionExecutionWorkflowItem.php @@ -0,0 +1,103 @@ +id = $id; + $this->body = $requestBody; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'PUT'; + } + + public function getUri(): string + { + return str_replace(['{id}'], [$this->id], '/runtime/executions/{id}/resume'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Gyroscops\Api\Model\ExecutionWorkflowResumeWorkflowExecutionCommandInputJsonld) { + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; + } + if ($this->body instanceof \stdClass) { + return [['Content-Type' => ['application/json']], json_encode($this->body)]; + } + if ($this->body instanceof \stdClass) { + return [['Content-Type' => ['text/html']], $this->body]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; + } + + /** + * {@inheritdoc} + * + * @return \Gyroscops\Api\Model\ExecutionWorkflowResumeWorkflowExecutionCommandJsonld|\Gyroscops\Api\Model\ExecutionWorkflowResumeWorkflowExecutionCommand|null + * + * @throws \Gyroscops\Api\Exception\ResumeExecutionExecutionWorkflowItemBadRequestException + * @throws \Gyroscops\Api\Exception\ResumeExecutionExecutionWorkflowItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\ResumeExecutionExecutionWorkflowItemNotFoundException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflowResumeWorkflowExecutionCommandJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflowResumeWorkflowExecutionCommand', 'json'); + } + } + if (400 === $status) { + throw new \Gyroscops\Api\Exception\ResumeExecutionExecutionWorkflowItemBadRequestException($response); + } + if (422 === $status) { + throw new \Gyroscops\Api\Exception\ResumeExecutionExecutionWorkflowItemUnprocessableEntityException($response); + } + if (404 === $status) { + throw new \Gyroscops\Api\Exception\ResumeExecutionExecutionWorkflowItemNotFoundException($response); + } + } + + public function getAuthenticationScopes(): array + { + return ['apiKey']; + } +} diff --git a/src/Endpoint/SoftDeleteWorkflowItem.php b/src/Endpoint/SoftDeleteWorkflowItem.php new file mode 100644 index 00000000..6fbc8f12 --- /dev/null +++ b/src/Endpoint/SoftDeleteWorkflowItem.php @@ -0,0 +1,103 @@ +id = $id; + $this->body = $requestBody; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'PUT'; + } + + public function getUri(): string + { + return str_replace(['{id}'], [$this->id], '/runtime/workflows/{id}/delete'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Gyroscops\Api\Model\WorkflowRemoveWorkflowCommandInputJsonld) { + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; + } + if ($this->body instanceof \stdClass) { + return [['Content-Type' => ['application/json']], json_encode($this->body)]; + } + if ($this->body instanceof \stdClass) { + return [['Content-Type' => ['text/html']], $this->body]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; + } + + /** + * {@inheritdoc} + * + * @return \Gyroscops\Api\Model\WorkflowRemoveWorkflowCommandJsonldRead|null + * + * @throws \Gyroscops\Api\Exception\SoftDeleteWorkflowItemBadRequestException + * @throws \Gyroscops\Api\Exception\SoftDeleteWorkflowItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\SoftDeleteWorkflowItemNotFoundException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkflowRemoveWorkflowCommandJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } + } + if (400 === $status) { + throw new \Gyroscops\Api\Exception\SoftDeleteWorkflowItemBadRequestException($response); + } + if (422 === $status) { + throw new \Gyroscops\Api\Exception\SoftDeleteWorkflowItemUnprocessableEntityException($response); + } + if (404 === $status) { + throw new \Gyroscops\Api\Exception\SoftDeleteWorkflowItemNotFoundException($response); + } + } + + public function getAuthenticationScopes(): array + { + return ['apiKey']; + } +} diff --git a/src/Endpoint/StartExecutionExecutionItem.php b/src/Endpoint/StartExecutionExecutionItem.php deleted file mode 100644 index 0b30915b..00000000 --- a/src/Endpoint/StartExecutionExecutionItem.php +++ /dev/null @@ -1,87 +0,0 @@ -id = $id; - $this->body = $requestBody; - } - - public function getMethod(): string - { - return 'PUT'; - } - - public function getUri(): string - { - return str_replace(['{id}'], [$this->id], '/runtime/execution/{id}/start'); - } - - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array - { - if ($this->body instanceof \Gyroscops\Api\Model\ExecutionStartPipelineExecutionCommandInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; - } - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['application/json']], json_encode($this->body, \JSON_THROW_ON_ERROR)]; - } - if ($this->body instanceof \stdClass) { - return [['Content-Type' => ['text/html']], $this->body]; - } - - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - /** - * {@inheritdoc} - * - * @throws \Gyroscops\Api\Exception\StartExecutionExecutionItemBadRequestException - * @throws \Gyroscops\Api\Exception\StartExecutionExecutionItemUnprocessableEntityException - * @throws \Gyroscops\Api\Exception\StartExecutionExecutionItemNotFoundException - */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) - { - if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); - } - if (400 === $status) { - throw new \Gyroscops\Api\Exception\StartExecutionExecutionItemBadRequestException(); - } - if (422 === $status) { - throw new \Gyroscops\Api\Exception\StartExecutionExecutionItemUnprocessableEntityException(); - } - if (404 === $status) { - throw new \Gyroscops\Api\Exception\StartExecutionExecutionItemNotFoundException(); - } - } - - public function getAuthenticationScopes(): array - { - return ['apiKey']; - } -} diff --git a/src/Endpoint/TerminateExecutionExecutionItem.php b/src/Endpoint/TerminateExecutionExecutionItem.php deleted file mode 100644 index 17e54cba..00000000 --- a/src/Endpoint/TerminateExecutionExecutionItem.php +++ /dev/null @@ -1,87 +0,0 @@ -id = $id; - $this->body = $requestBody; - } - - public function getMethod(): string - { - return 'PUT'; - } - - public function getUri(): string - { - return str_replace(['{id}'], [$this->id], '/runtime/execution/{id}/terminate'); - } - - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array - { - if ($this->body instanceof \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; - } - if ($this->body instanceof \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandInput) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; - } - if ($this->body instanceof \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandInput) { - return [['Content-Type' => ['text/html']], $this->body]; - } - - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - /** - * {@inheritdoc} - * - * @throws \Gyroscops\Api\Exception\TerminateExecutionExecutionItemBadRequestException - * @throws \Gyroscops\Api\Exception\TerminateExecutionExecutionItemUnprocessableEntityException - * @throws \Gyroscops\Api\Exception\TerminateExecutionExecutionItemNotFoundException - */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) - { - if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); - } - if (400 === $status) { - throw new \Gyroscops\Api\Exception\TerminateExecutionExecutionItemBadRequestException(); - } - if (422 === $status) { - throw new \Gyroscops\Api\Exception\TerminateExecutionExecutionItemUnprocessableEntityException(); - } - if (404 === $status) { - throw new \Gyroscops\Api\Exception\TerminateExecutionExecutionItemNotFoundException(); - } - } - - public function getAuthenticationScopes(): array - { - return ['apiKey']; - } -} diff --git a/src/Endpoint/TerminateExecutionExecutionWorkflowItem.php b/src/Endpoint/TerminateExecutionExecutionWorkflowItem.php new file mode 100644 index 00000000..b5e61b73 --- /dev/null +++ b/src/Endpoint/TerminateExecutionExecutionWorkflowItem.php @@ -0,0 +1,103 @@ +id = $id; + $this->body = $requestBody; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'PUT'; + } + + public function getUri(): string + { + return str_replace(['{id}'], [$this->id], '/runtime/executions/{id}/terminate'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Gyroscops\Api\Model\ExecutionWorkflowTerminateWorkflowExecutionCommandInputJsonld) { + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; + } + if ($this->body instanceof \Gyroscops\Api\Model\ExecutionWorkflowTerminateWorkflowExecutionCommandInput) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + if ($this->body instanceof \Gyroscops\Api\Model\ExecutionWorkflowTerminateWorkflowExecutionCommandInput) { + return [['Content-Type' => ['text/html']], $this->body]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; + } + + /** + * {@inheritdoc} + * + * @return \Gyroscops\Api\Model\ExecutionWorkflowTerminateWorkflowExecutionCommandJsonld|\Gyroscops\Api\Model\ExecutionWorkflowTerminateWorkflowExecutionCommand|null + * + * @throws \Gyroscops\Api\Exception\TerminateExecutionExecutionWorkflowItemBadRequestException + * @throws \Gyroscops\Api\Exception\TerminateExecutionExecutionWorkflowItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\TerminateExecutionExecutionWorkflowItemNotFoundException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflowTerminateWorkflowExecutionCommandJsonld', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\ExecutionWorkflowTerminateWorkflowExecutionCommand', 'json'); + } + } + if (400 === $status) { + throw new \Gyroscops\Api\Exception\TerminateExecutionExecutionWorkflowItemBadRequestException($response); + } + if (422 === $status) { + throw new \Gyroscops\Api\Exception\TerminateExecutionExecutionWorkflowItemUnprocessableEntityException($response); + } + if (404 === $status) { + throw new \Gyroscops\Api\Exception\TerminateExecutionExecutionWorkflowItemNotFoundException($response); + } + } + + public function getAuthenticationScopes(): array + { + return ['apiKey']; + } +} diff --git a/src/Endpoint/UpdateExecutionStateExecutionItem.php b/src/Endpoint/UpdateExecutionStateExecutionItem.php deleted file mode 100644 index e5aff3cb..00000000 --- a/src/Endpoint/UpdateExecutionStateExecutionItem.php +++ /dev/null @@ -1,87 +0,0 @@ -id = $id; - $this->body = $requestBody; - } - - public function getMethod(): string - { - return 'PUT'; - } - - public function getUri(): string - { - return str_replace(['{id}'], [$this->id], '/runtime/execution/{id}/update-state'); - } - - public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array - { - if ($this->body instanceof \Gyroscops\Api\Model\ExecutionUpdatePipelineExecutionStateCommandInputJsonld) { - return [['Content-Type' => ['application/ld+json']], $this->body]; - } - if ($this->body instanceof \Gyroscops\Api\Model\ExecutionUpdatePipelineExecutionStateCommandInput) { - return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; - } - if ($this->body instanceof \Gyroscops\Api\Model\ExecutionUpdatePipelineExecutionStateCommandInput) { - return [['Content-Type' => ['text/html']], $this->body]; - } - - return [[], null]; - } - - public function getExtraHeaders(): array - { - return ['Accept' => ['application/json']]; - } - - /** - * {@inheritdoc} - * - * @throws \Gyroscops\Api\Exception\UpdateExecutionStateExecutionItemBadRequestException - * @throws \Gyroscops\Api\Exception\UpdateExecutionStateExecutionItemUnprocessableEntityException - * @throws \Gyroscops\Api\Exception\UpdateExecutionStateExecutionItemNotFoundException - */ - protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) - { - if ((null === $contentType) === false && (202 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return json_decode($body, null, 512, \JSON_THROW_ON_ERROR); - } - if (400 === $status) { - throw new \Gyroscops\Api\Exception\UpdateExecutionStateExecutionItemBadRequestException(); - } - if (422 === $status) { - throw new \Gyroscops\Api\Exception\UpdateExecutionStateExecutionItemUnprocessableEntityException(); - } - if (404 === $status) { - throw new \Gyroscops\Api\Exception\UpdateExecutionStateExecutionItemNotFoundException(); - } - } - - public function getAuthenticationScopes(): array - { - return ['apiKey']; - } -} diff --git a/src/Endpoint/WorkflowCompilationWorkflowItem.php b/src/Endpoint/WorkflowCompilationWorkflowItem.php new file mode 100644 index 00000000..bafb27ed --- /dev/null +++ b/src/Endpoint/WorkflowCompilationWorkflowItem.php @@ -0,0 +1,103 @@ +id = $id; + $this->body = $requestBody; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'PUT'; + } + + public function getUri(): string + { + return str_replace(['{id}'], [$this->id], '/runtime/workflows/{id}/compile'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Gyroscops\Api\Model\WorkflowCompileWorkflowCommandInputJsonld) { + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; + } + if ($this->body instanceof \stdClass) { + return [['Content-Type' => ['application/json']], json_encode($this->body)]; + } + if ($this->body instanceof \stdClass) { + return [['Content-Type' => ['text/html']], $this->body]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; + } + + /** + * {@inheritdoc} + * + * @return \Gyroscops\Api\Model\WorkflowCompileWorkflowCommandJsonldRead|null + * + * @throws \Gyroscops\Api\Exception\WorkflowCompilationWorkflowItemBadRequestException + * @throws \Gyroscops\Api\Exception\WorkflowCompilationWorkflowItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\WorkflowCompilationWorkflowItemNotFoundException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkflowCompileWorkflowCommandJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } + } + if (400 === $status) { + throw new \Gyroscops\Api\Exception\WorkflowCompilationWorkflowItemBadRequestException($response); + } + if (422 === $status) { + throw new \Gyroscops\Api\Exception\WorkflowCompilationWorkflowItemUnprocessableEntityException($response); + } + if (404 === $status) { + throw new \Gyroscops\Api\Exception\WorkflowCompilationWorkflowItemNotFoundException($response); + } + } + + public function getAuthenticationScopes(): array + { + return ['apiKey']; + } +} diff --git a/src/Endpoint/WorkflowScheduleCrontabWorkflowItem.php b/src/Endpoint/WorkflowScheduleCrontabWorkflowItem.php new file mode 100644 index 00000000..ef795fd0 --- /dev/null +++ b/src/Endpoint/WorkflowScheduleCrontabWorkflowItem.php @@ -0,0 +1,103 @@ +id = $id; + $this->body = $requestBody; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'PUT'; + } + + public function getUri(): string + { + return str_replace(['{id}'], [$this->id], '/runtime/workflows/{id}/schedule-crontab'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Gyroscops\Api\Model\WorkflowDeclareWorkflowScheduleCrontabCommandInputJsonld) { + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; + } + if ($this->body instanceof \Gyroscops\Api\Model\WorkflowDeclareWorkflowScheduleCrontabCommandInput) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + if ($this->body instanceof \Gyroscops\Api\Model\WorkflowDeclareWorkflowScheduleCrontabCommandInput) { + return [['Content-Type' => ['text/html']], $this->body]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; + } + + /** + * {@inheritdoc} + * + * @return \Gyroscops\Api\Model\WorkflowDeclareWorkflowScheduleCrontabCommandJsonldRead|null + * + * @throws \Gyroscops\Api\Exception\WorkflowScheduleCrontabWorkflowItemBadRequestException + * @throws \Gyroscops\Api\Exception\WorkflowScheduleCrontabWorkflowItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\WorkflowScheduleCrontabWorkflowItemNotFoundException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkflowDeclareWorkflowScheduleCrontabCommandJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } + } + if (400 === $status) { + throw new \Gyroscops\Api\Exception\WorkflowScheduleCrontabWorkflowItemBadRequestException($response); + } + if (422 === $status) { + throw new \Gyroscops\Api\Exception\WorkflowScheduleCrontabWorkflowItemUnprocessableEntityException($response); + } + if (404 === $status) { + throw new \Gyroscops\Api\Exception\WorkflowScheduleCrontabWorkflowItemNotFoundException($response); + } + } + + public function getAuthenticationScopes(): array + { + return ['apiKey']; + } +} diff --git a/src/Endpoint/WorkflowScheduleImmediateWorkflowItem.php b/src/Endpoint/WorkflowScheduleImmediateWorkflowItem.php new file mode 100644 index 00000000..d3227d68 --- /dev/null +++ b/src/Endpoint/WorkflowScheduleImmediateWorkflowItem.php @@ -0,0 +1,103 @@ +id = $id; + $this->body = $requestBody; + $this->accept = $accept; + } + + public function getMethod(): string + { + return 'PUT'; + } + + public function getUri(): string + { + return str_replace(['{id}'], [$this->id], '/runtime/workflows/{id}/schedule-immediate'); + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \Gyroscops\Api\Model\WorkflowDeclareWorkflowScheduleImmediateCommandInputJsonld) { + return [['Content-Type' => ['application/ld+json']], $serializer->serialize($this->body, 'json')]; + } + if ($this->body instanceof \Gyroscops\Api\Model\WorkflowDeclareWorkflowScheduleImmediateCommandInput) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + if ($this->body instanceof \Gyroscops\Api\Model\WorkflowDeclareWorkflowScheduleImmediateCommandInput) { + return [['Content-Type' => ['text/html']], $this->body]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + if (empty($this->accept)) { + return ['Accept' => ['application/ld+json', 'application/json']]; + } + + return $this->accept; + } + + /** + * {@inheritdoc} + * + * @return \Gyroscops\Api\Model\WorkflowDeclareWorkflowScheduleImmediateCommandJsonldRead|null + * + * @throws \Gyroscops\Api\Exception\WorkflowScheduleImmediateWorkflowItemBadRequestException + * @throws \Gyroscops\Api\Exception\WorkflowScheduleImmediateWorkflowItemUnprocessableEntityException + * @throws \Gyroscops\Api\Exception\WorkflowScheduleImmediateWorkflowItemNotFoundException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (202 === $status) { + if (mb_strpos($contentType, 'application/ld+json') !== false) { + return $serializer->deserialize($body, 'Gyroscops\\Api\\Model\\WorkflowDeclareWorkflowScheduleImmediateCommandJsonldRead', 'json'); + } + if (mb_strpos($contentType, 'application/json') !== false) { + return json_decode($body); + } + } + if (400 === $status) { + throw new \Gyroscops\Api\Exception\WorkflowScheduleImmediateWorkflowItemBadRequestException($response); + } + if (422 === $status) { + throw new \Gyroscops\Api\Exception\WorkflowScheduleImmediateWorkflowItemUnprocessableEntityException($response); + } + if (404 === $status) { + throw new \Gyroscops\Api\Exception\WorkflowScheduleImmediateWorkflowItemNotFoundException($response); + } + } + + public function getAuthenticationScopes(): array + { + return ['apiKey']; + } +} diff --git a/src/Exception/AcceptReferralRequestReferralRequestItemBadRequestException.php b/src/Exception/AcceptReferralRequestReferralRequestItemBadRequestException.php index 1aa2d0a0..67490f25 100644 --- a/src/Exception/AcceptReferralRequestReferralRequestItemBadRequestException.php +++ b/src/Exception/AcceptReferralRequestReferralRequestItemBadRequestException.php @@ -12,8 +12,19 @@ class AcceptReferralRequestReferralRequestItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AcceptReferralRequestReferralRequestItemNotFoundException.php b/src/Exception/AcceptReferralRequestReferralRequestItemNotFoundException.php index 7b1f8e75..61ae50ee 100644 --- a/src/Exception/AcceptReferralRequestReferralRequestItemNotFoundException.php +++ b/src/Exception/AcceptReferralRequestReferralRequestItemNotFoundException.php @@ -12,8 +12,19 @@ class AcceptReferralRequestReferralRequestItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AcceptReferralRequestReferralRequestItemUnprocessableEntityException.php b/src/Exception/AcceptReferralRequestReferralRequestItemUnprocessableEntityException.php index bd21dc22..0051f039 100644 --- a/src/Exception/AcceptReferralRequestReferralRequestItemUnprocessableEntityException.php +++ b/src/Exception/AcceptReferralRequestReferralRequestItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class AcceptReferralRequestReferralRequestItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddAfterPipelineStepPipelineItemBadRequestException.php b/src/Exception/AddAfterPipelineStepPipelineItemBadRequestException.php index e269afa5..ac2f3018 100644 --- a/src/Exception/AddAfterPipelineStepPipelineItemBadRequestException.php +++ b/src/Exception/AddAfterPipelineStepPipelineItemBadRequestException.php @@ -12,8 +12,19 @@ class AddAfterPipelineStepPipelineItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddAfterPipelineStepPipelineItemNotFoundException.php b/src/Exception/AddAfterPipelineStepPipelineItemNotFoundException.php index 038ddde3..7fa5f4f4 100644 --- a/src/Exception/AddAfterPipelineStepPipelineItemNotFoundException.php +++ b/src/Exception/AddAfterPipelineStepPipelineItemNotFoundException.php @@ -12,8 +12,19 @@ class AddAfterPipelineStepPipelineItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddAfterPipelineStepPipelineItemUnprocessableEntityException.php b/src/Exception/AddAfterPipelineStepPipelineItemUnprocessableEntityException.php index bd388aec..52ea0d80 100644 --- a/src/Exception/AddAfterPipelineStepPipelineItemUnprocessableEntityException.php +++ b/src/Exception/AddAfterPipelineStepPipelineItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class AddAfterPipelineStepPipelineItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddBeforePipelineStepPipelineItemBadRequestException.php b/src/Exception/AddBeforePipelineStepPipelineItemBadRequestException.php index 0d8a9a9b..91cd5d4f 100644 --- a/src/Exception/AddBeforePipelineStepPipelineItemBadRequestException.php +++ b/src/Exception/AddBeforePipelineStepPipelineItemBadRequestException.php @@ -12,8 +12,19 @@ class AddBeforePipelineStepPipelineItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddBeforePipelineStepPipelineItemNotFoundException.php b/src/Exception/AddBeforePipelineStepPipelineItemNotFoundException.php index eb015018..2296329a 100644 --- a/src/Exception/AddBeforePipelineStepPipelineItemNotFoundException.php +++ b/src/Exception/AddBeforePipelineStepPipelineItemNotFoundException.php @@ -12,8 +12,19 @@ class AddBeforePipelineStepPipelineItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddBeforePipelineStepPipelineItemUnprocessableEntityException.php b/src/Exception/AddBeforePipelineStepPipelineItemUnprocessableEntityException.php index 05fa1ad1..a93d19a3 100644 --- a/src/Exception/AddBeforePipelineStepPipelineItemUnprocessableEntityException.php +++ b/src/Exception/AddBeforePipelineStepPipelineItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class AddBeforePipelineStepPipelineItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddComposerAuthPipelinePipelineItemBadRequestException.php b/src/Exception/AddComposerAuthPipelinePipelineItemBadRequestException.php index 5e446282..9bc503ca 100644 --- a/src/Exception/AddComposerAuthPipelinePipelineItemBadRequestException.php +++ b/src/Exception/AddComposerAuthPipelinePipelineItemBadRequestException.php @@ -12,8 +12,19 @@ class AddComposerAuthPipelinePipelineItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddComposerAuthPipelinePipelineItemNotFoundException.php b/src/Exception/AddComposerAuthPipelinePipelineItemNotFoundException.php index 4bb42281..2027b06e 100644 --- a/src/Exception/AddComposerAuthPipelinePipelineItemNotFoundException.php +++ b/src/Exception/AddComposerAuthPipelinePipelineItemNotFoundException.php @@ -12,8 +12,19 @@ class AddComposerAuthPipelinePipelineItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddComposerAuthPipelinePipelineItemUnprocessableEntityException.php b/src/Exception/AddComposerAuthPipelinePipelineItemUnprocessableEntityException.php index f253a7ec..eb62c620 100644 --- a/src/Exception/AddComposerAuthPipelinePipelineItemUnprocessableEntityException.php +++ b/src/Exception/AddComposerAuthPipelinePipelineItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class AddComposerAuthPipelinePipelineItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddComposerAutoloadPipelinePipelineItemBadRequestException.php b/src/Exception/AddComposerAutoloadPipelinePipelineItemBadRequestException.php index bd262f44..68e2e736 100644 --- a/src/Exception/AddComposerAutoloadPipelinePipelineItemBadRequestException.php +++ b/src/Exception/AddComposerAutoloadPipelinePipelineItemBadRequestException.php @@ -12,8 +12,19 @@ class AddComposerAutoloadPipelinePipelineItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddComposerAutoloadPipelinePipelineItemNotFoundException.php b/src/Exception/AddComposerAutoloadPipelinePipelineItemNotFoundException.php index 0bef9cfd..464e74d9 100644 --- a/src/Exception/AddComposerAutoloadPipelinePipelineItemNotFoundException.php +++ b/src/Exception/AddComposerAutoloadPipelinePipelineItemNotFoundException.php @@ -12,8 +12,19 @@ class AddComposerAutoloadPipelinePipelineItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddComposerAutoloadPipelinePipelineItemUnprocessableEntityException.php b/src/Exception/AddComposerAutoloadPipelinePipelineItemUnprocessableEntityException.php index 529018dd..5927a82e 100644 --- a/src/Exception/AddComposerAutoloadPipelinePipelineItemUnprocessableEntityException.php +++ b/src/Exception/AddComposerAutoloadPipelinePipelineItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class AddComposerAutoloadPipelinePipelineItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddComposerPackagePipelinePipelineItemBadRequestException.php b/src/Exception/AddComposerPackagePipelinePipelineItemBadRequestException.php index 8fd551e0..dd36cbb1 100644 --- a/src/Exception/AddComposerPackagePipelinePipelineItemBadRequestException.php +++ b/src/Exception/AddComposerPackagePipelinePipelineItemBadRequestException.php @@ -12,8 +12,19 @@ class AddComposerPackagePipelinePipelineItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddComposerPackagePipelinePipelineItemNotFoundException.php b/src/Exception/AddComposerPackagePipelinePipelineItemNotFoundException.php index f6d469c2..f3ebc7f5 100644 --- a/src/Exception/AddComposerPackagePipelinePipelineItemNotFoundException.php +++ b/src/Exception/AddComposerPackagePipelinePipelineItemNotFoundException.php @@ -12,8 +12,19 @@ class AddComposerPackagePipelinePipelineItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddComposerPackagePipelinePipelineItemUnprocessableEntityException.php b/src/Exception/AddComposerPackagePipelinePipelineItemUnprocessableEntityException.php index af40ae79..9e4d9960 100644 --- a/src/Exception/AddComposerPackagePipelinePipelineItemUnprocessableEntityException.php +++ b/src/Exception/AddComposerPackagePipelinePipelineItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class AddComposerPackagePipelinePipelineItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddComposerRepositoryPipelinePipelineItemBadRequestException.php b/src/Exception/AddComposerRepositoryPipelinePipelineItemBadRequestException.php index 42059375..04acef53 100644 --- a/src/Exception/AddComposerRepositoryPipelinePipelineItemBadRequestException.php +++ b/src/Exception/AddComposerRepositoryPipelinePipelineItemBadRequestException.php @@ -12,8 +12,19 @@ class AddComposerRepositoryPipelinePipelineItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddComposerRepositoryPipelinePipelineItemNotFoundException.php b/src/Exception/AddComposerRepositoryPipelinePipelineItemNotFoundException.php index b3f22980..edecbd18 100644 --- a/src/Exception/AddComposerRepositoryPipelinePipelineItemNotFoundException.php +++ b/src/Exception/AddComposerRepositoryPipelinePipelineItemNotFoundException.php @@ -12,8 +12,19 @@ class AddComposerRepositoryPipelinePipelineItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddComposerRepositoryPipelinePipelineItemUnprocessableEntityException.php b/src/Exception/AddComposerRepositoryPipelinePipelineItemUnprocessableEntityException.php index 71530fa7..84637fd9 100644 --- a/src/Exception/AddComposerRepositoryPipelinePipelineItemUnprocessableEntityException.php +++ b/src/Exception/AddComposerRepositoryPipelinePipelineItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class AddComposerRepositoryPipelinePipelineItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddPipelineStepProbePipelineItemBadRequestException.php b/src/Exception/AddPipelineStepProbePipelineItemBadRequestException.php index ac8228da..a23ebcef 100644 --- a/src/Exception/AddPipelineStepProbePipelineItemBadRequestException.php +++ b/src/Exception/AddPipelineStepProbePipelineItemBadRequestException.php @@ -12,8 +12,19 @@ class AddPipelineStepProbePipelineItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddPipelineStepProbePipelineItemNotFoundException.php b/src/Exception/AddPipelineStepProbePipelineItemNotFoundException.php index 7a693c36..6b343f98 100644 --- a/src/Exception/AddPipelineStepProbePipelineItemNotFoundException.php +++ b/src/Exception/AddPipelineStepProbePipelineItemNotFoundException.php @@ -12,8 +12,19 @@ class AddPipelineStepProbePipelineItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddPipelineStepProbePipelineItemUnprocessableEntityException.php b/src/Exception/AddPipelineStepProbePipelineItemUnprocessableEntityException.php index e61657ef..ce256b27 100644 --- a/src/Exception/AddPipelineStepProbePipelineItemUnprocessableEntityException.php +++ b/src/Exception/AddPipelineStepProbePipelineItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class AddPipelineStepProbePipelineItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddVariablesFromConfigurationEnvironmentItemBadRequestException.php b/src/Exception/AddVariablesFromConfigurationEnvironmentItemBadRequestException.php index 61763c5f..ace082ef 100644 --- a/src/Exception/AddVariablesFromConfigurationEnvironmentItemBadRequestException.php +++ b/src/Exception/AddVariablesFromConfigurationEnvironmentItemBadRequestException.php @@ -12,8 +12,19 @@ class AddVariablesFromConfigurationEnvironmentItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddVariablesFromConfigurationEnvironmentItemNotFoundException.php b/src/Exception/AddVariablesFromConfigurationEnvironmentItemNotFoundException.php index fe09b628..37919207 100644 --- a/src/Exception/AddVariablesFromConfigurationEnvironmentItemNotFoundException.php +++ b/src/Exception/AddVariablesFromConfigurationEnvironmentItemNotFoundException.php @@ -12,8 +12,19 @@ class AddVariablesFromConfigurationEnvironmentItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddVariablesFromConfigurationEnvironmentItemUnprocessableEntityException.php b/src/Exception/AddVariablesFromConfigurationEnvironmentItemUnprocessableEntityException.php index 47002987..1c729bd7 100644 --- a/src/Exception/AddVariablesFromConfigurationEnvironmentItemUnprocessableEntityException.php +++ b/src/Exception/AddVariablesFromConfigurationEnvironmentItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class AddVariablesFromConfigurationEnvironmentItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddVariablesFromConstantEnvironmentItemBadRequestException.php b/src/Exception/AddVariablesFromConstantEnvironmentItemBadRequestException.php index ef765c14..cbb3f7ef 100644 --- a/src/Exception/AddVariablesFromConstantEnvironmentItemBadRequestException.php +++ b/src/Exception/AddVariablesFromConstantEnvironmentItemBadRequestException.php @@ -12,8 +12,19 @@ class AddVariablesFromConstantEnvironmentItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddVariablesFromConstantEnvironmentItemNotFoundException.php b/src/Exception/AddVariablesFromConstantEnvironmentItemNotFoundException.php index 893f5bdc..5777aabf 100644 --- a/src/Exception/AddVariablesFromConstantEnvironmentItemNotFoundException.php +++ b/src/Exception/AddVariablesFromConstantEnvironmentItemNotFoundException.php @@ -12,8 +12,19 @@ class AddVariablesFromConstantEnvironmentItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddVariablesFromConstantEnvironmentItemUnprocessableEntityException.php b/src/Exception/AddVariablesFromConstantEnvironmentItemUnprocessableEntityException.php index ce4c7990..a8899d66 100644 --- a/src/Exception/AddVariablesFromConstantEnvironmentItemUnprocessableEntityException.php +++ b/src/Exception/AddVariablesFromConstantEnvironmentItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class AddVariablesFromConstantEnvironmentItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddVariablesFromSecretEnvironmentItemBadRequestException.php b/src/Exception/AddVariablesFromSecretEnvironmentItemBadRequestException.php index 25cf24ff..a01d56ba 100644 --- a/src/Exception/AddVariablesFromSecretEnvironmentItemBadRequestException.php +++ b/src/Exception/AddVariablesFromSecretEnvironmentItemBadRequestException.php @@ -12,8 +12,19 @@ class AddVariablesFromSecretEnvironmentItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddVariablesFromSecretEnvironmentItemNotFoundException.php b/src/Exception/AddVariablesFromSecretEnvironmentItemNotFoundException.php index f0f0b860..55df6786 100644 --- a/src/Exception/AddVariablesFromSecretEnvironmentItemNotFoundException.php +++ b/src/Exception/AddVariablesFromSecretEnvironmentItemNotFoundException.php @@ -12,8 +12,19 @@ class AddVariablesFromSecretEnvironmentItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AddVariablesFromSecretEnvironmentItemUnprocessableEntityException.php b/src/Exception/AddVariablesFromSecretEnvironmentItemUnprocessableEntityException.php index 2fa09a94..b00287f6 100644 --- a/src/Exception/AddVariablesFromSecretEnvironmentItemUnprocessableEntityException.php +++ b/src/Exception/AddVariablesFromSecretEnvironmentItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class AddVariablesFromSecretEnvironmentItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AppendPipelineStepPipelineItemBadRequestException.php b/src/Exception/AppendPipelineStepPipelineItemBadRequestException.php index 15f8aea7..77a53ac0 100644 --- a/src/Exception/AppendPipelineStepPipelineItemBadRequestException.php +++ b/src/Exception/AppendPipelineStepPipelineItemBadRequestException.php @@ -12,8 +12,19 @@ class AppendPipelineStepPipelineItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AppendPipelineStepPipelineItemNotFoundException.php b/src/Exception/AppendPipelineStepPipelineItemNotFoundException.php index 679a6626..c996cdcd 100644 --- a/src/Exception/AppendPipelineStepPipelineItemNotFoundException.php +++ b/src/Exception/AppendPipelineStepPipelineItemNotFoundException.php @@ -12,8 +12,19 @@ class AppendPipelineStepPipelineItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/AppendPipelineStepPipelineItemUnprocessableEntityException.php b/src/Exception/AppendPipelineStepPipelineItemUnprocessableEntityException.php index 24440d03..c6199d2a 100644 --- a/src/Exception/AppendPipelineStepPipelineItemUnprocessableEntityException.php +++ b/src/Exception/AppendPipelineStepPipelineItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class AppendPipelineStepPipelineItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/ChangePasswordUserItemBadRequestException.php b/src/Exception/ChangePasswordUserItemBadRequestException.php index 4e3354e6..8b36162b 100644 --- a/src/Exception/ChangePasswordUserItemBadRequestException.php +++ b/src/Exception/ChangePasswordUserItemBadRequestException.php @@ -12,8 +12,19 @@ class ChangePasswordUserItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/ChangePasswordUserItemNotFoundException.php b/src/Exception/ChangePasswordUserItemNotFoundException.php index f6c9e839..b8d0bf23 100644 --- a/src/Exception/ChangePasswordUserItemNotFoundException.php +++ b/src/Exception/ChangePasswordUserItemNotFoundException.php @@ -12,8 +12,19 @@ class ChangePasswordUserItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/ChangePasswordUserItemUnprocessableEntityException.php b/src/Exception/ChangePasswordUserItemUnprocessableEntityException.php index 133bda4c..b8b9c705 100644 --- a/src/Exception/ChangePasswordUserItemUnprocessableEntityException.php +++ b/src/Exception/ChangePasswordUserItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class ChangePasswordUserItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/ChangeValuesConfigurationItemBadRequestException.php b/src/Exception/ChangeValuesConfigurationItemBadRequestException.php index 9597218c..59f6afb8 100644 --- a/src/Exception/ChangeValuesConfigurationItemBadRequestException.php +++ b/src/Exception/ChangeValuesConfigurationItemBadRequestException.php @@ -12,8 +12,19 @@ class ChangeValuesConfigurationItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/ChangeValuesConfigurationItemNotFoundException.php b/src/Exception/ChangeValuesConfigurationItemNotFoundException.php index 8ca46094..c22bacae 100644 --- a/src/Exception/ChangeValuesConfigurationItemNotFoundException.php +++ b/src/Exception/ChangeValuesConfigurationItemNotFoundException.php @@ -12,8 +12,19 @@ class ChangeValuesConfigurationItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/ChangeValuesConfigurationItemUnprocessableEntityException.php b/src/Exception/ChangeValuesConfigurationItemUnprocessableEntityException.php index a0ca91ef..906026bc 100644 --- a/src/Exception/ChangeValuesConfigurationItemUnprocessableEntityException.php +++ b/src/Exception/ChangeValuesConfigurationItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class ChangeValuesConfigurationItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/ChangeValuesSecretItemBadRequestException.php b/src/Exception/ChangeValuesSecretItemBadRequestException.php index 9a629987..2cc659ed 100644 --- a/src/Exception/ChangeValuesSecretItemBadRequestException.php +++ b/src/Exception/ChangeValuesSecretItemBadRequestException.php @@ -12,8 +12,19 @@ class ChangeValuesSecretItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/ChangeValuesSecretItemNotFoundException.php b/src/Exception/ChangeValuesSecretItemNotFoundException.php index e8b74b1b..3e84b9a3 100644 --- a/src/Exception/ChangeValuesSecretItemNotFoundException.php +++ b/src/Exception/ChangeValuesSecretItemNotFoundException.php @@ -12,8 +12,19 @@ class ChangeValuesSecretItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/ChangeValuesSecretItemUnprocessableEntityException.php b/src/Exception/ChangeValuesSecretItemUnprocessableEntityException.php index b740c0b8..fd51473d 100644 --- a/src/Exception/ChangeValuesSecretItemUnprocessableEntityException.php +++ b/src/Exception/ChangeValuesSecretItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class ChangeValuesSecretItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/DeclareExecutionExecutionCollectionBadRequestException.php b/src/Exception/DeclareExecutionExecutionCollectionBadRequestException.php index 3ebbf9f9..757ef03c 100644 --- a/src/Exception/DeclareExecutionExecutionCollectionBadRequestException.php +++ b/src/Exception/DeclareExecutionExecutionCollectionBadRequestException.php @@ -12,8 +12,19 @@ class DeclareExecutionExecutionCollectionBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/DeclareExecutionExecutionCollectionUnprocessableEntityException.php b/src/Exception/DeclareExecutionExecutionCollectionUnprocessableEntityException.php index ee6bc21e..82ac2b00 100644 --- a/src/Exception/DeclareExecutionExecutionCollectionUnprocessableEntityException.php +++ b/src/Exception/DeclareExecutionExecutionCollectionUnprocessableEntityException.php @@ -12,8 +12,19 @@ class DeclareExecutionExecutionCollectionUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/DeclarePipelinePipelineCollectionBadRequestException.php b/src/Exception/DeclarePipelinePipelineCollectionBadRequestException.php index 388e7bd6..93039a92 100644 --- a/src/Exception/DeclarePipelinePipelineCollectionBadRequestException.php +++ b/src/Exception/DeclarePipelinePipelineCollectionBadRequestException.php @@ -12,8 +12,19 @@ class DeclarePipelinePipelineCollectionBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/DeclarePipelinePipelineCollectionUnprocessableEntityException.php b/src/Exception/DeclarePipelinePipelineCollectionUnprocessableEntityException.php index f92d295a..ea403570 100644 --- a/src/Exception/DeclarePipelinePipelineCollectionUnprocessableEntityException.php +++ b/src/Exception/DeclarePipelinePipelineCollectionUnprocessableEntityException.php @@ -12,8 +12,19 @@ class DeclarePipelinePipelineCollectionUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/DeclareWorkflowWorkflowCollectionBadRequestException.php b/src/Exception/DeclareWorkflowWorkflowCollectionBadRequestException.php new file mode 100644 index 00000000..f0cb7c06 --- /dev/null +++ b/src/Exception/DeclareWorkflowWorkflowCollectionBadRequestException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeclareWorkflowWorkflowCollectionUnprocessableEntityException.php b/src/Exception/DeclareWorkflowWorkflowCollectionUnprocessableEntityException.php new file mode 100644 index 00000000..616d93e9 --- /dev/null +++ b/src/Exception/DeclareWorkflowWorkflowCollectionUnprocessableEntityException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteConfigurationItemNotFoundException.php b/src/Exception/DeleteConfigurationItemNotFoundException.php index 7820a684..07c11952 100644 --- a/src/Exception/DeleteConfigurationItemNotFoundException.php +++ b/src/Exception/DeleteConfigurationItemNotFoundException.php @@ -12,8 +12,19 @@ class DeleteConfigurationItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/DeleteEnvironmentItemNotFoundException.php b/src/Exception/DeleteEnvironmentItemNotFoundException.php index 040216af..2607d81e 100644 --- a/src/Exception/DeleteEnvironmentItemNotFoundException.php +++ b/src/Exception/DeleteEnvironmentItemNotFoundException.php @@ -12,8 +12,19 @@ class DeleteEnvironmentItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/DeleteOfferItemNotFoundException.php b/src/Exception/DeleteOfferItemNotFoundException.php deleted file mode 100644 index 90e53550..00000000 --- a/src/Exception/DeleteOfferItemNotFoundException.php +++ /dev/null @@ -1,19 +0,0 @@ -response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/DeletePipelinePipelineItemNotFoundException.php b/src/Exception/DeletePipelinePipelineItemNotFoundException.php index 9155e804..3a9775fd 100644 --- a/src/Exception/DeletePipelinePipelineItemNotFoundException.php +++ b/src/Exception/DeletePipelinePipelineItemNotFoundException.php @@ -12,8 +12,19 @@ class DeletePipelinePipelineItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/DeletePipelineStepPipelineItemNotFoundException.php b/src/Exception/DeletePipelineStepPipelineItemNotFoundException.php index 39c39589..c362660a 100644 --- a/src/Exception/DeletePipelineStepPipelineItemNotFoundException.php +++ b/src/Exception/DeletePipelineStepPipelineItemNotFoundException.php @@ -12,8 +12,19 @@ class DeletePipelineStepPipelineItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/DeleteReferralCodeItemNotFoundException.php b/src/Exception/DeleteReferralCodeItemNotFoundException.php index e14093e0..b85ec7e2 100644 --- a/src/Exception/DeleteReferralCodeItemNotFoundException.php +++ b/src/Exception/DeleteReferralCodeItemNotFoundException.php @@ -12,8 +12,19 @@ class DeleteReferralCodeItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/DeleteSecretItemNotFoundException.php b/src/Exception/DeleteSecretItemNotFoundException.php index ff17c28e..63b99ef1 100644 --- a/src/Exception/DeleteSecretItemNotFoundException.php +++ b/src/Exception/DeleteSecretItemNotFoundException.php @@ -12,8 +12,19 @@ class DeleteSecretItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/DeleteSubscriptionItemNotFoundException.php b/src/Exception/DeleteSubscriptionItemNotFoundException.php index 7346aebe..28217a22 100644 --- a/src/Exception/DeleteSubscriptionItemNotFoundException.php +++ b/src/Exception/DeleteSubscriptionItemNotFoundException.php @@ -12,8 +12,19 @@ class DeleteSubscriptionItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/DeleteSubscriptionOfferItemNotFoundException.php b/src/Exception/DeleteSubscriptionOfferItemNotFoundException.php new file mode 100644 index 00000000..26b6cc7e --- /dev/null +++ b/src/Exception/DeleteSubscriptionOfferItemNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/DeleteUserAuthorizationItemNotFoundException.php b/src/Exception/DeleteUserAuthorizationItemNotFoundException.php index 5450420f..38965a16 100644 --- a/src/Exception/DeleteUserAuthorizationItemNotFoundException.php +++ b/src/Exception/DeleteUserAuthorizationItemNotFoundException.php @@ -12,8 +12,19 @@ class DeleteUserAuthorizationItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/DeleteUserItemNotFoundException.php b/src/Exception/DeleteUserItemNotFoundException.php index 527c61df..9a68b194 100644 --- a/src/Exception/DeleteUserItemNotFoundException.php +++ b/src/Exception/DeleteUserItemNotFoundException.php @@ -12,8 +12,19 @@ class DeleteUserItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/DeleteVariableFromConfigurationItemNotFoundException.php b/src/Exception/DeleteVariableFromConfigurationItemNotFoundException.php index 908685bd..0bb15885 100644 --- a/src/Exception/DeleteVariableFromConfigurationItemNotFoundException.php +++ b/src/Exception/DeleteVariableFromConfigurationItemNotFoundException.php @@ -12,8 +12,19 @@ class DeleteVariableFromConfigurationItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/DeleteVariableFromConstantItemNotFoundException.php b/src/Exception/DeleteVariableFromConstantItemNotFoundException.php index 6f23f3aa..09e128f1 100644 --- a/src/Exception/DeleteVariableFromConstantItemNotFoundException.php +++ b/src/Exception/DeleteVariableFromConstantItemNotFoundException.php @@ -12,8 +12,19 @@ class DeleteVariableFromConstantItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/DeleteVariableFromSecretItemNotFoundException.php b/src/Exception/DeleteVariableFromSecretItemNotFoundException.php index 7d954cbc..22f67e15 100644 --- a/src/Exception/DeleteVariableFromSecretItemNotFoundException.php +++ b/src/Exception/DeleteVariableFromSecretItemNotFoundException.php @@ -12,8 +12,19 @@ class DeleteVariableFromSecretItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/DeleteWorkspaceItemNotFoundException.php b/src/Exception/DeleteWorkspaceItemNotFoundException.php index 18390ad6..6938a5e8 100644 --- a/src/Exception/DeleteWorkspaceItemNotFoundException.php +++ b/src/Exception/DeleteWorkspaceItemNotFoundException.php @@ -12,8 +12,19 @@ class DeleteWorkspaceItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/EditConfigurationItemBadRequestException.php b/src/Exception/EditConfigurationItemBadRequestException.php index 307662ce..bfea345b 100644 --- a/src/Exception/EditConfigurationItemBadRequestException.php +++ b/src/Exception/EditConfigurationItemBadRequestException.php @@ -12,8 +12,19 @@ class EditConfigurationItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/EditConfigurationItemNotFoundException.php b/src/Exception/EditConfigurationItemNotFoundException.php index ff6e93d0..51cf525c 100644 --- a/src/Exception/EditConfigurationItemNotFoundException.php +++ b/src/Exception/EditConfigurationItemNotFoundException.php @@ -12,8 +12,19 @@ class EditConfigurationItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/EditConfigurationItemUnprocessableEntityException.php b/src/Exception/EditConfigurationItemUnprocessableEntityException.php index 01616d51..a4a64fa2 100644 --- a/src/Exception/EditConfigurationItemUnprocessableEntityException.php +++ b/src/Exception/EditConfigurationItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class EditConfigurationItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/EditEnvironmentItemBadRequestException.php b/src/Exception/EditEnvironmentItemBadRequestException.php index 5d222835..bcae5977 100644 --- a/src/Exception/EditEnvironmentItemBadRequestException.php +++ b/src/Exception/EditEnvironmentItemBadRequestException.php @@ -12,8 +12,19 @@ class EditEnvironmentItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/EditEnvironmentItemNotFoundException.php b/src/Exception/EditEnvironmentItemNotFoundException.php index e57e3458..dfe58830 100644 --- a/src/Exception/EditEnvironmentItemNotFoundException.php +++ b/src/Exception/EditEnvironmentItemNotFoundException.php @@ -12,8 +12,19 @@ class EditEnvironmentItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/EditEnvironmentItemUnprocessableEntityException.php b/src/Exception/EditEnvironmentItemUnprocessableEntityException.php index c8170a46..6d402040 100644 --- a/src/Exception/EditEnvironmentItemUnprocessableEntityException.php +++ b/src/Exception/EditEnvironmentItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class EditEnvironmentItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/EditSecretItemBadRequestException.php b/src/Exception/EditSecretItemBadRequestException.php index ddc36574..b2992493 100644 --- a/src/Exception/EditSecretItemBadRequestException.php +++ b/src/Exception/EditSecretItemBadRequestException.php @@ -12,8 +12,19 @@ class EditSecretItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/EditSecretItemNotFoundException.php b/src/Exception/EditSecretItemNotFoundException.php index d543d3c0..f1be38f4 100644 --- a/src/Exception/EditSecretItemNotFoundException.php +++ b/src/Exception/EditSecretItemNotFoundException.php @@ -12,8 +12,19 @@ class EditSecretItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/EditSecretItemUnprocessableEntityException.php b/src/Exception/EditSecretItemUnprocessableEntityException.php index d35fa08c..b3e0e1a9 100644 --- a/src/Exception/EditSecretItemUnprocessableEntityException.php +++ b/src/Exception/EditSecretItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class EditSecretItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/EditVariableFromConfigurationItemBadRequestException.php b/src/Exception/EditVariableFromConfigurationItemBadRequestException.php index b597b5bf..f79f6422 100644 --- a/src/Exception/EditVariableFromConfigurationItemBadRequestException.php +++ b/src/Exception/EditVariableFromConfigurationItemBadRequestException.php @@ -12,8 +12,19 @@ class EditVariableFromConfigurationItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/EditVariableFromConfigurationItemNotFoundException.php b/src/Exception/EditVariableFromConfigurationItemNotFoundException.php index 614bf7a6..f3412199 100644 --- a/src/Exception/EditVariableFromConfigurationItemNotFoundException.php +++ b/src/Exception/EditVariableFromConfigurationItemNotFoundException.php @@ -12,8 +12,19 @@ class EditVariableFromConfigurationItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/EditVariableFromConfigurationItemUnprocessableEntityException.php b/src/Exception/EditVariableFromConfigurationItemUnprocessableEntityException.php index c8e25bbb..8ffec619 100644 --- a/src/Exception/EditVariableFromConfigurationItemUnprocessableEntityException.php +++ b/src/Exception/EditVariableFromConfigurationItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class EditVariableFromConfigurationItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/EditVariableFromConstantItemBadRequestException.php b/src/Exception/EditVariableFromConstantItemBadRequestException.php index 93a6a5f1..7f973b46 100644 --- a/src/Exception/EditVariableFromConstantItemBadRequestException.php +++ b/src/Exception/EditVariableFromConstantItemBadRequestException.php @@ -12,8 +12,19 @@ class EditVariableFromConstantItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/EditVariableFromConstantItemNotFoundException.php b/src/Exception/EditVariableFromConstantItemNotFoundException.php index 21e4e799..10a0cd94 100644 --- a/src/Exception/EditVariableFromConstantItemNotFoundException.php +++ b/src/Exception/EditVariableFromConstantItemNotFoundException.php @@ -12,8 +12,19 @@ class EditVariableFromConstantItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/EditVariableFromConstantItemUnprocessableEntityException.php b/src/Exception/EditVariableFromConstantItemUnprocessableEntityException.php index a71da3b1..4671d1d9 100644 --- a/src/Exception/EditVariableFromConstantItemUnprocessableEntityException.php +++ b/src/Exception/EditVariableFromConstantItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class EditVariableFromConstantItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/EditVariableFromSecretItemBadRequestException.php b/src/Exception/EditVariableFromSecretItemBadRequestException.php index 02354e95..d3c29eda 100644 --- a/src/Exception/EditVariableFromSecretItemBadRequestException.php +++ b/src/Exception/EditVariableFromSecretItemBadRequestException.php @@ -12,8 +12,19 @@ class EditVariableFromSecretItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/EditVariableFromSecretItemNotFoundException.php b/src/Exception/EditVariableFromSecretItemNotFoundException.php index 8f25520c..c8637dde 100644 --- a/src/Exception/EditVariableFromSecretItemNotFoundException.php +++ b/src/Exception/EditVariableFromSecretItemNotFoundException.php @@ -12,8 +12,19 @@ class EditVariableFromSecretItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/EditVariableFromSecretItemUnprocessableEntityException.php b/src/Exception/EditVariableFromSecretItemUnprocessableEntityException.php index 17b2269a..0325c0de 100644 --- a/src/Exception/EditVariableFromSecretItemUnprocessableEntityException.php +++ b/src/Exception/EditVariableFromSecretItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class EditVariableFromSecretItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/FinishExecutionExecutionItemBadRequestException.php b/src/Exception/FinishExecutionExecutionItemBadRequestException.php deleted file mode 100644 index 5d3c5aa6..00000000 --- a/src/Exception/FinishExecutionExecutionItemBadRequestException.php +++ /dev/null @@ -1,19 +0,0 @@ -response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetAkeneoInstanceItemNotFoundException.php b/src/Exception/GetAkeneoInstanceItemNotFoundException.php index c5ee8e6a..494f274c 100644 --- a/src/Exception/GetAkeneoInstanceItemNotFoundException.php +++ b/src/Exception/GetAkeneoInstanceItemNotFoundException.php @@ -12,8 +12,19 @@ class GetAkeneoInstanceItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetAkeneoLinkedAccountItemNotFoundException.php b/src/Exception/GetAkeneoLinkedAccountItemNotFoundException.php index 17302bff..c46acc72 100644 --- a/src/Exception/GetAkeneoLinkedAccountItemNotFoundException.php +++ b/src/Exception/GetAkeneoLinkedAccountItemNotFoundException.php @@ -12,8 +12,19 @@ class GetAkeneoLinkedAccountItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetAkeneoOauthTokenItemNotFoundException.php b/src/Exception/GetAkeneoOauthTokenItemNotFoundException.php index f4fb8ca4..1d5710f6 100644 --- a/src/Exception/GetAkeneoOauthTokenItemNotFoundException.php +++ b/src/Exception/GetAkeneoOauthTokenItemNotFoundException.php @@ -12,8 +12,19 @@ class GetAkeneoOauthTokenItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetCompilationItemNotFoundException.php b/src/Exception/GetCompilationItemNotFoundException.php index 18fc7abe..322e9207 100644 --- a/src/Exception/GetCompilationItemNotFoundException.php +++ b/src/Exception/GetCompilationItemNotFoundException.php @@ -12,8 +12,19 @@ class GetCompilationItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetConfigurationItemNotFoundException.php b/src/Exception/GetConfigurationItemNotFoundException.php index 3b4c2961..79cab842 100644 --- a/src/Exception/GetConfigurationItemNotFoundException.php +++ b/src/Exception/GetConfigurationItemNotFoundException.php @@ -12,8 +12,19 @@ class GetConfigurationItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetEnvironmentItemNotFoundException.php b/src/Exception/GetEnvironmentItemNotFoundException.php index 62fde59b..392f073f 100644 --- a/src/Exception/GetEnvironmentItemNotFoundException.php +++ b/src/Exception/GetEnvironmentItemNotFoundException.php @@ -12,8 +12,19 @@ class GetEnvironmentItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetExecutionActionItemNotFoundException.php b/src/Exception/GetExecutionActionItemNotFoundException.php index 1525abd2..eb6797cd 100644 --- a/src/Exception/GetExecutionActionItemNotFoundException.php +++ b/src/Exception/GetExecutionActionItemNotFoundException.php @@ -12,8 +12,19 @@ class GetExecutionActionItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetExecutionActionLogsExecutionWorkflowItemNotFoundException.php b/src/Exception/GetExecutionActionLogsExecutionWorkflowItemNotFoundException.php new file mode 100644 index 00000000..3fe66638 --- /dev/null +++ b/src/Exception/GetExecutionActionLogsExecutionWorkflowItemNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetExecutionItemNotFoundException.php b/src/Exception/GetExecutionItemNotFoundException.php index 6e1a6e60..bb0ecf56 100644 --- a/src/Exception/GetExecutionItemNotFoundException.php +++ b/src/Exception/GetExecutionItemNotFoundException.php @@ -12,8 +12,19 @@ class GetExecutionItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetExecutionLogsExecutionPipelineItemNotFoundException.php b/src/Exception/GetExecutionLogsExecutionPipelineItemNotFoundException.php new file mode 100644 index 00000000..71972778 --- /dev/null +++ b/src/Exception/GetExecutionLogsExecutionPipelineItemNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetExecutionPipelineItemNotFoundException.php b/src/Exception/GetExecutionPipelineItemNotFoundException.php index 9522aae6..a4656a78 100644 --- a/src/Exception/GetExecutionPipelineItemNotFoundException.php +++ b/src/Exception/GetExecutionPipelineItemNotFoundException.php @@ -12,8 +12,19 @@ class GetExecutionPipelineItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetExecutionPipelineJobItemNotFoundException.php b/src/Exception/GetExecutionPipelineJobItemNotFoundException.php index 393c9bc0..71daf912 100644 --- a/src/Exception/GetExecutionPipelineJobItemNotFoundException.php +++ b/src/Exception/GetExecutionPipelineJobItemNotFoundException.php @@ -12,8 +12,19 @@ class GetExecutionPipelineJobItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetExecutionPipelineRejectsExecutionWorkflowItemNotFoundException.php b/src/Exception/GetExecutionPipelineRejectsExecutionWorkflowItemNotFoundException.php new file mode 100644 index 00000000..cdd138fa --- /dev/null +++ b/src/Exception/GetExecutionPipelineRejectsExecutionWorkflowItemNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetExecutionPipelineStepItemNotFoundException.php b/src/Exception/GetExecutionPipelineStepItemNotFoundException.php index 785745b2..0f430afe 100644 --- a/src/Exception/GetExecutionPipelineStepItemNotFoundException.php +++ b/src/Exception/GetExecutionPipelineStepItemNotFoundException.php @@ -12,8 +12,19 @@ class GetExecutionPipelineStepItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetExecutionRejectsExecutionPipelineItemNotFoundException.php b/src/Exception/GetExecutionRejectsExecutionPipelineItemNotFoundException.php new file mode 100644 index 00000000..2c5056ef --- /dev/null +++ b/src/Exception/GetExecutionRejectsExecutionPipelineItemNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetExecutionWorkflowItemNotFoundException.php b/src/Exception/GetExecutionWorkflowItemNotFoundException.php index 20f86fe7..4a26f893 100644 --- a/src/Exception/GetExecutionWorkflowItemNotFoundException.php +++ b/src/Exception/GetExecutionWorkflowItemNotFoundException.php @@ -12,8 +12,19 @@ class GetExecutionWorkflowItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetExecutionWorkflowJobActionItemNotFoundException.php b/src/Exception/GetExecutionWorkflowJobActionItemNotFoundException.php index 66de22ab..e35cd23a 100644 --- a/src/Exception/GetExecutionWorkflowJobActionItemNotFoundException.php +++ b/src/Exception/GetExecutionWorkflowJobActionItemNotFoundException.php @@ -12,8 +12,19 @@ class GetExecutionWorkflowJobActionItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetExecutionWorkflowJobItemNotFoundException.php b/src/Exception/GetExecutionWorkflowJobItemNotFoundException.php index 0ce5ec72..8b22f1d3 100644 --- a/src/Exception/GetExecutionWorkflowJobItemNotFoundException.php +++ b/src/Exception/GetExecutionWorkflowJobItemNotFoundException.php @@ -12,8 +12,19 @@ class GetExecutionWorkflowJobItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetForgotPasswordNotFoundException.php b/src/Exception/GetForgotPasswordNotFoundException.php index 4d5bdc23..d5810943 100644 --- a/src/Exception/GetForgotPasswordNotFoundException.php +++ b/src/Exception/GetForgotPasswordNotFoundException.php @@ -12,8 +12,19 @@ class GetForgotPasswordNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Token not found or expired'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetOfferItemNotFoundException.php b/src/Exception/GetOfferItemNotFoundException.php deleted file mode 100644 index 65cd775b..00000000 --- a/src/Exception/GetOfferItemNotFoundException.php +++ /dev/null @@ -1,19 +0,0 @@ -response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetOrganizationItemNotFoundException.php b/src/Exception/GetOrganizationItemNotFoundException.php index 9e711209..6f4b6526 100644 --- a/src/Exception/GetOrganizationItemNotFoundException.php +++ b/src/Exception/GetOrganizationItemNotFoundException.php @@ -12,8 +12,19 @@ class GetOrganizationItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetPipelineItemNotFoundException.php b/src/Exception/GetPipelineItemNotFoundException.php index b9752e50..f32463b8 100644 --- a/src/Exception/GetPipelineItemNotFoundException.php +++ b/src/Exception/GetPipelineItemNotFoundException.php @@ -12,8 +12,19 @@ class GetPipelineItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetPipelineStepItemNotFoundException.php b/src/Exception/GetPipelineStepItemNotFoundException.php index ac92bc3d..135ecc2a 100644 --- a/src/Exception/GetPipelineStepItemNotFoundException.php +++ b/src/Exception/GetPipelineStepItemNotFoundException.php @@ -12,8 +12,19 @@ class GetPipelineStepItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetPipelineStepProbeItemNotFoundException.php b/src/Exception/GetPipelineStepProbeItemNotFoundException.php index c9063bf6..ea6286d4 100644 --- a/src/Exception/GetPipelineStepProbeItemNotFoundException.php +++ b/src/Exception/GetPipelineStepProbeItemNotFoundException.php @@ -12,8 +12,19 @@ class GetPipelineStepProbeItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetReferralCodeItemNotFoundException.php b/src/Exception/GetReferralCodeItemNotFoundException.php index b9902a66..c7240d00 100644 --- a/src/Exception/GetReferralCodeItemNotFoundException.php +++ b/src/Exception/GetReferralCodeItemNotFoundException.php @@ -12,8 +12,19 @@ class GetReferralCodeItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetReferralRequestItemNotFoundException.php b/src/Exception/GetReferralRequestItemNotFoundException.php index ed176d6f..cce44da9 100644 --- a/src/Exception/GetReferralRequestItemNotFoundException.php +++ b/src/Exception/GetReferralRequestItemNotFoundException.php @@ -12,8 +12,19 @@ class GetReferralRequestItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetScheduleItemNotFoundException.php b/src/Exception/GetScheduleItemNotFoundException.php index 8aae557e..6ae4ceaf 100644 --- a/src/Exception/GetScheduleItemNotFoundException.php +++ b/src/Exception/GetScheduleItemNotFoundException.php @@ -12,8 +12,19 @@ class GetScheduleItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetSecretItemNotFoundException.php b/src/Exception/GetSecretItemNotFoundException.php index 0e4abf19..4c4df822 100644 --- a/src/Exception/GetSecretItemNotFoundException.php +++ b/src/Exception/GetSecretItemNotFoundException.php @@ -12,8 +12,19 @@ class GetSecretItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetSubscriptionItemNotFoundException.php b/src/Exception/GetSubscriptionItemNotFoundException.php index a41aedef..50619295 100644 --- a/src/Exception/GetSubscriptionItemNotFoundException.php +++ b/src/Exception/GetSubscriptionItemNotFoundException.php @@ -12,8 +12,19 @@ class GetSubscriptionItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetSubscriptionOfferItemNotFoundException.php b/src/Exception/GetSubscriptionOfferItemNotFoundException.php new file mode 100644 index 00000000..e338fc6e --- /dev/null +++ b/src/Exception/GetSubscriptionOfferItemNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/GetUserAuthorizationItemNotFoundException.php b/src/Exception/GetUserAuthorizationItemNotFoundException.php index fea4f1c2..6563191c 100644 --- a/src/Exception/GetUserAuthorizationItemNotFoundException.php +++ b/src/Exception/GetUserAuthorizationItemNotFoundException.php @@ -12,8 +12,19 @@ class GetUserAuthorizationItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetUserItemNotFoundException.php b/src/Exception/GetUserItemNotFoundException.php index 471760b4..68b705bf 100644 --- a/src/Exception/GetUserItemNotFoundException.php +++ b/src/Exception/GetUserItemNotFoundException.php @@ -12,8 +12,19 @@ class GetUserItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetVariableFromConfigurationItemNotFoundException.php b/src/Exception/GetVariableFromConfigurationItemNotFoundException.php index 388f1c8f..5d6f79a2 100644 --- a/src/Exception/GetVariableFromConfigurationItemNotFoundException.php +++ b/src/Exception/GetVariableFromConfigurationItemNotFoundException.php @@ -12,8 +12,19 @@ class GetVariableFromConfigurationItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetVariableFromConstantItemNotFoundException.php b/src/Exception/GetVariableFromConstantItemNotFoundException.php index dcfbe277..5ba6ac10 100644 --- a/src/Exception/GetVariableFromConstantItemNotFoundException.php +++ b/src/Exception/GetVariableFromConstantItemNotFoundException.php @@ -12,8 +12,19 @@ class GetVariableFromConstantItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetVariableFromSecretItemNotFoundException.php b/src/Exception/GetVariableFromSecretItemNotFoundException.php index e7f1260a..1ab9ab4c 100644 --- a/src/Exception/GetVariableFromSecretItemNotFoundException.php +++ b/src/Exception/GetVariableFromSecretItemNotFoundException.php @@ -12,8 +12,19 @@ class GetVariableFromSecretItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetWorkflowItemNotFoundException.php b/src/Exception/GetWorkflowItemNotFoundException.php index d4959646..294ae7ac 100644 --- a/src/Exception/GetWorkflowItemNotFoundException.php +++ b/src/Exception/GetWorkflowItemNotFoundException.php @@ -12,8 +12,19 @@ class GetWorkflowItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetWorkflowJobActionItemNotFoundException.php b/src/Exception/GetWorkflowJobActionItemNotFoundException.php index dc750ead..eff6759c 100644 --- a/src/Exception/GetWorkflowJobActionItemNotFoundException.php +++ b/src/Exception/GetWorkflowJobActionItemNotFoundException.php @@ -12,8 +12,19 @@ class GetWorkflowJobActionItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetWorkflowJobItemNotFoundException.php b/src/Exception/GetWorkflowJobItemNotFoundException.php index ef2f2a6b..49cf73a4 100644 --- a/src/Exception/GetWorkflowJobItemNotFoundException.php +++ b/src/Exception/GetWorkflowJobItemNotFoundException.php @@ -12,8 +12,19 @@ class GetWorkflowJobItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetWorkflowJobPipelineItemNotFoundException.php b/src/Exception/GetWorkflowJobPipelineItemNotFoundException.php index 6d2027de..fa9df082 100644 --- a/src/Exception/GetWorkflowJobPipelineItemNotFoundException.php +++ b/src/Exception/GetWorkflowJobPipelineItemNotFoundException.php @@ -12,8 +12,19 @@ class GetWorkflowJobPipelineItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/GetWorkspaceItemNotFoundException.php b/src/Exception/GetWorkspaceItemNotFoundException.php index d4e48c32..4132db88 100644 --- a/src/Exception/GetWorkspaceItemNotFoundException.php +++ b/src/Exception/GetWorkspaceItemNotFoundException.php @@ -12,8 +12,19 @@ class GetWorkspaceItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/InterruptExecutionExecutionItemBadRequestException.php b/src/Exception/InterruptExecutionExecutionItemBadRequestException.php deleted file mode 100644 index d3af889a..00000000 --- a/src/Exception/InterruptExecutionExecutionItemBadRequestException.php +++ /dev/null @@ -1,19 +0,0 @@ -response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/InterruptExecutionExecutionWorkflowItemNotFoundException.php b/src/Exception/InterruptExecutionExecutionWorkflowItemNotFoundException.php new file mode 100644 index 00000000..1fef83f9 --- /dev/null +++ b/src/Exception/InterruptExecutionExecutionWorkflowItemNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/InterruptExecutionExecutionWorkflowItemUnprocessableEntityException.php b/src/Exception/InterruptExecutionExecutionWorkflowItemUnprocessableEntityException.php new file mode 100644 index 00000000..5900b0c0 --- /dev/null +++ b/src/Exception/InterruptExecutionExecutionWorkflowItemUnprocessableEntityException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/MoveAfterPipelineStepPipelineItemBadRequestException.php b/src/Exception/MoveAfterPipelineStepPipelineItemBadRequestException.php index fc217721..834d4dee 100644 --- a/src/Exception/MoveAfterPipelineStepPipelineItemBadRequestException.php +++ b/src/Exception/MoveAfterPipelineStepPipelineItemBadRequestException.php @@ -12,8 +12,19 @@ class MoveAfterPipelineStepPipelineItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/MoveAfterPipelineStepPipelineItemNotFoundException.php b/src/Exception/MoveAfterPipelineStepPipelineItemNotFoundException.php index 06b8a25a..8a439f78 100644 --- a/src/Exception/MoveAfterPipelineStepPipelineItemNotFoundException.php +++ b/src/Exception/MoveAfterPipelineStepPipelineItemNotFoundException.php @@ -12,8 +12,19 @@ class MoveAfterPipelineStepPipelineItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/MoveAfterPipelineStepPipelineItemUnprocessableEntityException.php b/src/Exception/MoveAfterPipelineStepPipelineItemUnprocessableEntityException.php index f9565a8f..26928676 100644 --- a/src/Exception/MoveAfterPipelineStepPipelineItemUnprocessableEntityException.php +++ b/src/Exception/MoveAfterPipelineStepPipelineItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class MoveAfterPipelineStepPipelineItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/MoveBeforePipelineStepPipelineItemBadRequestException.php b/src/Exception/MoveBeforePipelineStepPipelineItemBadRequestException.php index 93a09a01..34ee42db 100644 --- a/src/Exception/MoveBeforePipelineStepPipelineItemBadRequestException.php +++ b/src/Exception/MoveBeforePipelineStepPipelineItemBadRequestException.php @@ -12,8 +12,19 @@ class MoveBeforePipelineStepPipelineItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/MoveBeforePipelineStepPipelineItemNotFoundException.php b/src/Exception/MoveBeforePipelineStepPipelineItemNotFoundException.php index ea36d102..94e4ae1e 100644 --- a/src/Exception/MoveBeforePipelineStepPipelineItemNotFoundException.php +++ b/src/Exception/MoveBeforePipelineStepPipelineItemNotFoundException.php @@ -12,8 +12,19 @@ class MoveBeforePipelineStepPipelineItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/MoveBeforePipelineStepPipelineItemUnprocessableEntityException.php b/src/Exception/MoveBeforePipelineStepPipelineItemUnprocessableEntityException.php index b024ebe7..17098daf 100644 --- a/src/Exception/MoveBeforePipelineStepPipelineItemUnprocessableEntityException.php +++ b/src/Exception/MoveBeforePipelineStepPipelineItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class MoveBeforePipelineStepPipelineItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PatchOfferItemBadRequestException.php b/src/Exception/PatchOfferItemBadRequestException.php deleted file mode 100644 index 9473cbcb..00000000 --- a/src/Exception/PatchOfferItemBadRequestException.php +++ /dev/null @@ -1,19 +0,0 @@ -response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PatchOrganizationItemNotFoundException.php b/src/Exception/PatchOrganizationItemNotFoundException.php index 43fa87a0..1fc9597a 100644 --- a/src/Exception/PatchOrganizationItemNotFoundException.php +++ b/src/Exception/PatchOrganizationItemNotFoundException.php @@ -12,8 +12,19 @@ class PatchOrganizationItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PatchOrganizationItemUnprocessableEntityException.php b/src/Exception/PatchOrganizationItemUnprocessableEntityException.php index f5f5fd3b..ad8a6ab5 100644 --- a/src/Exception/PatchOrganizationItemUnprocessableEntityException.php +++ b/src/Exception/PatchOrganizationItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class PatchOrganizationItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PatchSubscriptionItemBadRequestException.php b/src/Exception/PatchSubscriptionItemBadRequestException.php index 3a0e2f60..064164be 100644 --- a/src/Exception/PatchSubscriptionItemBadRequestException.php +++ b/src/Exception/PatchSubscriptionItemBadRequestException.php @@ -12,8 +12,19 @@ class PatchSubscriptionItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PatchSubscriptionItemNotFoundException.php b/src/Exception/PatchSubscriptionItemNotFoundException.php index 85b10636..5a47654c 100644 --- a/src/Exception/PatchSubscriptionItemNotFoundException.php +++ b/src/Exception/PatchSubscriptionItemNotFoundException.php @@ -12,8 +12,19 @@ class PatchSubscriptionItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PatchSubscriptionItemUnprocessableEntityException.php b/src/Exception/PatchSubscriptionItemUnprocessableEntityException.php index 54fea5eb..aee3c77d 100644 --- a/src/Exception/PatchSubscriptionItemUnprocessableEntityException.php +++ b/src/Exception/PatchSubscriptionItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class PatchSubscriptionItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PatchSubscriptionOfferItemBadRequestException.php b/src/Exception/PatchSubscriptionOfferItemBadRequestException.php new file mode 100644 index 00000000..dd95f2b4 --- /dev/null +++ b/src/Exception/PatchSubscriptionOfferItemBadRequestException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchSubscriptionOfferItemNotFoundException.php b/src/Exception/PatchSubscriptionOfferItemNotFoundException.php new file mode 100644 index 00000000..64cf7bd5 --- /dev/null +++ b/src/Exception/PatchSubscriptionOfferItemNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchSubscriptionOfferItemUnprocessableEntityException.php b/src/Exception/PatchSubscriptionOfferItemUnprocessableEntityException.php new file mode 100644 index 00000000..2500e0b2 --- /dev/null +++ b/src/Exception/PatchSubscriptionOfferItemUnprocessableEntityException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PatchUserAuthorizationItemBadRequestException.php b/src/Exception/PatchUserAuthorizationItemBadRequestException.php index fc58f077..4f31c71d 100644 --- a/src/Exception/PatchUserAuthorizationItemBadRequestException.php +++ b/src/Exception/PatchUserAuthorizationItemBadRequestException.php @@ -12,8 +12,19 @@ class PatchUserAuthorizationItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PatchUserAuthorizationItemNotFoundException.php b/src/Exception/PatchUserAuthorizationItemNotFoundException.php index 49932158..789262ac 100644 --- a/src/Exception/PatchUserAuthorizationItemNotFoundException.php +++ b/src/Exception/PatchUserAuthorizationItemNotFoundException.php @@ -12,8 +12,19 @@ class PatchUserAuthorizationItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PatchUserAuthorizationItemUnprocessableEntityException.php b/src/Exception/PatchUserAuthorizationItemUnprocessableEntityException.php index 86a7b2fe..0180ff91 100644 --- a/src/Exception/PatchUserAuthorizationItemUnprocessableEntityException.php +++ b/src/Exception/PatchUserAuthorizationItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class PatchUserAuthorizationItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PatchUserItemBadRequestException.php b/src/Exception/PatchUserItemBadRequestException.php index 917bb7ad..b792e4da 100644 --- a/src/Exception/PatchUserItemBadRequestException.php +++ b/src/Exception/PatchUserItemBadRequestException.php @@ -12,8 +12,19 @@ class PatchUserItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PatchUserItemNotFoundException.php b/src/Exception/PatchUserItemNotFoundException.php index 4cc62e77..9c8acaa2 100644 --- a/src/Exception/PatchUserItemNotFoundException.php +++ b/src/Exception/PatchUserItemNotFoundException.php @@ -12,8 +12,19 @@ class PatchUserItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PatchUserItemUnprocessableEntityException.php b/src/Exception/PatchUserItemUnprocessableEntityException.php index 898a35e4..439a0855 100644 --- a/src/Exception/PatchUserItemUnprocessableEntityException.php +++ b/src/Exception/PatchUserItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class PatchUserItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PatchWorkspaceItemBadRequestException.php b/src/Exception/PatchWorkspaceItemBadRequestException.php index 2655288f..f7f83f30 100644 --- a/src/Exception/PatchWorkspaceItemBadRequestException.php +++ b/src/Exception/PatchWorkspaceItemBadRequestException.php @@ -12,8 +12,19 @@ class PatchWorkspaceItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PatchWorkspaceItemNotFoundException.php b/src/Exception/PatchWorkspaceItemNotFoundException.php index 8715c182..be5598a4 100644 --- a/src/Exception/PatchWorkspaceItemNotFoundException.php +++ b/src/Exception/PatchWorkspaceItemNotFoundException.php @@ -12,8 +12,19 @@ class PatchWorkspaceItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PatchWorkspaceItemUnprocessableEntityException.php b/src/Exception/PatchWorkspaceItemUnprocessableEntityException.php index dca51c3a..24fefb23 100644 --- a/src/Exception/PatchWorkspaceItemUnprocessableEntityException.php +++ b/src/Exception/PatchWorkspaceItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class PatchWorkspaceItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PipelineCompilationPipelineItemBadRequestException.php b/src/Exception/PipelineCompilationPipelineItemBadRequestException.php index d197a516..18859624 100644 --- a/src/Exception/PipelineCompilationPipelineItemBadRequestException.php +++ b/src/Exception/PipelineCompilationPipelineItemBadRequestException.php @@ -12,8 +12,19 @@ class PipelineCompilationPipelineItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PipelineCompilationPipelineItemNotFoundException.php b/src/Exception/PipelineCompilationPipelineItemNotFoundException.php index 4d3c3477..e19083dd 100644 --- a/src/Exception/PipelineCompilationPipelineItemNotFoundException.php +++ b/src/Exception/PipelineCompilationPipelineItemNotFoundException.php @@ -12,8 +12,19 @@ class PipelineCompilationPipelineItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PipelineCompilationPipelineItemUnprocessableEntityException.php b/src/Exception/PipelineCompilationPipelineItemUnprocessableEntityException.php index 4753ca4c..48fe4050 100644 --- a/src/Exception/PipelineCompilationPipelineItemUnprocessableEntityException.php +++ b/src/Exception/PipelineCompilationPipelineItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class PipelineCompilationPipelineItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PipelineScheduleImmediatePipelineItemBadRequestException.php b/src/Exception/PipelineScheduleImmediatePipelineItemBadRequestException.php new file mode 100644 index 00000000..1a57026e --- /dev/null +++ b/src/Exception/PipelineScheduleImmediatePipelineItemBadRequestException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PipelineScheduleImmediatePipelineItemNotFoundException.php b/src/Exception/PipelineScheduleImmediatePipelineItemNotFoundException.php new file mode 100644 index 00000000..bf971eb3 --- /dev/null +++ b/src/Exception/PipelineScheduleImmediatePipelineItemNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PipelineScheduleImmediatePipelineItemUnprocessableEntityException.php b/src/Exception/PipelineScheduleImmediatePipelineItemUnprocessableEntityException.php new file mode 100644 index 00000000..3add1a1f --- /dev/null +++ b/src/Exception/PipelineScheduleImmediatePipelineItemUnprocessableEntityException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PipelineScheduleOncePipelineItemBadRequestException.php b/src/Exception/PipelineScheduleOncePipelineItemBadRequestException.php new file mode 100644 index 00000000..2cb39b2c --- /dev/null +++ b/src/Exception/PipelineScheduleOncePipelineItemBadRequestException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PipelineScheduleOncePipelineItemNotFoundException.php b/src/Exception/PipelineScheduleOncePipelineItemNotFoundException.php new file mode 100644 index 00000000..ec12be8d --- /dev/null +++ b/src/Exception/PipelineScheduleOncePipelineItemNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PipelineScheduleOncePipelineItemUnprocessableEntityException.php b/src/Exception/PipelineScheduleOncePipelineItemUnprocessableEntityException.php new file mode 100644 index 00000000..364ff21f --- /dev/null +++ b/src/Exception/PipelineScheduleOncePipelineItemUnprocessableEntityException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PostAkeneoInstanceCollectionBadRequestException.php b/src/Exception/PostAkeneoInstanceCollectionBadRequestException.php index 33773974..c50b5250 100644 --- a/src/Exception/PostAkeneoInstanceCollectionBadRequestException.php +++ b/src/Exception/PostAkeneoInstanceCollectionBadRequestException.php @@ -12,8 +12,19 @@ class PostAkeneoInstanceCollectionBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostAkeneoInstanceCollectionUnprocessableEntityException.php b/src/Exception/PostAkeneoInstanceCollectionUnprocessableEntityException.php index 3751f236..e27055ea 100644 --- a/src/Exception/PostAkeneoInstanceCollectionUnprocessableEntityException.php +++ b/src/Exception/PostAkeneoInstanceCollectionUnprocessableEntityException.php @@ -12,8 +12,19 @@ class PostAkeneoInstanceCollectionUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostAkeneoLinkedAccountCollectionBadRequestException.php b/src/Exception/PostAkeneoLinkedAccountCollectionBadRequestException.php index 0f2b256f..1cd08f4c 100644 --- a/src/Exception/PostAkeneoLinkedAccountCollectionBadRequestException.php +++ b/src/Exception/PostAkeneoLinkedAccountCollectionBadRequestException.php @@ -12,8 +12,19 @@ class PostAkeneoLinkedAccountCollectionBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostAkeneoLinkedAccountCollectionUnprocessableEntityException.php b/src/Exception/PostAkeneoLinkedAccountCollectionUnprocessableEntityException.php index 31c8df07..07c235a9 100644 --- a/src/Exception/PostAkeneoLinkedAccountCollectionUnprocessableEntityException.php +++ b/src/Exception/PostAkeneoLinkedAccountCollectionUnprocessableEntityException.php @@ -12,8 +12,19 @@ class PostAkeneoLinkedAccountCollectionUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostAkeneoOauthTokenCollectionBadRequestException.php b/src/Exception/PostAkeneoOauthTokenCollectionBadRequestException.php index 33f68c31..bd4f2aaf 100644 --- a/src/Exception/PostAkeneoOauthTokenCollectionBadRequestException.php +++ b/src/Exception/PostAkeneoOauthTokenCollectionBadRequestException.php @@ -12,8 +12,19 @@ class PostAkeneoOauthTokenCollectionBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostAkeneoOauthTokenCollectionUnprocessableEntityException.php b/src/Exception/PostAkeneoOauthTokenCollectionUnprocessableEntityException.php index 7cb4d496..d475925e 100644 --- a/src/Exception/PostAkeneoOauthTokenCollectionUnprocessableEntityException.php +++ b/src/Exception/PostAkeneoOauthTokenCollectionUnprocessableEntityException.php @@ -12,8 +12,19 @@ class PostAkeneoOauthTokenCollectionUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostCompilationCollectionBadRequestException.php b/src/Exception/PostCompilationCollectionBadRequestException.php deleted file mode 100644 index 44f7f2c5..00000000 --- a/src/Exception/PostCompilationCollectionBadRequestException.php +++ /dev/null @@ -1,19 +0,0 @@ -response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostConfigurationCollectionUnprocessableEntityException.php b/src/Exception/PostConfigurationCollectionUnprocessableEntityException.php index ba1c7ed0..76667a00 100644 --- a/src/Exception/PostConfigurationCollectionUnprocessableEntityException.php +++ b/src/Exception/PostConfigurationCollectionUnprocessableEntityException.php @@ -12,8 +12,19 @@ class PostConfigurationCollectionUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostEnvironmentCollectionBadRequestException.php b/src/Exception/PostEnvironmentCollectionBadRequestException.php index 064d6a6f..c3c19240 100644 --- a/src/Exception/PostEnvironmentCollectionBadRequestException.php +++ b/src/Exception/PostEnvironmentCollectionBadRequestException.php @@ -12,8 +12,19 @@ class PostEnvironmentCollectionBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostEnvironmentCollectionUnprocessableEntityException.php b/src/Exception/PostEnvironmentCollectionUnprocessableEntityException.php index 78229066..dee0e7db 100644 --- a/src/Exception/PostEnvironmentCollectionUnprocessableEntityException.php +++ b/src/Exception/PostEnvironmentCollectionUnprocessableEntityException.php @@ -12,8 +12,19 @@ class PostEnvironmentCollectionUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostForgotPasswordBadRequestException.php b/src/Exception/PostForgotPasswordBadRequestException.php index 21327818..ad177de1 100644 --- a/src/Exception/PostForgotPasswordBadRequestException.php +++ b/src/Exception/PostForgotPasswordBadRequestException.php @@ -12,8 +12,19 @@ class PostForgotPasswordBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Missing email parameter or invalid format'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostForgotPasswordTokenBadRequestException.php b/src/Exception/PostForgotPasswordTokenBadRequestException.php index c95501d3..58985b95 100644 --- a/src/Exception/PostForgotPasswordTokenBadRequestException.php +++ b/src/Exception/PostForgotPasswordTokenBadRequestException.php @@ -12,8 +12,19 @@ class PostForgotPasswordTokenBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Missing password parameter'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostForgotPasswordTokenNotFoundException.php b/src/Exception/PostForgotPasswordTokenNotFoundException.php index 74e8a0ad..508d302d 100644 --- a/src/Exception/PostForgotPasswordTokenNotFoundException.php +++ b/src/Exception/PostForgotPasswordTokenNotFoundException.php @@ -12,8 +12,19 @@ class PostForgotPasswordTokenNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Token not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostOnPremiseRequestCollectionBadRequestException.php b/src/Exception/PostOnPremiseRequestCollectionBadRequestException.php index 7a835027..5481b8ec 100644 --- a/src/Exception/PostOnPremiseRequestCollectionBadRequestException.php +++ b/src/Exception/PostOnPremiseRequestCollectionBadRequestException.php @@ -12,8 +12,19 @@ class PostOnPremiseRequestCollectionBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostOnPremiseRequestCollectionUnprocessableEntityException.php b/src/Exception/PostOnPremiseRequestCollectionUnprocessableEntityException.php index 2c81eeb7..85e8ec7f 100644 --- a/src/Exception/PostOnPremiseRequestCollectionUnprocessableEntityException.php +++ b/src/Exception/PostOnPremiseRequestCollectionUnprocessableEntityException.php @@ -12,8 +12,19 @@ class PostOnPremiseRequestCollectionUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostOrganizationCollectionBadRequestException.php b/src/Exception/PostOrganizationCollectionBadRequestException.php index e3079fe9..1b1eb4b8 100644 --- a/src/Exception/PostOrganizationCollectionBadRequestException.php +++ b/src/Exception/PostOrganizationCollectionBadRequestException.php @@ -12,8 +12,19 @@ class PostOrganizationCollectionBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostOrganizationCollectionUnprocessableEntityException.php b/src/Exception/PostOrganizationCollectionUnprocessableEntityException.php index 2c6eeef1..b1553a26 100644 --- a/src/Exception/PostOrganizationCollectionUnprocessableEntityException.php +++ b/src/Exception/PostOrganizationCollectionUnprocessableEntityException.php @@ -12,8 +12,19 @@ class PostOrganizationCollectionUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostReferralCodeCollectionBadRequestException.php b/src/Exception/PostReferralCodeCollectionBadRequestException.php index e6efeca9..d9b89b38 100644 --- a/src/Exception/PostReferralCodeCollectionBadRequestException.php +++ b/src/Exception/PostReferralCodeCollectionBadRequestException.php @@ -12,8 +12,19 @@ class PostReferralCodeCollectionBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostReferralCodeCollectionUnprocessableEntityException.php b/src/Exception/PostReferralCodeCollectionUnprocessableEntityException.php index 29f7f417..8c9bd76d 100644 --- a/src/Exception/PostReferralCodeCollectionUnprocessableEntityException.php +++ b/src/Exception/PostReferralCodeCollectionUnprocessableEntityException.php @@ -12,8 +12,19 @@ class PostReferralCodeCollectionUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostReferralRequestCollectionBadRequestException.php b/src/Exception/PostReferralRequestCollectionBadRequestException.php index ddf5d9c4..f4b269a6 100644 --- a/src/Exception/PostReferralRequestCollectionBadRequestException.php +++ b/src/Exception/PostReferralRequestCollectionBadRequestException.php @@ -12,8 +12,19 @@ class PostReferralRequestCollectionBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostReferralRequestCollectionUnprocessableEntityException.php b/src/Exception/PostReferralRequestCollectionUnprocessableEntityException.php index 3424cd56..3f69a9e5 100644 --- a/src/Exception/PostReferralRequestCollectionUnprocessableEntityException.php +++ b/src/Exception/PostReferralRequestCollectionUnprocessableEntityException.php @@ -12,8 +12,19 @@ class PostReferralRequestCollectionUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostScheduleCollectionBadRequestException.php b/src/Exception/PostScheduleCollectionBadRequestException.php deleted file mode 100644 index e62fb709..00000000 --- a/src/Exception/PostScheduleCollectionBadRequestException.php +++ /dev/null @@ -1,19 +0,0 @@ -response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostSecretCollectionUnprocessableEntityException.php b/src/Exception/PostSecretCollectionUnprocessableEntityException.php index 4caef60a..2a6f64ba 100644 --- a/src/Exception/PostSecretCollectionUnprocessableEntityException.php +++ b/src/Exception/PostSecretCollectionUnprocessableEntityException.php @@ -12,8 +12,19 @@ class PostSecretCollectionUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostSubscriptionCollectionBadRequestException.php b/src/Exception/PostSubscriptionCollectionBadRequestException.php index 26c266d5..611476c4 100644 --- a/src/Exception/PostSubscriptionCollectionBadRequestException.php +++ b/src/Exception/PostSubscriptionCollectionBadRequestException.php @@ -12,8 +12,19 @@ class PostSubscriptionCollectionBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostSubscriptionCollectionUnprocessableEntityException.php b/src/Exception/PostSubscriptionCollectionUnprocessableEntityException.php index 77d7b6d1..bbb9c919 100644 --- a/src/Exception/PostSubscriptionCollectionUnprocessableEntityException.php +++ b/src/Exception/PostSubscriptionCollectionUnprocessableEntityException.php @@ -12,8 +12,19 @@ class PostSubscriptionCollectionUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostUserAuthorizationCollectionBadRequestException.php b/src/Exception/PostUserAuthorizationCollectionBadRequestException.php index 1786df62..4126dffe 100644 --- a/src/Exception/PostUserAuthorizationCollectionBadRequestException.php +++ b/src/Exception/PostUserAuthorizationCollectionBadRequestException.php @@ -12,8 +12,19 @@ class PostUserAuthorizationCollectionBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostUserAuthorizationCollectionUnprocessableEntityException.php b/src/Exception/PostUserAuthorizationCollectionUnprocessableEntityException.php index cd13c3be..ed852bd9 100644 --- a/src/Exception/PostUserAuthorizationCollectionUnprocessableEntityException.php +++ b/src/Exception/PostUserAuthorizationCollectionUnprocessableEntityException.php @@ -12,8 +12,19 @@ class PostUserAuthorizationCollectionUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostUserCollectionBadRequestException.php b/src/Exception/PostUserCollectionBadRequestException.php index 160e2dc8..dee7eb74 100644 --- a/src/Exception/PostUserCollectionBadRequestException.php +++ b/src/Exception/PostUserCollectionBadRequestException.php @@ -12,8 +12,19 @@ class PostUserCollectionBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostUserCollectionUnprocessableEntityException.php b/src/Exception/PostUserCollectionUnprocessableEntityException.php index b8bbb6d9..7a434f31 100644 --- a/src/Exception/PostUserCollectionUnprocessableEntityException.php +++ b/src/Exception/PostUserCollectionUnprocessableEntityException.php @@ -12,8 +12,19 @@ class PostUserCollectionUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostWorkspaceCollectionBadRequestException.php b/src/Exception/PostWorkspaceCollectionBadRequestException.php index c8e9292b..408fc4c1 100644 --- a/src/Exception/PostWorkspaceCollectionBadRequestException.php +++ b/src/Exception/PostWorkspaceCollectionBadRequestException.php @@ -12,8 +12,19 @@ class PostWorkspaceCollectionBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PostWorkspaceCollectionUnprocessableEntityException.php b/src/Exception/PostWorkspaceCollectionUnprocessableEntityException.php index b442466c..7fa19bd9 100644 --- a/src/Exception/PostWorkspaceCollectionUnprocessableEntityException.php +++ b/src/Exception/PostWorkspaceCollectionUnprocessableEntityException.php @@ -12,8 +12,19 @@ class PostWorkspaceCollectionUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PutAkeneoOauthTokenAkeneoOauthTokenCollectionBadRequestException.php b/src/Exception/PutAkeneoOauthTokenAkeneoOauthTokenCollectionBadRequestException.php index dc88a941..b070df8f 100644 --- a/src/Exception/PutAkeneoOauthTokenAkeneoOauthTokenCollectionBadRequestException.php +++ b/src/Exception/PutAkeneoOauthTokenAkeneoOauthTokenCollectionBadRequestException.php @@ -12,8 +12,19 @@ class PutAkeneoOauthTokenAkeneoOauthTokenCollectionBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PutAkeneoOauthTokenAkeneoOauthTokenCollectionUnprocessableEntityException.php b/src/Exception/PutAkeneoOauthTokenAkeneoOauthTokenCollectionUnprocessableEntityException.php index c1999fd0..cdd2c4c5 100644 --- a/src/Exception/PutAkeneoOauthTokenAkeneoOauthTokenCollectionUnprocessableEntityException.php +++ b/src/Exception/PutAkeneoOauthTokenAkeneoOauthTokenCollectionUnprocessableEntityException.php @@ -12,8 +12,19 @@ class PutAkeneoOauthTokenAkeneoOauthTokenCollectionUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PutExternalCollaboratorsOrganizationItemBadRequestException.php b/src/Exception/PutExternalCollaboratorsOrganizationItemBadRequestException.php new file mode 100644 index 00000000..369aeadf --- /dev/null +++ b/src/Exception/PutExternalCollaboratorsOrganizationItemBadRequestException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PutExternalCollaboratorsOrganizationItemNotFoundException.php b/src/Exception/PutExternalCollaboratorsOrganizationItemNotFoundException.php new file mode 100644 index 00000000..2879e3ba --- /dev/null +++ b/src/Exception/PutExternalCollaboratorsOrganizationItemNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PutExternalCollaboratorsOrganizationItemUnprocessableEntityException.php b/src/Exception/PutExternalCollaboratorsOrganizationItemUnprocessableEntityException.php new file mode 100644 index 00000000..f556e80f --- /dev/null +++ b/src/Exception/PutExternalCollaboratorsOrganizationItemUnprocessableEntityException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PutOfferItemBadRequestException.php b/src/Exception/PutOfferItemBadRequestException.php deleted file mode 100644 index 614a08f6..00000000 --- a/src/Exception/PutOfferItemBadRequestException.php +++ /dev/null @@ -1,19 +0,0 @@ -response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PutOrganizationItemNotFoundException.php b/src/Exception/PutOrganizationItemNotFoundException.php index 1b2cfd30..c76be755 100644 --- a/src/Exception/PutOrganizationItemNotFoundException.php +++ b/src/Exception/PutOrganizationItemNotFoundException.php @@ -12,8 +12,19 @@ class PutOrganizationItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PutOrganizationItemUnprocessableEntityException.php b/src/Exception/PutOrganizationItemUnprocessableEntityException.php index ddd617ca..ccd3fbca 100644 --- a/src/Exception/PutOrganizationItemUnprocessableEntityException.php +++ b/src/Exception/PutOrganizationItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class PutOrganizationItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PutSubscriptionItemBadRequestException.php b/src/Exception/PutSubscriptionItemBadRequestException.php index a902ddc4..d768ac04 100644 --- a/src/Exception/PutSubscriptionItemBadRequestException.php +++ b/src/Exception/PutSubscriptionItemBadRequestException.php @@ -12,8 +12,19 @@ class PutSubscriptionItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PutSubscriptionItemNotFoundException.php b/src/Exception/PutSubscriptionItemNotFoundException.php index a1f0f41b..30775d32 100644 --- a/src/Exception/PutSubscriptionItemNotFoundException.php +++ b/src/Exception/PutSubscriptionItemNotFoundException.php @@ -12,8 +12,19 @@ class PutSubscriptionItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PutSubscriptionItemUnprocessableEntityException.php b/src/Exception/PutSubscriptionItemUnprocessableEntityException.php index cc9dffb8..c6719bcc 100644 --- a/src/Exception/PutSubscriptionItemUnprocessableEntityException.php +++ b/src/Exception/PutSubscriptionItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class PutSubscriptionItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PutSubscriptionOfferItemBadRequestException.php b/src/Exception/PutSubscriptionOfferItemBadRequestException.php new file mode 100644 index 00000000..ca07cd6f --- /dev/null +++ b/src/Exception/PutSubscriptionOfferItemBadRequestException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PutSubscriptionOfferItemNotFoundException.php b/src/Exception/PutSubscriptionOfferItemNotFoundException.php new file mode 100644 index 00000000..fac86616 --- /dev/null +++ b/src/Exception/PutSubscriptionOfferItemNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PutSubscriptionOfferItemUnprocessableEntityException.php b/src/Exception/PutSubscriptionOfferItemUnprocessableEntityException.php new file mode 100644 index 00000000..e026f5f5 --- /dev/null +++ b/src/Exception/PutSubscriptionOfferItemUnprocessableEntityException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/PutUserAuthorizationItemBadRequestException.php b/src/Exception/PutUserAuthorizationItemBadRequestException.php index e62272d6..c8285b88 100644 --- a/src/Exception/PutUserAuthorizationItemBadRequestException.php +++ b/src/Exception/PutUserAuthorizationItemBadRequestException.php @@ -12,8 +12,19 @@ class PutUserAuthorizationItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PutUserAuthorizationItemNotFoundException.php b/src/Exception/PutUserAuthorizationItemNotFoundException.php index fc847f58..b277dea4 100644 --- a/src/Exception/PutUserAuthorizationItemNotFoundException.php +++ b/src/Exception/PutUserAuthorizationItemNotFoundException.php @@ -12,8 +12,19 @@ class PutUserAuthorizationItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PutUserAuthorizationItemUnprocessableEntityException.php b/src/Exception/PutUserAuthorizationItemUnprocessableEntityException.php index 362bc2a5..8a1934d1 100644 --- a/src/Exception/PutUserAuthorizationItemUnprocessableEntityException.php +++ b/src/Exception/PutUserAuthorizationItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class PutUserAuthorizationItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PutUserItemBadRequestException.php b/src/Exception/PutUserItemBadRequestException.php index 8ee976a2..9a565b36 100644 --- a/src/Exception/PutUserItemBadRequestException.php +++ b/src/Exception/PutUserItemBadRequestException.php @@ -12,8 +12,19 @@ class PutUserItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PutUserItemNotFoundException.php b/src/Exception/PutUserItemNotFoundException.php index 9955adc9..afa7e812 100644 --- a/src/Exception/PutUserItemNotFoundException.php +++ b/src/Exception/PutUserItemNotFoundException.php @@ -12,8 +12,19 @@ class PutUserItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PutUserItemUnprocessableEntityException.php b/src/Exception/PutUserItemUnprocessableEntityException.php index f19d4ffd..f86041a5 100644 --- a/src/Exception/PutUserItemUnprocessableEntityException.php +++ b/src/Exception/PutUserItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class PutUserItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PutWorkspaceItemBadRequestException.php b/src/Exception/PutWorkspaceItemBadRequestException.php index e1525f38..a34a72b0 100644 --- a/src/Exception/PutWorkspaceItemBadRequestException.php +++ b/src/Exception/PutWorkspaceItemBadRequestException.php @@ -12,8 +12,19 @@ class PutWorkspaceItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PutWorkspaceItemNotFoundException.php b/src/Exception/PutWorkspaceItemNotFoundException.php index a032fd75..3f84abbd 100644 --- a/src/Exception/PutWorkspaceItemNotFoundException.php +++ b/src/Exception/PutWorkspaceItemNotFoundException.php @@ -12,8 +12,19 @@ class PutWorkspaceItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/PutWorkspaceItemUnprocessableEntityException.php b/src/Exception/PutWorkspaceItemUnprocessableEntityException.php index a08aff60..716b31f9 100644 --- a/src/Exception/PutWorkspaceItemUnprocessableEntityException.php +++ b/src/Exception/PutWorkspaceItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class PutWorkspaceItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/RejectReferralRequestReferralRequestItemBadRequestException.php b/src/Exception/RejectReferralRequestReferralRequestItemBadRequestException.php index d0b40e0d..c66f63fe 100644 --- a/src/Exception/RejectReferralRequestReferralRequestItemBadRequestException.php +++ b/src/Exception/RejectReferralRequestReferralRequestItemBadRequestException.php @@ -12,8 +12,19 @@ class RejectReferralRequestReferralRequestItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/RejectReferralRequestReferralRequestItemNotFoundException.php b/src/Exception/RejectReferralRequestReferralRequestItemNotFoundException.php index b74c0883..c018fa93 100644 --- a/src/Exception/RejectReferralRequestReferralRequestItemNotFoundException.php +++ b/src/Exception/RejectReferralRequestReferralRequestItemNotFoundException.php @@ -12,8 +12,19 @@ class RejectReferralRequestReferralRequestItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/RejectReferralRequestReferralRequestItemUnprocessableEntityException.php b/src/Exception/RejectReferralRequestReferralRequestItemUnprocessableEntityException.php index 541a09fd..e317f656 100644 --- a/src/Exception/RejectReferralRequestReferralRequestItemUnprocessableEntityException.php +++ b/src/Exception/RejectReferralRequestReferralRequestItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class RejectReferralRequestReferralRequestItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/RemoveComposerAuthPipelinePipelineItemBadRequestException.php b/src/Exception/RemoveComposerAuthPipelinePipelineItemBadRequestException.php index ca9f7441..99cb0dd2 100644 --- a/src/Exception/RemoveComposerAuthPipelinePipelineItemBadRequestException.php +++ b/src/Exception/RemoveComposerAuthPipelinePipelineItemBadRequestException.php @@ -12,8 +12,19 @@ class RemoveComposerAuthPipelinePipelineItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/RemoveComposerAuthPipelinePipelineItemNotFoundException.php b/src/Exception/RemoveComposerAuthPipelinePipelineItemNotFoundException.php index 4d66ab59..0f9ed075 100644 --- a/src/Exception/RemoveComposerAuthPipelinePipelineItemNotFoundException.php +++ b/src/Exception/RemoveComposerAuthPipelinePipelineItemNotFoundException.php @@ -12,8 +12,19 @@ class RemoveComposerAuthPipelinePipelineItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/RemoveComposerAuthPipelinePipelineItemUnprocessableEntityException.php b/src/Exception/RemoveComposerAuthPipelinePipelineItemUnprocessableEntityException.php index d20863b3..c9c94a1f 100644 --- a/src/Exception/RemoveComposerAuthPipelinePipelineItemUnprocessableEntityException.php +++ b/src/Exception/RemoveComposerAuthPipelinePipelineItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class RemoveComposerAuthPipelinePipelineItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/RemoveComposerAutoloadPipelinePipelineItemBadRequestException.php b/src/Exception/RemoveComposerAutoloadPipelinePipelineItemBadRequestException.php index ea400061..c11b0bcb 100644 --- a/src/Exception/RemoveComposerAutoloadPipelinePipelineItemBadRequestException.php +++ b/src/Exception/RemoveComposerAutoloadPipelinePipelineItemBadRequestException.php @@ -12,8 +12,19 @@ class RemoveComposerAutoloadPipelinePipelineItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/RemoveComposerAutoloadPipelinePipelineItemNotFoundException.php b/src/Exception/RemoveComposerAutoloadPipelinePipelineItemNotFoundException.php index afaede65..cb50123c 100644 --- a/src/Exception/RemoveComposerAutoloadPipelinePipelineItemNotFoundException.php +++ b/src/Exception/RemoveComposerAutoloadPipelinePipelineItemNotFoundException.php @@ -12,8 +12,19 @@ class RemoveComposerAutoloadPipelinePipelineItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/RemoveComposerAutoloadPipelinePipelineItemUnprocessableEntityException.php b/src/Exception/RemoveComposerAutoloadPipelinePipelineItemUnprocessableEntityException.php index d088859a..0593cdb3 100644 --- a/src/Exception/RemoveComposerAutoloadPipelinePipelineItemUnprocessableEntityException.php +++ b/src/Exception/RemoveComposerAutoloadPipelinePipelineItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class RemoveComposerAutoloadPipelinePipelineItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/RemoveComposerPackagePipelinePipelineItemBadRequestException.php b/src/Exception/RemoveComposerPackagePipelinePipelineItemBadRequestException.php index 93bd87cc..599f67e7 100644 --- a/src/Exception/RemoveComposerPackagePipelinePipelineItemBadRequestException.php +++ b/src/Exception/RemoveComposerPackagePipelinePipelineItemBadRequestException.php @@ -12,8 +12,19 @@ class RemoveComposerPackagePipelinePipelineItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/RemoveComposerPackagePipelinePipelineItemNotFoundException.php b/src/Exception/RemoveComposerPackagePipelinePipelineItemNotFoundException.php index 0e98eab0..2570d373 100644 --- a/src/Exception/RemoveComposerPackagePipelinePipelineItemNotFoundException.php +++ b/src/Exception/RemoveComposerPackagePipelinePipelineItemNotFoundException.php @@ -12,8 +12,19 @@ class RemoveComposerPackagePipelinePipelineItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/RemoveComposerPackagePipelinePipelineItemUnprocessableEntityException.php b/src/Exception/RemoveComposerPackagePipelinePipelineItemUnprocessableEntityException.php index aeca4dbb..f782187e 100644 --- a/src/Exception/RemoveComposerPackagePipelinePipelineItemUnprocessableEntityException.php +++ b/src/Exception/RemoveComposerPackagePipelinePipelineItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class RemoveComposerPackagePipelinePipelineItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/RemoveComposerRepositoryPipelinePipelineItemBadRequestException.php b/src/Exception/RemoveComposerRepositoryPipelinePipelineItemBadRequestException.php index f81a3562..a5543593 100644 --- a/src/Exception/RemoveComposerRepositoryPipelinePipelineItemBadRequestException.php +++ b/src/Exception/RemoveComposerRepositoryPipelinePipelineItemBadRequestException.php @@ -12,8 +12,19 @@ class RemoveComposerRepositoryPipelinePipelineItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/RemoveComposerRepositoryPipelinePipelineItemNotFoundException.php b/src/Exception/RemoveComposerRepositoryPipelinePipelineItemNotFoundException.php index fb7cadcf..fd45e764 100644 --- a/src/Exception/RemoveComposerRepositoryPipelinePipelineItemNotFoundException.php +++ b/src/Exception/RemoveComposerRepositoryPipelinePipelineItemNotFoundException.php @@ -12,8 +12,19 @@ class RemoveComposerRepositoryPipelinePipelineItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/RemoveComposerRepositoryPipelinePipelineItemUnprocessableEntityException.php b/src/Exception/RemoveComposerRepositoryPipelinePipelineItemUnprocessableEntityException.php index 1e52a977..e98608d2 100644 --- a/src/Exception/RemoveComposerRepositoryPipelinePipelineItemUnprocessableEntityException.php +++ b/src/Exception/RemoveComposerRepositoryPipelinePipelineItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class RemoveComposerRepositoryPipelinePipelineItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/RemovePipelineStepProbePipelineItemNotFoundException.php b/src/Exception/RemovePipelineStepProbePipelineItemNotFoundException.php index 3ef9afb4..bad73813 100644 --- a/src/Exception/RemovePipelineStepProbePipelineItemNotFoundException.php +++ b/src/Exception/RemovePipelineStepProbePipelineItemNotFoundException.php @@ -12,8 +12,19 @@ class RemovePipelineStepProbePipelineItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/RemoveValuesConfigurationItemBadRequestException.php b/src/Exception/RemoveValuesConfigurationItemBadRequestException.php index 57c30180..264685c2 100644 --- a/src/Exception/RemoveValuesConfigurationItemBadRequestException.php +++ b/src/Exception/RemoveValuesConfigurationItemBadRequestException.php @@ -12,8 +12,19 @@ class RemoveValuesConfigurationItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/RemoveValuesConfigurationItemNotFoundException.php b/src/Exception/RemoveValuesConfigurationItemNotFoundException.php index ace3df24..7ef28450 100644 --- a/src/Exception/RemoveValuesConfigurationItemNotFoundException.php +++ b/src/Exception/RemoveValuesConfigurationItemNotFoundException.php @@ -12,8 +12,19 @@ class RemoveValuesConfigurationItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/RemoveValuesConfigurationItemUnprocessableEntityException.php b/src/Exception/RemoveValuesConfigurationItemUnprocessableEntityException.php index 3cf23312..aeb1d73f 100644 --- a/src/Exception/RemoveValuesConfigurationItemUnprocessableEntityException.php +++ b/src/Exception/RemoveValuesConfigurationItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class RemoveValuesConfigurationItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/RemoveValuesSecretItemBadRequestException.php b/src/Exception/RemoveValuesSecretItemBadRequestException.php index ee86ed59..c97ff7b2 100644 --- a/src/Exception/RemoveValuesSecretItemBadRequestException.php +++ b/src/Exception/RemoveValuesSecretItemBadRequestException.php @@ -12,8 +12,19 @@ class RemoveValuesSecretItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/RemoveValuesSecretItemNotFoundException.php b/src/Exception/RemoveValuesSecretItemNotFoundException.php index 0467c4a2..aef35043 100644 --- a/src/Exception/RemoveValuesSecretItemNotFoundException.php +++ b/src/Exception/RemoveValuesSecretItemNotFoundException.php @@ -12,8 +12,19 @@ class RemoveValuesSecretItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/RemoveValuesSecretItemUnprocessableEntityException.php b/src/Exception/RemoveValuesSecretItemUnprocessableEntityException.php index 77233889..5fd65063 100644 --- a/src/Exception/RemoveValuesSecretItemUnprocessableEntityException.php +++ b/src/Exception/RemoveValuesSecretItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class RemoveValuesSecretItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/ReorderPipelineStepsPipelineItemBadRequestException.php b/src/Exception/ReorderPipelineStepsPipelineItemBadRequestException.php index 134a429a..e8794a0d 100644 --- a/src/Exception/ReorderPipelineStepsPipelineItemBadRequestException.php +++ b/src/Exception/ReorderPipelineStepsPipelineItemBadRequestException.php @@ -12,8 +12,19 @@ class ReorderPipelineStepsPipelineItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/ReorderPipelineStepsPipelineItemNotFoundException.php b/src/Exception/ReorderPipelineStepsPipelineItemNotFoundException.php index 70d3f7ed..0f076d6f 100644 --- a/src/Exception/ReorderPipelineStepsPipelineItemNotFoundException.php +++ b/src/Exception/ReorderPipelineStepsPipelineItemNotFoundException.php @@ -12,8 +12,19 @@ class ReorderPipelineStepsPipelineItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/ReorderPipelineStepsPipelineItemUnprocessableEntityException.php b/src/Exception/ReorderPipelineStepsPipelineItemUnprocessableEntityException.php index f961f434..97289692 100644 --- a/src/Exception/ReorderPipelineStepsPipelineItemUnprocessableEntityException.php +++ b/src/Exception/ReorderPipelineStepsPipelineItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class ReorderPipelineStepsPipelineItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/ReplacePipelineStepPipelineItemBadRequestException.php b/src/Exception/ReplacePipelineStepPipelineItemBadRequestException.php index 3cf470b3..16bae0e7 100644 --- a/src/Exception/ReplacePipelineStepPipelineItemBadRequestException.php +++ b/src/Exception/ReplacePipelineStepPipelineItemBadRequestException.php @@ -12,8 +12,19 @@ class ReplacePipelineStepPipelineItemBadRequestException extends BadRequestException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Invalid input'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/ReplacePipelineStepPipelineItemNotFoundException.php b/src/Exception/ReplacePipelineStepPipelineItemNotFoundException.php index 2fb67a95..8029f41f 100644 --- a/src/Exception/ReplacePipelineStepPipelineItemNotFoundException.php +++ b/src/Exception/ReplacePipelineStepPipelineItemNotFoundException.php @@ -12,8 +12,19 @@ class ReplacePipelineStepPipelineItemNotFoundException extends NotFoundException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Resource not found'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/ReplacePipelineStepPipelineItemUnprocessableEntityException.php b/src/Exception/ReplacePipelineStepPipelineItemUnprocessableEntityException.php index 81851a2f..8b859a0e 100644 --- a/src/Exception/ReplacePipelineStepPipelineItemUnprocessableEntityException.php +++ b/src/Exception/ReplacePipelineStepPipelineItemUnprocessableEntityException.php @@ -12,8 +12,19 @@ class ReplacePipelineStepPipelineItemUnprocessableEntityException extends UnprocessableEntityException { - public function __construct() + /** + * @var \Psr\Http\Message\ResponseInterface + */ + private $response; + + public function __construct(\Psr\Http\Message\ResponseInterface $response = null) { parent::__construct('Unprocessable entity'); + $this->response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; } } diff --git a/src/Exception/ResumeExecutionExecutionItemBadRequestException.php b/src/Exception/ResumeExecutionExecutionItemBadRequestException.php deleted file mode 100644 index 9ac18a2c..00000000 --- a/src/Exception/ResumeExecutionExecutionItemBadRequestException.php +++ /dev/null @@ -1,19 +0,0 @@ -response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/ResumeExecutionExecutionWorkflowItemNotFoundException.php b/src/Exception/ResumeExecutionExecutionWorkflowItemNotFoundException.php new file mode 100644 index 00000000..0034f855 --- /dev/null +++ b/src/Exception/ResumeExecutionExecutionWorkflowItemNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/ResumeExecutionExecutionWorkflowItemUnprocessableEntityException.php b/src/Exception/ResumeExecutionExecutionWorkflowItemUnprocessableEntityException.php new file mode 100644 index 00000000..d761ff08 --- /dev/null +++ b/src/Exception/ResumeExecutionExecutionWorkflowItemUnprocessableEntityException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/SoftDeleteWorkflowItemBadRequestException.php b/src/Exception/SoftDeleteWorkflowItemBadRequestException.php new file mode 100644 index 00000000..fa0e952a --- /dev/null +++ b/src/Exception/SoftDeleteWorkflowItemBadRequestException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/SoftDeleteWorkflowItemNotFoundException.php b/src/Exception/SoftDeleteWorkflowItemNotFoundException.php new file mode 100644 index 00000000..ddb123c8 --- /dev/null +++ b/src/Exception/SoftDeleteWorkflowItemNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/SoftDeleteWorkflowItemUnprocessableEntityException.php b/src/Exception/SoftDeleteWorkflowItemUnprocessableEntityException.php new file mode 100644 index 00000000..e1dba355 --- /dev/null +++ b/src/Exception/SoftDeleteWorkflowItemUnprocessableEntityException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/StartExecutionExecutionItemBadRequestException.php b/src/Exception/StartExecutionExecutionItemBadRequestException.php deleted file mode 100644 index 374bf1f0..00000000 --- a/src/Exception/StartExecutionExecutionItemBadRequestException.php +++ /dev/null @@ -1,19 +0,0 @@ -response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/TerminateExecutionExecutionWorkflowItemNotFoundException.php b/src/Exception/TerminateExecutionExecutionWorkflowItemNotFoundException.php new file mode 100644 index 00000000..6791b388 --- /dev/null +++ b/src/Exception/TerminateExecutionExecutionWorkflowItemNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/TerminateExecutionExecutionWorkflowItemUnprocessableEntityException.php b/src/Exception/TerminateExecutionExecutionWorkflowItemUnprocessableEntityException.php new file mode 100644 index 00000000..4f828e78 --- /dev/null +++ b/src/Exception/TerminateExecutionExecutionWorkflowItemUnprocessableEntityException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/UpdateExecutionStateExecutionItemBadRequestException.php b/src/Exception/UpdateExecutionStateExecutionItemBadRequestException.php deleted file mode 100644 index 66fa8a9d..00000000 --- a/src/Exception/UpdateExecutionStateExecutionItemBadRequestException.php +++ /dev/null @@ -1,19 +0,0 @@ -response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/WorkflowCompilationWorkflowItemNotFoundException.php b/src/Exception/WorkflowCompilationWorkflowItemNotFoundException.php new file mode 100644 index 00000000..8ef85ad7 --- /dev/null +++ b/src/Exception/WorkflowCompilationWorkflowItemNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/WorkflowCompilationWorkflowItemUnprocessableEntityException.php b/src/Exception/WorkflowCompilationWorkflowItemUnprocessableEntityException.php new file mode 100644 index 00000000..cd39e695 --- /dev/null +++ b/src/Exception/WorkflowCompilationWorkflowItemUnprocessableEntityException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/WorkflowScheduleCrontabWorkflowItemBadRequestException.php b/src/Exception/WorkflowScheduleCrontabWorkflowItemBadRequestException.php new file mode 100644 index 00000000..0100d10a --- /dev/null +++ b/src/Exception/WorkflowScheduleCrontabWorkflowItemBadRequestException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/WorkflowScheduleCrontabWorkflowItemNotFoundException.php b/src/Exception/WorkflowScheduleCrontabWorkflowItemNotFoundException.php new file mode 100644 index 00000000..24b57233 --- /dev/null +++ b/src/Exception/WorkflowScheduleCrontabWorkflowItemNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/WorkflowScheduleCrontabWorkflowItemUnprocessableEntityException.php b/src/Exception/WorkflowScheduleCrontabWorkflowItemUnprocessableEntityException.php new file mode 100644 index 00000000..423a9b14 --- /dev/null +++ b/src/Exception/WorkflowScheduleCrontabWorkflowItemUnprocessableEntityException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/WorkflowScheduleImmediateWorkflowItemBadRequestException.php b/src/Exception/WorkflowScheduleImmediateWorkflowItemBadRequestException.php new file mode 100644 index 00000000..406ea8b5 --- /dev/null +++ b/src/Exception/WorkflowScheduleImmediateWorkflowItemBadRequestException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/WorkflowScheduleImmediateWorkflowItemNotFoundException.php b/src/Exception/WorkflowScheduleImmediateWorkflowItemNotFoundException.php new file mode 100644 index 00000000..87079444 --- /dev/null +++ b/src/Exception/WorkflowScheduleImmediateWorkflowItemNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Exception/WorkflowScheduleImmediateWorkflowItemUnprocessableEntityException.php b/src/Exception/WorkflowScheduleImmediateWorkflowItemUnprocessableEntityException.php new file mode 100644 index 00000000..c2cb2b0c --- /dev/null +++ b/src/Exception/WorkflowScheduleImmediateWorkflowItemUnprocessableEntityException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Model/AbstractCloudEngine.php b/src/Model/AbstractCloudEngine.php new file mode 100644 index 00000000..0e5c4c0e --- /dev/null +++ b/src/Model/AbstractCloudEngine.php @@ -0,0 +1,64 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string[]|null + */ + protected $environments; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + /** + * @return string[]|null + */ + public function getEnvironments(): ?array + { + return $this->environments; + } + + /** + * @param string[]|null $environments + */ + public function setEnvironments(?array $environments): self + { + $this->initialized['environments'] = true; + $this->environments = $environments; + + return $this; + } +} diff --git a/src/Model/AbstractCloudEngineJsonld.php b/src/Model/AbstractCloudEngineJsonld.php new file mode 100644 index 00000000..6e83f41f --- /dev/null +++ b/src/Model/AbstractCloudEngineJsonld.php @@ -0,0 +1,121 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $id2; + /** + * @var string[]|null + */ + protected $environments; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getId2(): ?string + { + return $this->id2; + } + + public function setId2(?string $id2): self + { + $this->initialized['id2'] = true; + $this->id2 = $id2; + + return $this; + } + + /** + * @return string[]|null + */ + public function getEnvironments(): ?array + { + return $this->environments; + } + + /** + * @param string[]|null $environments + */ + public function setEnvironments(?array $environments): self + { + $this->initialized['environments'] = true; + $this->environments = $environments; + + return $this; + } +} diff --git a/src/Model/AbstractPipeline.php b/src/Model/AbstractPipeline.php index 85391292..680a1892 100644 --- a/src/Model/AbstractPipeline.php +++ b/src/Model/AbstractPipeline.php @@ -10,44 +10,21 @@ namespace Gyroscops\Api\Model; -class AbstractPipeline +class AbstractPipeline extends \ArrayObject { /** - * @var string|null - */ - protected $id; - /** - * @var string|null - */ - protected $code; - /** - * @var string|null + * @var array */ - protected $label; + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ - protected $runtimeType; - /** - * @var string[]|null - */ - protected $runtime; - /** - * @var string[]|null - */ - protected $autoload; - /** - * @var string[]|null - */ - protected $packages; - /** - * @var string[]|null - */ - protected $repositories; - /** - * @var string[]|null - */ - protected $auths; + protected $id; /** * @var string[]|null */ @@ -60,137 +37,12 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; } - public function getCode(): ?string - { - return $this->code; - } - - public function setCode(?string $code): self - { - $this->code = $code; - - return $this; - } - - public function getLabel(): ?string - { - return $this->label; - } - - public function setLabel(?string $label): self - { - $this->label = $label; - - return $this; - } - - public function getRuntimeType(): ?string - { - return $this->runtimeType; - } - - public function setRuntimeType(?string $runtimeType): self - { - $this->runtimeType = $runtimeType; - - return $this; - } - - /** - * @return string[]|null - */ - public function getRuntime(): ?array - { - return $this->runtime; - } - - /** - * @param string[]|null $runtime - */ - public function setRuntime(?array $runtime): self - { - $this->runtime = $runtime; - - return $this; - } - - /** - * @return string[]|null - */ - public function getAutoload(): ?array - { - return $this->autoload; - } - - /** - * @param string[]|null $autoload - */ - public function setAutoload(?array $autoload): self - { - $this->autoload = $autoload; - - return $this; - } - - /** - * @return string[]|null - */ - public function getPackages(): ?array - { - return $this->packages; - } - - /** - * @param string[]|null $packages - */ - public function setPackages(?array $packages): self - { - $this->packages = $packages; - - return $this; - } - - /** - * @return string[]|null - */ - public function getRepositories(): ?array - { - return $this->repositories; - } - - /** - * @param string[]|null $repositories - */ - public function setRepositories(?array $repositories): self - { - $this->repositories = $repositories; - - return $this; - } - - /** - * @return string[]|null - */ - public function getAuths(): ?array - { - return $this->auths; - } - - /** - * @param string[]|null $auths - */ - public function setAuths(?array $auths): self - { - $this->auths = $auths; - - return $this; - } - /** * @return string[]|null */ @@ -204,6 +56,7 @@ public function getSteps(): ?array */ public function setSteps(?array $steps): self { + $this->initialized['steps'] = true; $this->steps = $steps; return $this; diff --git a/src/Model/AbstractPipelineJsonld.php b/src/Model/AbstractPipelineJsonld.php index d14519e9..e694fc9b 100644 --- a/src/Model/AbstractPipelineJsonld.php +++ b/src/Model/AbstractPipelineJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class AbstractPipelineJsonld +class AbstractPipelineJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -28,38 +37,6 @@ class AbstractPipelineJsonld * @var string|null */ protected $id2; - /** - * @var string|null - */ - protected $code; - /** - * @var string|null - */ - protected $label; - /** - * @var string|null - */ - protected $runtimeType; - /** - * @var string[]|null - */ - protected $runtime; - /** - * @var string[]|null - */ - protected $autoload; - /** - * @var string[]|null - */ - protected $packages; - /** - * @var string[]|null - */ - protected $repositories; - /** - * @var string[]|null - */ - protected $auths; /** * @var string[]|null */ @@ -73,8 +50,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -87,6 +68,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -99,6 +81,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -111,137 +94,12 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; } - public function getCode(): ?string - { - return $this->code; - } - - public function setCode(?string $code): self - { - $this->code = $code; - - return $this; - } - - public function getLabel(): ?string - { - return $this->label; - } - - public function setLabel(?string $label): self - { - $this->label = $label; - - return $this; - } - - public function getRuntimeType(): ?string - { - return $this->runtimeType; - } - - public function setRuntimeType(?string $runtimeType): self - { - $this->runtimeType = $runtimeType; - - return $this; - } - - /** - * @return string[]|null - */ - public function getRuntime(): ?array - { - return $this->runtime; - } - - /** - * @param string[]|null $runtime - */ - public function setRuntime(?array $runtime): self - { - $this->runtime = $runtime; - - return $this; - } - - /** - * @return string[]|null - */ - public function getAutoload(): ?array - { - return $this->autoload; - } - - /** - * @param string[]|null $autoload - */ - public function setAutoload(?array $autoload): self - { - $this->autoload = $autoload; - - return $this; - } - - /** - * @return string[]|null - */ - public function getPackages(): ?array - { - return $this->packages; - } - - /** - * @param string[]|null $packages - */ - public function setPackages(?array $packages): self - { - $this->packages = $packages; - - return $this; - } - - /** - * @return string[]|null - */ - public function getRepositories(): ?array - { - return $this->repositories; - } - - /** - * @param string[]|null $repositories - */ - public function setRepositories(?array $repositories): self - { - $this->repositories = $repositories; - - return $this; - } - - /** - * @return string[]|null - */ - public function getAuths(): ?array - { - return $this->auths; - } - - /** - * @param string[]|null $auths - */ - public function setAuths(?array $auths): self - { - $this->auths = $auths; - - return $this; - } - /** * @return string[]|null */ @@ -255,6 +113,7 @@ public function getSteps(): ?array */ public function setSteps(?array $steps): self { + $this->initialized['steps'] = true; $this->steps = $steps; return $this; diff --git a/src/Model/Action.php b/src/Model/Action.php new file mode 100644 index 00000000..c1574eec --- /dev/null +++ b/src/Model/Action.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var string[]|null + */ + protected $configuration; + + /** + * @return string[]|null + */ + public function getConfiguration(): ?iterable + { + return $this->configuration; + } + + /** + * @param string[]|null $configuration + */ + public function setConfiguration(?iterable $configuration): self + { + $this->initialized['configuration'] = true; + $this->configuration = $configuration; + + return $this; + } +} diff --git a/src/Model/ActionJsonld.php b/src/Model/ActionJsonld.php new file mode 100644 index 00000000..c00231fe --- /dev/null +++ b/src/Model/ActionJsonld.php @@ -0,0 +1,104 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string[]|null + */ + protected $configuration; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + /** + * @return string[]|null + */ + public function getConfiguration(): ?iterable + { + return $this->configuration; + } + + /** + * @param string[]|null $configuration + */ + public function setConfiguration(?iterable $configuration): self + { + $this->initialized['configuration'] = true; + $this->configuration = $configuration; + + return $this; + } +} diff --git a/src/Model/ActionJsonldRead.php b/src/Model/ActionJsonldRead.php index d20fb281..1bee711d 100644 --- a/src/Model/ActionJsonldRead.php +++ b/src/Model/ActionJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ActionJsonldRead +class ActionJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -28,6 +37,18 @@ class ActionJsonldRead * @var string|null */ protected $id2; + /** + * @var string|null + */ + protected $code; + /** + * @var string|null + */ + protected $label; + /** + * @var string[]|null + */ + protected $configuration; public function getId(): ?string { @@ -36,6 +57,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -48,6 +70,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -61,8 +84,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -75,8 +102,54 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; } + + public function getCode(): ?string + { + return $this->code; + } + + public function setCode(?string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getLabel(): ?string + { + return $this->label; + } + + public function setLabel(?string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } + + /** + * @return string[]|null + */ + public function getConfiguration(): ?array + { + return $this->configuration; + } + + /** + * @param string[]|null $configuration + */ + public function setConfiguration(?array $configuration): self + { + $this->initialized['configuration'] = true; + $this->configuration = $configuration; + + return $this; + } } diff --git a/src/Model/ActionRead.php b/src/Model/ActionRead.php index f38750dc..441c41c6 100644 --- a/src/Model/ActionRead.php +++ b/src/Model/ActionRead.php @@ -10,12 +10,33 @@ namespace Gyroscops\Api\Model; -class ActionRead +class ActionRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ protected $id; + /** + * @var string|null + */ + protected $code; + /** + * @var string|null + */ + protected $label; + /** + * @var string[]|null + */ + protected $configuration; public function getId(): ?string { @@ -24,8 +45,54 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; } + + public function getCode(): ?string + { + return $this->code; + } + + public function setCode(?string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getLabel(): ?string + { + return $this->label; + } + + public function setLabel(?string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } + + /** + * @return string[]|null + */ + public function getConfiguration(): ?array + { + return $this->configuration; + } + + /** + * @param string[]|null $configuration + */ + public function setConfiguration(?array $configuration): self + { + $this->initialized['configuration'] = true; + $this->configuration = $configuration; + + return $this; + } } diff --git a/src/Model/AddPipelineComposerAuthCommandInput.php b/src/Model/AddPipelineComposerAuthCommandInput.php deleted file mode 100644 index 100fb0e3..00000000 --- a/src/Model/AddPipelineComposerAuthCommandInput.php +++ /dev/null @@ -1,47 +0,0 @@ -url; - } - - public function setUrl(?string $url): self - { - $this->url = $url; - - return $this; - } - - public function getToken(): ?string - { - return $this->token; - } - - public function setToken(?string $token): self - { - $this->token = $token; - - return $this; - } -} diff --git a/src/Model/AddPipelineComposerAuthCommandInputJsonld.php b/src/Model/AddPipelineComposerAuthCommandInputJsonld.php deleted file mode 100644 index c3d3cae3..00000000 --- a/src/Model/AddPipelineComposerAuthCommandInputJsonld.php +++ /dev/null @@ -1,98 +0,0 @@ -context; - } - - public function setContext(mixed $context): self - { - $this->context = $context; - - return $this; - } - - public function getId(): ?string - { - return $this->id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getUrl(): ?string - { - return $this->url; - } - - public function setUrl(?string $url): self - { - $this->url = $url; - - return $this; - } - - public function getToken(): ?string - { - return $this->token; - } - - public function setToken(?string $token): self - { - $this->token = $token; - - return $this; - } -} diff --git a/src/Model/AddPipelineComposerRepositoryCommandInput.php b/src/Model/AddPipelineComposerRepositoryCommandInput.php deleted file mode 100644 index c755ddaf..00000000 --- a/src/Model/AddPipelineComposerRepositoryCommandInput.php +++ /dev/null @@ -1,63 +0,0 @@ -name; - } - - public function setName(?string $name): self - { - $this->name = $name; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getUrl(): ?string - { - return $this->url; - } - - public function setUrl(?string $url): self - { - $this->url = $url; - - return $this; - } -} diff --git a/src/Model/AddPipelineComposerRepositoryCommandInputJsonld.php b/src/Model/AddPipelineComposerRepositoryCommandInputJsonld.php deleted file mode 100644 index c344e19a..00000000 --- a/src/Model/AddPipelineComposerRepositoryCommandInputJsonld.php +++ /dev/null @@ -1,114 +0,0 @@ -context; - } - - public function setContext(mixed $context): self - { - $this->context = $context; - - return $this; - } - - public function getId(): ?string - { - return $this->id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getName(): ?string - { - return $this->name; - } - - public function setName(?string $name): self - { - $this->name = $name; - - return $this; - } - - public function getType2(): ?string - { - return $this->type2; - } - - public function setType2(?string $type2): self - { - $this->type2 = $type2; - - return $this; - } - - public function getUrl(): ?string - { - return $this->url; - } - - public function setUrl(?string $url): self - { - $this->url = $url; - - return $this; - } -} diff --git a/src/Model/AkeneoInstance.php b/src/Model/AkeneoInstance.php index 8f330a1a..cf702aee 100644 --- a/src/Model/AkeneoInstance.php +++ b/src/Model/AkeneoInstance.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class AkeneoInstance +class AkeneoInstance extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -48,6 +57,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -60,6 +70,7 @@ public function getUrl(): ?string public function setUrl(?string $url): self { + $this->initialized['url'] = true; $this->url = $url; return $this; @@ -72,6 +83,7 @@ public function getOrganization(): ?string public function setOrganization(?string $organization): self { + $this->initialized['organization'] = true; $this->organization = $organization; return $this; @@ -84,6 +96,7 @@ public function getWorkspace(): ?string public function setWorkspace(?string $workspace): self { + $this->initialized['workspace'] = true; $this->workspace = $workspace; return $this; @@ -96,6 +109,7 @@ public function getSecret(): ?string public function setSecret(?string $secret): self { + $this->initialized['secret'] = true; $this->secret = $secret; return $this; @@ -114,6 +128,7 @@ public function getLinkedAccounts(): ?array */ public function setLinkedAccounts(?array $linkedAccounts): self { + $this->initialized['linkedAccounts'] = true; $this->linkedAccounts = $linkedAccounts; return $this; @@ -132,6 +147,7 @@ public function getOauthTokens(): ?array */ public function setOauthTokens(?array $oauthTokens): self { + $this->initialized['oauthTokens'] = true; $this->oauthTokens = $oauthTokens; return $this; diff --git a/src/Model/AkeneoInstanceAkeneoInstanceInput.php b/src/Model/AkeneoInstanceAkeneoInstanceInput.php index a5ba9d72..9a13ebf1 100644 --- a/src/Model/AkeneoInstanceAkeneoInstanceInput.php +++ b/src/Model/AkeneoInstanceAkeneoInstanceInput.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class AkeneoInstanceAkeneoInstanceInput +class AkeneoInstanceAkeneoInstanceInput extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -32,6 +41,7 @@ public function getPimUrl(): ?string public function setPimUrl(?string $pimUrl): self { + $this->initialized['pimUrl'] = true; $this->pimUrl = $pimUrl; return $this; @@ -44,6 +54,7 @@ public function getOrganization(): ?string public function setOrganization(?string $organization): self { + $this->initialized['organization'] = true; $this->organization = $organization; return $this; @@ -56,6 +67,7 @@ public function getSecret(): ?CreateSecretInput public function setSecret(?CreateSecretInput $secret): self { + $this->initialized['secret'] = true; $this->secret = $secret; return $this; diff --git a/src/Model/AkeneoInstanceAkeneoInstanceInputJsonld.php b/src/Model/AkeneoInstanceAkeneoInstanceInputJsonld.php index 67ea8fb5..b4d349df 100644 --- a/src/Model/AkeneoInstanceAkeneoInstanceInputJsonld.php +++ b/src/Model/AkeneoInstanceAkeneoInstanceInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class AkeneoInstanceAkeneoInstanceInputJsonld +class AkeneoInstanceAkeneoInstanceInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -45,8 +54,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -59,6 +72,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -71,6 +85,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -83,6 +98,7 @@ public function getPimUrl(): ?string public function setPimUrl(?string $pimUrl): self { + $this->initialized['pimUrl'] = true; $this->pimUrl = $pimUrl; return $this; @@ -95,6 +111,7 @@ public function getOrganization(): ?string public function setOrganization(?string $organization): self { + $this->initialized['organization'] = true; $this->organization = $organization; return $this; @@ -107,6 +124,7 @@ public function getSecret(): ?CreateSecretInputJsonld public function setSecret(?CreateSecretInputJsonld $secret): self { + $this->initialized['secret'] = true; $this->secret = $secret; return $this; diff --git a/src/Model/AkeneoInstanceJsonld.php b/src/Model/AkeneoInstanceJsonld.php index 4857669e..9279ca96 100644 --- a/src/Model/AkeneoInstanceJsonld.php +++ b/src/Model/AkeneoInstanceJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class AkeneoInstanceJsonld +class AkeneoInstanceJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -60,6 +69,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -72,6 +82,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -85,8 +96,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -99,6 +114,7 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; @@ -111,6 +127,7 @@ public function getUrl(): ?string public function setUrl(?string $url): self { + $this->initialized['url'] = true; $this->url = $url; return $this; @@ -123,6 +140,7 @@ public function getOrganization(): ?string public function setOrganization(?string $organization): self { + $this->initialized['organization'] = true; $this->organization = $organization; return $this; @@ -135,6 +153,7 @@ public function getWorkspace(): ?string public function setWorkspace(?string $workspace): self { + $this->initialized['workspace'] = true; $this->workspace = $workspace; return $this; @@ -147,6 +166,7 @@ public function getSecret(): ?string public function setSecret(?string $secret): self { + $this->initialized['secret'] = true; $this->secret = $secret; return $this; @@ -165,6 +185,7 @@ public function getLinkedAccounts(): ?array */ public function setLinkedAccounts(?array $linkedAccounts): self { + $this->initialized['linkedAccounts'] = true; $this->linkedAccounts = $linkedAccounts; return $this; @@ -183,6 +204,7 @@ public function getOauthTokens(): ?array */ public function setOauthTokens(?array $oauthTokens): self { + $this->initialized['oauthTokens'] = true; $this->oauthTokens = $oauthTokens; return $this; diff --git a/src/Model/AkeneoLinkedAccount.php b/src/Model/AkeneoLinkedAccount.php index 08345984..b68c0d34 100644 --- a/src/Model/AkeneoLinkedAccount.php +++ b/src/Model/AkeneoLinkedAccount.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class AkeneoLinkedAccount +class AkeneoLinkedAccount extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -44,6 +53,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -56,6 +66,7 @@ public function getUser(): ?string public function setUser(?string $user): self { + $this->initialized['user'] = true; $this->user = $user; return $this; @@ -68,6 +79,7 @@ public function getTokenId(): ?string public function setTokenId(?string $tokenId): self { + $this->initialized['tokenId'] = true; $this->tokenId = $tokenId; return $this; @@ -80,6 +92,7 @@ public function getAkeneoUserId(): ?string public function setAkeneoUserId(?string $akeneoUserId): self { + $this->initialized['akeneoUserId'] = true; $this->akeneoUserId = $akeneoUserId; return $this; @@ -92,6 +105,7 @@ public function getToken(): ?string public function setToken(?string $token): self { + $this->initialized['token'] = true; $this->token = $token; return $this; @@ -104,6 +118,7 @@ public function getAkeneoInstance(): ?string public function setAkeneoInstance(?string $akeneoInstance): self { + $this->initialized['akeneoInstance'] = true; $this->akeneoInstance = $akeneoInstance; return $this; diff --git a/src/Model/AkeneoLinkedAccountAkeneoLinkedAccountsInput.php b/src/Model/AkeneoLinkedAccountAkeneoLinkedAccountsInput.php index c35a6893..8bcef97d 100644 --- a/src/Model/AkeneoLinkedAccountAkeneoLinkedAccountsInput.php +++ b/src/Model/AkeneoLinkedAccountAkeneoLinkedAccountsInput.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class AkeneoLinkedAccountAkeneoLinkedAccountsInput +class AkeneoLinkedAccountAkeneoLinkedAccountsInput extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -36,6 +45,7 @@ public function getAkeneoInstance(): ?string public function setAkeneoInstance(?string $akeneoInstance): self { + $this->initialized['akeneoInstance'] = true; $this->akeneoInstance = $akeneoInstance; return $this; @@ -48,6 +58,7 @@ public function getTokenId(): ?string public function setTokenId(?string $tokenId): self { + $this->initialized['tokenId'] = true; $this->tokenId = $tokenId; return $this; @@ -60,6 +71,7 @@ public function getAkeneoUserId(): ?string public function setAkeneoUserId(?string $akeneoUserId): self { + $this->initialized['akeneoUserId'] = true; $this->akeneoUserId = $akeneoUserId; return $this; @@ -72,6 +84,7 @@ public function getToken(): ?string public function setToken(?string $token): self { + $this->initialized['token'] = true; $this->token = $token; return $this; diff --git a/src/Model/AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonld.php b/src/Model/AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonld.php index c958be4a..dcb53185 100644 --- a/src/Model/AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonld.php +++ b/src/Model/AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonld +class AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -49,8 +58,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -63,6 +76,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -75,6 +89,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -87,6 +102,7 @@ public function getAkeneoInstance(): ?string public function setAkeneoInstance(?string $akeneoInstance): self { + $this->initialized['akeneoInstance'] = true; $this->akeneoInstance = $akeneoInstance; return $this; @@ -99,6 +115,7 @@ public function getTokenId(): ?string public function setTokenId(?string $tokenId): self { + $this->initialized['tokenId'] = true; $this->tokenId = $tokenId; return $this; @@ -111,6 +128,7 @@ public function getAkeneoUserId(): ?string public function setAkeneoUserId(?string $akeneoUserId): self { + $this->initialized['akeneoUserId'] = true; $this->akeneoUserId = $akeneoUserId; return $this; @@ -123,6 +141,7 @@ public function getToken(): ?string public function setToken(?string $token): self { + $this->initialized['token'] = true; $this->token = $token; return $this; diff --git a/src/Model/AkeneoLinkedAccountJsonld.php b/src/Model/AkeneoLinkedAccountJsonld.php index b760be46..e6a568be 100644 --- a/src/Model/AkeneoLinkedAccountJsonld.php +++ b/src/Model/AkeneoLinkedAccountJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class AkeneoLinkedAccountJsonld +class AkeneoLinkedAccountJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -56,6 +65,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -68,6 +78,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -81,8 +92,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -95,6 +110,7 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; @@ -107,6 +123,7 @@ public function getUser(): ?string public function setUser(?string $user): self { + $this->initialized['user'] = true; $this->user = $user; return $this; @@ -119,6 +136,7 @@ public function getTokenId(): ?string public function setTokenId(?string $tokenId): self { + $this->initialized['tokenId'] = true; $this->tokenId = $tokenId; return $this; @@ -131,6 +149,7 @@ public function getAkeneoUserId(): ?string public function setAkeneoUserId(?string $akeneoUserId): self { + $this->initialized['akeneoUserId'] = true; $this->akeneoUserId = $akeneoUserId; return $this; @@ -143,6 +162,7 @@ public function getToken(): ?string public function setToken(?string $token): self { + $this->initialized['token'] = true; $this->token = $token; return $this; @@ -155,6 +175,7 @@ public function getAkeneoInstance(): ?string public function setAkeneoInstance(?string $akeneoInstance): self { + $this->initialized['akeneoInstance'] = true; $this->akeneoInstance = $akeneoInstance; return $this; diff --git a/src/Model/AkeneoOauthTokenJsonldRead.php b/src/Model/AkeneoOauthTokenJsonldRead.php index a10450e4..2b10cb47 100644 --- a/src/Model/AkeneoOauthTokenJsonldRead.php +++ b/src/Model/AkeneoOauthTokenJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class AkeneoOauthTokenJsonldRead +class AkeneoOauthTokenJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -48,6 +57,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -60,6 +70,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -73,8 +84,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -87,6 +102,7 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; @@ -99,6 +115,7 @@ public function getUrl(): ?string public function setUrl(?string $url): self { + $this->initialized['url'] = true; $this->url = $url; return $this; @@ -117,6 +134,7 @@ public function getScopes(): ?array */ public function setScopes(?array $scopes): self { + $this->initialized['scopes'] = true; $this->scopes = $scopes; return $this; @@ -129,6 +147,7 @@ public function getResponseType(): ?string public function setResponseType(?string $responseType): self { + $this->initialized['responseType'] = true; $this->responseType = $responseType; return $this; diff --git a/src/Model/AkeneoOauthTokenOauthStateInput.php b/src/Model/AkeneoOauthTokenOauthStateInput.php index 145c0a9e..4350eded 100644 --- a/src/Model/AkeneoOauthTokenOauthStateInput.php +++ b/src/Model/AkeneoOauthTokenOauthStateInput.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class AkeneoOauthTokenOauthStateInput +class AkeneoOauthTokenOauthStateInput extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -28,6 +37,7 @@ public function getUrl(): ?string public function setUrl(?string $url): self { + $this->initialized['url'] = true; $this->url = $url; return $this; @@ -46,6 +56,7 @@ public function getScope(): ?array */ public function setScope(?array $scope): self { + $this->initialized['scope'] = true; $this->scope = $scope; return $this; diff --git a/src/Model/AkeneoOauthTokenOauthStateInputJsonld.php b/src/Model/AkeneoOauthTokenOauthStateInputJsonld.php index df745b8a..9248da46 100644 --- a/src/Model/AkeneoOauthTokenOauthStateInputJsonld.php +++ b/src/Model/AkeneoOauthTokenOauthStateInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class AkeneoOauthTokenOauthStateInputJsonld +class AkeneoOauthTokenOauthStateInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -41,8 +50,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -55,6 +68,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -67,6 +81,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -79,6 +94,7 @@ public function getUrl(): ?string public function setUrl(?string $url): self { + $this->initialized['url'] = true; $this->url = $url; return $this; @@ -97,6 +113,7 @@ public function getScope(): ?array */ public function setScope(?array $scope): self { + $this->initialized['scope'] = true; $this->scope = $scope; return $this; diff --git a/src/Model/AkeneoOauthTokenOauthStateOutputJsonldRead.php b/src/Model/AkeneoOauthTokenOauthStateOutputJsonldRead.php index 036c9ad7..06af8bf2 100644 --- a/src/Model/AkeneoOauthTokenOauthStateOutputJsonldRead.php +++ b/src/Model/AkeneoOauthTokenOauthStateOutputJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class AkeneoOauthTokenOauthStateOutputJsonldRead +class AkeneoOauthTokenOauthStateOutputJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/AkeneoOauthTokenOauthTokenInput.php b/src/Model/AkeneoOauthTokenOauthTokenInput.php index 91541821..e07b3f73 100644 --- a/src/Model/AkeneoOauthTokenOauthTokenInput.php +++ b/src/Model/AkeneoOauthTokenOauthTokenInput.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class AkeneoOauthTokenOauthTokenInput +class AkeneoOauthTokenOauthTokenInput extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -32,6 +41,7 @@ public function getUrl(): ?string public function setUrl(?string $url): self { + $this->initialized['url'] = true; $this->url = $url; return $this; @@ -44,6 +54,7 @@ public function getState(): ?string public function setState(?string $state): self { + $this->initialized['state'] = true; $this->state = $state; return $this; @@ -56,6 +67,7 @@ public function getCode(): ?string public function setCode(?string $code): self { + $this->initialized['code'] = true; $this->code = $code; return $this; diff --git a/src/Model/AkeneoOauthTokenOauthTokenInputJsonld.php b/src/Model/AkeneoOauthTokenOauthTokenInputJsonld.php index c31133a7..9aeb4ee4 100644 --- a/src/Model/AkeneoOauthTokenOauthTokenInputJsonld.php +++ b/src/Model/AkeneoOauthTokenOauthTokenInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class AkeneoOauthTokenOauthTokenInputJsonld +class AkeneoOauthTokenOauthTokenInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -40,6 +49,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -52,6 +62,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -64,6 +75,7 @@ public function getUrl(): ?string public function setUrl(?string $url): self { + $this->initialized['url'] = true; $this->url = $url; return $this; @@ -76,6 +88,7 @@ public function getState(): ?string public function setState(?string $state): self { + $this->initialized['state'] = true; $this->state = $state; return $this; @@ -88,6 +101,7 @@ public function getCode(): ?string public function setCode(?string $code): self { + $this->initialized['code'] = true; $this->code = $code; return $this; diff --git a/src/Model/AkeneoOauthTokenOauthTokenOutputJsonldRead.php b/src/Model/AkeneoOauthTokenOauthTokenOutputJsonldRead.php index 3c98d1c6..fe46aef0 100644 --- a/src/Model/AkeneoOauthTokenOauthTokenOutputJsonldRead.php +++ b/src/Model/AkeneoOauthTokenOauthTokenOutputJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class AkeneoOauthTokenOauthTokenOutputJsonldRead +class AkeneoOauthTokenOauthTokenOutputJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -28,6 +37,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -40,6 +50,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/AkeneoOauthTokenRead.php b/src/Model/AkeneoOauthTokenRead.php index 93e5301e..6f6d1c67 100644 --- a/src/Model/AkeneoOauthTokenRead.php +++ b/src/Model/AkeneoOauthTokenRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class AkeneoOauthTokenRead +class AkeneoOauthTokenRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -36,6 +45,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -48,6 +58,7 @@ public function getUrl(): ?string public function setUrl(?string $url): self { + $this->initialized['url'] = true; $this->url = $url; return $this; @@ -66,6 +77,7 @@ public function getScopes(): ?array */ public function setScopes(?array $scopes): self { + $this->initialized['scopes'] = true; $this->scopes = $scopes; return $this; @@ -78,6 +90,7 @@ public function getResponseType(): ?string public function setResponseType(?string $responseType): self { + $this->initialized['responseType'] = true; $this->responseType = $responseType; return $this; diff --git a/src/Model/AuthenticationMeGetLdjsonResponse200.php b/src/Model/AuthenticationMeGetLdjsonResponse200.php new file mode 100644 index 00000000..55805d0c --- /dev/null +++ b/src/Model/AuthenticationMeGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var UserJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var AuthenticationMeGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var AuthenticationMeGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return UserJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param UserJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?AuthenticationMeGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?AuthenticationMeGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?AuthenticationMeGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?AuthenticationMeGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/AuthenticationMeGetLdjsonResponse200HydraSearch.php b/src/Model/AuthenticationMeGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..acf0b0a5 --- /dev/null +++ b/src/Model/AuthenticationMeGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var AuthenticationMeGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return AuthenticationMeGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param AuthenticationMeGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/AuthenticationMeGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationMeGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..60495c4d --- /dev/null +++ b/src/Model/AuthenticationMeGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/AuthenticationMeGetLdjsonResponse200HydraView.php b/src/Model/AuthenticationMeGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..7a21a02b --- /dev/null +++ b/src/Model/AuthenticationMeGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/AuthenticationMeGetResponse200.php b/src/Model/AuthenticationMeGetResponse200.php deleted file mode 100644 index 2750d760..00000000 --- a/src/Model/AuthenticationMeGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param UserJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?AuthenticationMeGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?AuthenticationMeGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?AuthenticationMeGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?AuthenticationMeGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/AuthenticationMeGetResponse200HydraSearch.php b/src/Model/AuthenticationMeGetResponse200HydraSearch.php deleted file mode 100644 index 06672bd0..00000000 --- a/src/Model/AuthenticationMeGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return AuthenticationMeGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param AuthenticationMeGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/AuthenticationMeGetResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationMeGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 5472df19..00000000 --- a/src/Model/AuthenticationMeGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/AuthenticationMeGetResponse200HydraView.php b/src/Model/AuthenticationMeGetResponse200HydraView.php deleted file mode 100644 index ec7bf3c9..00000000 --- a/src/Model/AuthenticationMeGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/AuthenticationOfferIdOptionsGetResponse200.php b/src/Model/AuthenticationOfferIdOptionsGetResponse200.php deleted file mode 100644 index c5af2a6a..00000000 --- a/src/Model/AuthenticationOfferIdOptionsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param OptionJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?AuthenticationOfferIdOptionsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?AuthenticationOfferIdOptionsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?AuthenticationOfferIdOptionsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?AuthenticationOfferIdOptionsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/AuthenticationOfferIdOptionsGetResponse200HydraSearch.php b/src/Model/AuthenticationOfferIdOptionsGetResponse200HydraSearch.php deleted file mode 100644 index c05ac713..00000000 --- a/src/Model/AuthenticationOfferIdOptionsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return AuthenticationOfferIdOptionsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param AuthenticationOfferIdOptionsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/AuthenticationOfferIdOptionsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationOfferIdOptionsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 16765e89..00000000 --- a/src/Model/AuthenticationOfferIdOptionsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/AuthenticationOfferIdOptionsGetResponse200HydraView.php b/src/Model/AuthenticationOfferIdOptionsGetResponse200HydraView.php deleted file mode 100644 index c377319e..00000000 --- a/src/Model/AuthenticationOfferIdOptionsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/AuthenticationOffersGetResponse200.php b/src/Model/AuthenticationOffersGetResponse200.php deleted file mode 100644 index e45d021f..00000000 --- a/src/Model/AuthenticationOffersGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param OfferJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?AuthenticationOffersGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?AuthenticationOffersGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?AuthenticationOffersGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?AuthenticationOffersGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/AuthenticationOffersGetResponse200HydraSearch.php b/src/Model/AuthenticationOffersGetResponse200HydraSearch.php deleted file mode 100644 index 74e2f1fb..00000000 --- a/src/Model/AuthenticationOffersGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return AuthenticationOffersGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param AuthenticationOffersGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/AuthenticationOffersGetResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationOffersGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index ab4fbdfc..00000000 --- a/src/Model/AuthenticationOffersGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/AuthenticationOffersGetResponse200HydraView.php b/src/Model/AuthenticationOffersGetResponse200HydraView.php deleted file mode 100644 index 2ffb37a7..00000000 --- a/src/Model/AuthenticationOffersGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/AuthenticationOffersIdOptionsGetLdjsonResponse200.php b/src/Model/AuthenticationOffersIdOptionsGetLdjsonResponse200.php new file mode 100644 index 00000000..bc53d779 --- /dev/null +++ b/src/Model/AuthenticationOffersIdOptionsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var OptionJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var AuthenticationOffersIdOptionsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var AuthenticationOffersIdOptionsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return OptionJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param OptionJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?AuthenticationOffersIdOptionsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?AuthenticationOffersIdOptionsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?AuthenticationOffersIdOptionsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?AuthenticationOffersIdOptionsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/AuthenticationOffersIdOptionsGetLdjsonResponse200HydraSearch.php b/src/Model/AuthenticationOffersIdOptionsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..c5d24f36 --- /dev/null +++ b/src/Model/AuthenticationOffersIdOptionsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var AuthenticationOffersIdOptionsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return AuthenticationOffersIdOptionsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param AuthenticationOffersIdOptionsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/AuthenticationOffersIdOptionsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationOffersIdOptionsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..40932350 --- /dev/null +++ b/src/Model/AuthenticationOffersIdOptionsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/AuthenticationOffersIdOptionsGetLdjsonResponse200HydraView.php b/src/Model/AuthenticationOffersIdOptionsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..6b8adb10 --- /dev/null +++ b/src/Model/AuthenticationOffersIdOptionsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/AuthenticationOrganizationIdAuthorizationsGetResponse200.php b/src/Model/AuthenticationOrganizationIdAuthorizationsGetResponse200.php deleted file mode 100644 index 33f7226e..00000000 --- a/src/Model/AuthenticationOrganizationIdAuthorizationsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param UserAuthorizationJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?AuthenticationOrganizationIdAuthorizationsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?AuthenticationOrganizationIdAuthorizationsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearch.php b/src/Model/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearch.php deleted file mode 100644 index ebc5dbbe..00000000 --- a/src/Model/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 63202304..00000000 --- a/src/Model/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraView.php b/src/Model/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraView.php deleted file mode 100644 index 6eb4fa93..00000000 --- a/src/Model/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200.php b/src/Model/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200.php deleted file mode 100644 index e505363c..00000000 --- a/src/Model/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param UserJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearch.php b/src/Model/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearch.php deleted file mode 100644 index d1a47136..00000000 --- a/src/Model/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index db687349..00000000 --- a/src/Model/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraView.php b/src/Model/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraView.php deleted file mode 100644 index 35dd2676..00000000 --- a/src/Model/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/AuthenticationOrganizationIdUsersGetResponse200.php b/src/Model/AuthenticationOrganizationIdUsersGetResponse200.php deleted file mode 100644 index 1933e02a..00000000 --- a/src/Model/AuthenticationOrganizationIdUsersGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param UserJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?AuthenticationOrganizationIdUsersGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?AuthenticationOrganizationIdUsersGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?AuthenticationOrganizationIdUsersGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?AuthenticationOrganizationIdUsersGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/AuthenticationOrganizationIdUsersGetResponse200HydraSearch.php b/src/Model/AuthenticationOrganizationIdUsersGetResponse200HydraSearch.php deleted file mode 100644 index 87e36b89..00000000 --- a/src/Model/AuthenticationOrganizationIdUsersGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return AuthenticationOrganizationIdUsersGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param AuthenticationOrganizationIdUsersGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/AuthenticationOrganizationIdUsersGetResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationOrganizationIdUsersGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 9a63eca4..00000000 --- a/src/Model/AuthenticationOrganizationIdUsersGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/AuthenticationOrganizationIdUsersGetResponse200HydraView.php b/src/Model/AuthenticationOrganizationIdUsersGetResponse200HydraView.php deleted file mode 100644 index 2f24d5e3..00000000 --- a/src/Model/AuthenticationOrganizationIdUsersGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/AuthenticationOrganizationIdWorkspacesGetResponse200.php b/src/Model/AuthenticationOrganizationIdWorkspacesGetResponse200.php deleted file mode 100644 index 0ccec584..00000000 --- a/src/Model/AuthenticationOrganizationIdWorkspacesGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param WorkspaceJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?AuthenticationOrganizationIdWorkspacesGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?AuthenticationOrganizationIdWorkspacesGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearch.php b/src/Model/AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearch.php deleted file mode 100644 index 54a43c9c..00000000 --- a/src/Model/AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 8824fe53..00000000 --- a/src/Model/AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/AuthenticationOrganizationIdWorkspacesGetResponse200HydraView.php b/src/Model/AuthenticationOrganizationIdWorkspacesGetResponse200HydraView.php deleted file mode 100644 index 5df947e5..00000000 --- a/src/Model/AuthenticationOrganizationIdWorkspacesGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/AuthenticationOrganizationsGetLdjsonResponse200.php b/src/Model/AuthenticationOrganizationsGetLdjsonResponse200.php new file mode 100644 index 00000000..84b0daca --- /dev/null +++ b/src/Model/AuthenticationOrganizationsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var OrganizationJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var AuthenticationOrganizationsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var AuthenticationOrganizationsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return OrganizationJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param OrganizationJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?AuthenticationOrganizationsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?AuthenticationOrganizationsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?AuthenticationOrganizationsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?AuthenticationOrganizationsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/AuthenticationOrganizationsGetLdjsonResponse200HydraSearch.php b/src/Model/AuthenticationOrganizationsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..f3457733 --- /dev/null +++ b/src/Model/AuthenticationOrganizationsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var AuthenticationOrganizationsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return AuthenticationOrganizationsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param AuthenticationOrganizationsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/AuthenticationOrganizationsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationOrganizationsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..d4dbd334 --- /dev/null +++ b/src/Model/AuthenticationOrganizationsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/AuthenticationOrganizationsGetLdjsonResponse200HydraView.php b/src/Model/AuthenticationOrganizationsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..44250d60 --- /dev/null +++ b/src/Model/AuthenticationOrganizationsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/AuthenticationOrganizationsGetResponse200.php b/src/Model/AuthenticationOrganizationsGetResponse200.php deleted file mode 100644 index faf3df5b..00000000 --- a/src/Model/AuthenticationOrganizationsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param OrganizationJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?AuthenticationOrganizationsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?AuthenticationOrganizationsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?AuthenticationOrganizationsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?AuthenticationOrganizationsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/AuthenticationOrganizationsGetResponse200HydraSearch.php b/src/Model/AuthenticationOrganizationsGetResponse200HydraSearch.php deleted file mode 100644 index 2bbd737a..00000000 --- a/src/Model/AuthenticationOrganizationsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return AuthenticationOrganizationsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param AuthenticationOrganizationsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/AuthenticationOrganizationsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationOrganizationsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 333d3162..00000000 --- a/src/Model/AuthenticationOrganizationsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/AuthenticationOrganizationsGetResponse200HydraView.php b/src/Model/AuthenticationOrganizationsGetResponse200HydraView.php deleted file mode 100644 index e80c83e9..00000000 --- a/src/Model/AuthenticationOrganizationsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200.php b/src/Model/AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200.php new file mode 100644 index 00000000..101f43bd --- /dev/null +++ b/src/Model/AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var UserAuthorizationJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return UserAuthorizationJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param UserAuthorizationJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraSearch.php b/src/Model/AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..0a47585b --- /dev/null +++ b/src/Model/AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..cb3fb990 --- /dev/null +++ b/src/Model/AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraView.php b/src/Model/AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..7dbced22 --- /dev/null +++ b/src/Model/AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200.php b/src/Model/AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200.php new file mode 100644 index 00000000..b8654f67 --- /dev/null +++ b/src/Model/AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var UserJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return UserJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param UserJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraSearch.php b/src/Model/AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..af925a21 --- /dev/null +++ b/src/Model/AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..b4f01004 --- /dev/null +++ b/src/Model/AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraView.php b/src/Model/AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..9b5ac707 --- /dev/null +++ b/src/Model/AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/AuthenticationOrganizationsIdUsersGetLdjsonResponse200.php b/src/Model/AuthenticationOrganizationsIdUsersGetLdjsonResponse200.php new file mode 100644 index 00000000..bb47f710 --- /dev/null +++ b/src/Model/AuthenticationOrganizationsIdUsersGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var UserJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return UserJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param UserJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraSearch.php b/src/Model/AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..99f4f06c --- /dev/null +++ b/src/Model/AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..6fd50ff2 --- /dev/null +++ b/src/Model/AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraView.php b/src/Model/AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..edd6fe34 --- /dev/null +++ b/src/Model/AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200.php b/src/Model/AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200.php new file mode 100644 index 00000000..1935f977 --- /dev/null +++ b/src/Model/AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var WorkspaceJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return WorkspaceJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param WorkspaceJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraSearch.php b/src/Model/AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..2d1534a2 --- /dev/null +++ b/src/Model/AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..62096768 --- /dev/null +++ b/src/Model/AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraView.php b/src/Model/AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..25b0032a --- /dev/null +++ b/src/Model/AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/AuthenticationSubscriptionOffersGetLdjsonResponse200.php b/src/Model/AuthenticationSubscriptionOffersGetLdjsonResponse200.php new file mode 100644 index 00000000..de55c386 --- /dev/null +++ b/src/Model/AuthenticationSubscriptionOffersGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var SubscriptionOfferJsonldRead[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var AuthenticationSubscriptionOffersGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var AuthenticationSubscriptionOffersGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return SubscriptionOfferJsonldRead[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param SubscriptionOfferJsonldRead[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?AuthenticationSubscriptionOffersGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?AuthenticationSubscriptionOffersGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?AuthenticationSubscriptionOffersGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?AuthenticationSubscriptionOffersGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/AuthenticationSubscriptionOffersGetLdjsonResponse200HydraSearch.php b/src/Model/AuthenticationSubscriptionOffersGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..53ba6ee3 --- /dev/null +++ b/src/Model/AuthenticationSubscriptionOffersGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var AuthenticationSubscriptionOffersGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return AuthenticationSubscriptionOffersGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param AuthenticationSubscriptionOffersGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/AuthenticationSubscriptionOffersGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationSubscriptionOffersGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..2d5960c2 --- /dev/null +++ b/src/Model/AuthenticationSubscriptionOffersGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/AuthenticationSubscriptionOffersGetLdjsonResponse200HydraView.php b/src/Model/AuthenticationSubscriptionOffersGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..aa4563db --- /dev/null +++ b/src/Model/AuthenticationSubscriptionOffersGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/AuthenticationSubscriptionsGetLdjsonResponse200.php b/src/Model/AuthenticationSubscriptionsGetLdjsonResponse200.php new file mode 100644 index 00000000..afaaddae --- /dev/null +++ b/src/Model/AuthenticationSubscriptionsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var SubscriptionJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var AuthenticationSubscriptionsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var AuthenticationSubscriptionsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return SubscriptionJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param SubscriptionJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?AuthenticationSubscriptionsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?AuthenticationSubscriptionsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?AuthenticationSubscriptionsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?AuthenticationSubscriptionsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/AuthenticationSubscriptionsGetLdjsonResponse200HydraSearch.php b/src/Model/AuthenticationSubscriptionsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..7d4b0574 --- /dev/null +++ b/src/Model/AuthenticationSubscriptionsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var AuthenticationSubscriptionsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return AuthenticationSubscriptionsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param AuthenticationSubscriptionsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/AuthenticationSubscriptionsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationSubscriptionsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..4c45adbb --- /dev/null +++ b/src/Model/AuthenticationSubscriptionsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/AuthenticationSubscriptionsGetLdjsonResponse200HydraView.php b/src/Model/AuthenticationSubscriptionsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..f63a8e7d --- /dev/null +++ b/src/Model/AuthenticationSubscriptionsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/AuthenticationSubscriptionsGetResponse200.php b/src/Model/AuthenticationSubscriptionsGetResponse200.php deleted file mode 100644 index e4a25648..00000000 --- a/src/Model/AuthenticationSubscriptionsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param SubscriptionJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?AuthenticationSubscriptionsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?AuthenticationSubscriptionsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?AuthenticationSubscriptionsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?AuthenticationSubscriptionsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/AuthenticationSubscriptionsGetResponse200HydraSearch.php b/src/Model/AuthenticationSubscriptionsGetResponse200HydraSearch.php deleted file mode 100644 index 1059385b..00000000 --- a/src/Model/AuthenticationSubscriptionsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return AuthenticationSubscriptionsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param AuthenticationSubscriptionsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/AuthenticationSubscriptionsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationSubscriptionsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 562b1324..00000000 --- a/src/Model/AuthenticationSubscriptionsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/AuthenticationSubscriptionsGetResponse200HydraView.php b/src/Model/AuthenticationSubscriptionsGetResponse200HydraView.php deleted file mode 100644 index a2700e62..00000000 --- a/src/Model/AuthenticationSubscriptionsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200.php b/src/Model/AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200.php new file mode 100644 index 00000000..2bfa1103 --- /dev/null +++ b/src/Model/AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var SubscriptionOptionJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return SubscriptionOptionJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param SubscriptionOptionJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraSearch.php b/src/Model/AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..3645e790 --- /dev/null +++ b/src/Model/AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..14a687c1 --- /dev/null +++ b/src/Model/AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraView.php b/src/Model/AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..41c45096 --- /dev/null +++ b/src/Model/AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/AuthenticationSubscriptionsIdOptionsGetResponse200.php b/src/Model/AuthenticationSubscriptionsIdOptionsGetResponse200.php deleted file mode 100644 index 475d11af..00000000 --- a/src/Model/AuthenticationSubscriptionsIdOptionsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param SubscriptionOptionJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?AuthenticationSubscriptionsIdOptionsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?AuthenticationSubscriptionsIdOptionsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearch.php b/src/Model/AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearch.php deleted file mode 100644 index 1131da1e..00000000 --- a/src/Model/AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 0730abe9..00000000 --- a/src/Model/AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/AuthenticationSubscriptionsIdOptionsGetResponse200HydraView.php b/src/Model/AuthenticationSubscriptionsIdOptionsGetResponse200HydraView.php deleted file mode 100644 index c2b7afec..00000000 --- a/src/Model/AuthenticationSubscriptionsIdOptionsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/AuthenticationUserAuthorizationsGetLdjsonResponse200.php b/src/Model/AuthenticationUserAuthorizationsGetLdjsonResponse200.php new file mode 100644 index 00000000..97d089a0 --- /dev/null +++ b/src/Model/AuthenticationUserAuthorizationsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var UserAuthorizationJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var AuthenticationUserAuthorizationsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var AuthenticationUserAuthorizationsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return UserAuthorizationJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param UserAuthorizationJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?AuthenticationUserAuthorizationsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?AuthenticationUserAuthorizationsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?AuthenticationUserAuthorizationsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?AuthenticationUserAuthorizationsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/AuthenticationUserAuthorizationsGetLdjsonResponse200HydraSearch.php b/src/Model/AuthenticationUserAuthorizationsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..6352ffca --- /dev/null +++ b/src/Model/AuthenticationUserAuthorizationsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var AuthenticationUserAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return AuthenticationUserAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param AuthenticationUserAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/AuthenticationUserAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationUserAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..76701d8b --- /dev/null +++ b/src/Model/AuthenticationUserAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/AuthenticationUserAuthorizationsGetLdjsonResponse200HydraView.php b/src/Model/AuthenticationUserAuthorizationsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..8c3591fb --- /dev/null +++ b/src/Model/AuthenticationUserAuthorizationsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/AuthenticationUserAuthorizationsGetResponse200.php b/src/Model/AuthenticationUserAuthorizationsGetResponse200.php deleted file mode 100644 index 51bf36a2..00000000 --- a/src/Model/AuthenticationUserAuthorizationsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param UserAuthorizationJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?AuthenticationUserAuthorizationsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?AuthenticationUserAuthorizationsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?AuthenticationUserAuthorizationsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?AuthenticationUserAuthorizationsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/AuthenticationUserAuthorizationsGetResponse200HydraSearch.php b/src/Model/AuthenticationUserAuthorizationsGetResponse200HydraSearch.php deleted file mode 100644 index 2da8e48e..00000000 --- a/src/Model/AuthenticationUserAuthorizationsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return AuthenticationUserAuthorizationsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param AuthenticationUserAuthorizationsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/AuthenticationUserAuthorizationsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationUserAuthorizationsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 6eef9bee..00000000 --- a/src/Model/AuthenticationUserAuthorizationsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/AuthenticationUserAuthorizationsGetResponse200HydraView.php b/src/Model/AuthenticationUserAuthorizationsGetResponse200HydraView.php deleted file mode 100644 index d219d4fd..00000000 --- a/src/Model/AuthenticationUserAuthorizationsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/AuthenticationUserIdAuthorizationsGetResponse200.php b/src/Model/AuthenticationUserIdAuthorizationsGetResponse200.php deleted file mode 100644 index 042a194e..00000000 --- a/src/Model/AuthenticationUserIdAuthorizationsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param UserAuthorizationJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?AuthenticationUserIdAuthorizationsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?AuthenticationUserIdAuthorizationsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?AuthenticationUserIdAuthorizationsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?AuthenticationUserIdAuthorizationsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/AuthenticationUserIdAuthorizationsGetResponse200HydraSearch.php b/src/Model/AuthenticationUserIdAuthorizationsGetResponse200HydraSearch.php deleted file mode 100644 index eee04c34..00000000 --- a/src/Model/AuthenticationUserIdAuthorizationsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return AuthenticationUserIdAuthorizationsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param AuthenticationUserIdAuthorizationsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/AuthenticationUserIdAuthorizationsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationUserIdAuthorizationsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 99a2c50e..00000000 --- a/src/Model/AuthenticationUserIdAuthorizationsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/AuthenticationUserIdAuthorizationsGetResponse200HydraView.php b/src/Model/AuthenticationUserIdAuthorizationsGetResponse200HydraView.php deleted file mode 100644 index 1f94d3d0..00000000 --- a/src/Model/AuthenticationUserIdAuthorizationsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/AuthenticationUsersGetLdjsonResponse200.php b/src/Model/AuthenticationUsersGetLdjsonResponse200.php new file mode 100644 index 00000000..e34b444c --- /dev/null +++ b/src/Model/AuthenticationUsersGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var UserJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var AuthenticationUsersGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var AuthenticationUsersGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return UserJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param UserJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?AuthenticationUsersGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?AuthenticationUsersGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?AuthenticationUsersGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?AuthenticationUsersGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/AuthenticationUsersGetLdjsonResponse200HydraSearch.php b/src/Model/AuthenticationUsersGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..3e3b1c04 --- /dev/null +++ b/src/Model/AuthenticationUsersGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var AuthenticationUsersGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return AuthenticationUsersGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param AuthenticationUsersGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/AuthenticationUsersGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationUsersGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..32a9ccee --- /dev/null +++ b/src/Model/AuthenticationUsersGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/AuthenticationUsersGetLdjsonResponse200HydraView.php b/src/Model/AuthenticationUsersGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..2b620c98 --- /dev/null +++ b/src/Model/AuthenticationUsersGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/AuthenticationUsersGetResponse200.php b/src/Model/AuthenticationUsersGetResponse200.php deleted file mode 100644 index 7109e4ab..00000000 --- a/src/Model/AuthenticationUsersGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param UserJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?AuthenticationUsersGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?AuthenticationUsersGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?AuthenticationUsersGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?AuthenticationUsersGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/AuthenticationUsersGetResponse200HydraSearch.php b/src/Model/AuthenticationUsersGetResponse200HydraSearch.php deleted file mode 100644 index afec8c16..00000000 --- a/src/Model/AuthenticationUsersGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return AuthenticationUsersGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param AuthenticationUsersGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/AuthenticationUsersGetResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationUsersGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 27b49054..00000000 --- a/src/Model/AuthenticationUsersGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/AuthenticationUsersGetResponse200HydraView.php b/src/Model/AuthenticationUsersGetResponse200HydraView.php deleted file mode 100644 index aa3f4108..00000000 --- a/src/Model/AuthenticationUsersGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/AuthenticationWorkspaceIdAuthorizationsGetResponse200.php b/src/Model/AuthenticationWorkspaceIdAuthorizationsGetResponse200.php deleted file mode 100644 index 3007551b..00000000 --- a/src/Model/AuthenticationWorkspaceIdAuthorizationsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param UserAuthorizationJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearch.php b/src/Model/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearch.php deleted file mode 100644 index 805420d2..00000000 --- a/src/Model/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 7209f9f3..00000000 --- a/src/Model/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraView.php b/src/Model/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraView.php deleted file mode 100644 index baeb01a9..00000000 --- a/src/Model/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/AuthenticationWorkspaceIdUsersGetResponse200.php b/src/Model/AuthenticationWorkspaceIdUsersGetResponse200.php deleted file mode 100644 index 2afd8710..00000000 --- a/src/Model/AuthenticationWorkspaceIdUsersGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param UserJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?AuthenticationWorkspaceIdUsersGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?AuthenticationWorkspaceIdUsersGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?AuthenticationWorkspaceIdUsersGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?AuthenticationWorkspaceIdUsersGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/AuthenticationWorkspaceIdUsersGetResponse200HydraSearch.php b/src/Model/AuthenticationWorkspaceIdUsersGetResponse200HydraSearch.php deleted file mode 100644 index 34d8c7b1..00000000 --- a/src/Model/AuthenticationWorkspaceIdUsersGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return AuthenticationWorkspaceIdUsersGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param AuthenticationWorkspaceIdUsersGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/AuthenticationWorkspaceIdUsersGetResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationWorkspaceIdUsersGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 53801bca..00000000 --- a/src/Model/AuthenticationWorkspaceIdUsersGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/AuthenticationWorkspaceIdUsersGetResponse200HydraView.php b/src/Model/AuthenticationWorkspaceIdUsersGetResponse200HydraView.php deleted file mode 100644 index d86eb317..00000000 --- a/src/Model/AuthenticationWorkspaceIdUsersGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/AuthenticationWorkspacesGetLdjsonResponse200.php b/src/Model/AuthenticationWorkspacesGetLdjsonResponse200.php new file mode 100644 index 00000000..08f4c9fa --- /dev/null +++ b/src/Model/AuthenticationWorkspacesGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var WorkspaceJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var AuthenticationWorkspacesGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var AuthenticationWorkspacesGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return WorkspaceJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param WorkspaceJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?AuthenticationWorkspacesGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?AuthenticationWorkspacesGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?AuthenticationWorkspacesGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?AuthenticationWorkspacesGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/AuthenticationWorkspacesGetLdjsonResponse200HydraSearch.php b/src/Model/AuthenticationWorkspacesGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..f9b5967e --- /dev/null +++ b/src/Model/AuthenticationWorkspacesGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var AuthenticationWorkspacesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return AuthenticationWorkspacesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param AuthenticationWorkspacesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/AuthenticationWorkspacesGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationWorkspacesGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..99c47775 --- /dev/null +++ b/src/Model/AuthenticationWorkspacesGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/AuthenticationWorkspacesGetLdjsonResponse200HydraView.php b/src/Model/AuthenticationWorkspacesGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..b62b4ef2 --- /dev/null +++ b/src/Model/AuthenticationWorkspacesGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/AuthenticationWorkspacesGetResponse200.php b/src/Model/AuthenticationWorkspacesGetResponse200.php deleted file mode 100644 index 5a19d4ef..00000000 --- a/src/Model/AuthenticationWorkspacesGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param WorkspaceJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?AuthenticationWorkspacesGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?AuthenticationWorkspacesGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?AuthenticationWorkspacesGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?AuthenticationWorkspacesGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/AuthenticationWorkspacesGetResponse200HydraSearch.php b/src/Model/AuthenticationWorkspacesGetResponse200HydraSearch.php deleted file mode 100644 index 426be3ae..00000000 --- a/src/Model/AuthenticationWorkspacesGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return AuthenticationWorkspacesGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param AuthenticationWorkspacesGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/AuthenticationWorkspacesGetResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationWorkspacesGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index c8b0d7d2..00000000 --- a/src/Model/AuthenticationWorkspacesGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/AuthenticationWorkspacesGetResponse200HydraView.php b/src/Model/AuthenticationWorkspacesGetResponse200HydraView.php deleted file mode 100644 index a61cc354..00000000 --- a/src/Model/AuthenticationWorkspacesGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200.php b/src/Model/AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200.php new file mode 100644 index 00000000..7eb61d83 --- /dev/null +++ b/src/Model/AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var UserAuthorizationJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return UserAuthorizationJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param UserAuthorizationJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraSearch.php b/src/Model/AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..927deb24 --- /dev/null +++ b/src/Model/AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..bbe86feb --- /dev/null +++ b/src/Model/AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraView.php b/src/Model/AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..95a7e631 --- /dev/null +++ b/src/Model/AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/AuthenticationWorkspacesIdUsersGetLdjsonResponse200.php b/src/Model/AuthenticationWorkspacesIdUsersGetLdjsonResponse200.php new file mode 100644 index 00000000..ec0cfff1 --- /dev/null +++ b/src/Model/AuthenticationWorkspacesIdUsersGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var UserJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return UserJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param UserJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraSearch.php b/src/Model/AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..0a7b39d2 --- /dev/null +++ b/src/Model/AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..89a5f687 --- /dev/null +++ b/src/Model/AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraView.php b/src/Model/AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..d99c0f7b --- /dev/null +++ b/src/Model/AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/AutoloadInput.php b/src/Model/AutoloadInput.php deleted file mode 100644 index aea7c2d2..00000000 --- a/src/Model/AutoloadInput.php +++ /dev/null @@ -1,53 +0,0 @@ -namespace; - } - - public function setNamespace(?string $namespace): self - { - $this->namespace = $namespace; - - return $this; - } - - /** - * @return string[]|null - */ - public function getPaths(): ?array - { - return $this->paths; - } - - /** - * @param string[]|null $paths - */ - public function setPaths(?array $paths): self - { - $this->paths = $paths; - - return $this; - } -} diff --git a/src/Model/AutoloadInputJsonld.php b/src/Model/AutoloadInputJsonld.php deleted file mode 100644 index cae1f3da..00000000 --- a/src/Model/AutoloadInputJsonld.php +++ /dev/null @@ -1,104 +0,0 @@ -context; - } - - public function setContext(mixed $context): self - { - $this->context = $context; - - return $this; - } - - public function getId(): ?string - { - return $this->id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getNamespace(): ?string - { - return $this->namespace; - } - - public function setNamespace(?string $namespace): self - { - $this->namespace = $namespace; - - return $this; - } - - /** - * @return string[]|null - */ - public function getPaths(): ?array - { - return $this->paths; - } - - /** - * @param string[]|null $paths - */ - public function setPaths(?array $paths): self - { - $this->paths = $paths; - - return $this; - } -} diff --git a/src/Model/BigDecimal.php b/src/Model/BigDecimal.php index fe969078..a3cb819e 100644 --- a/src/Model/BigDecimal.php +++ b/src/Model/BigDecimal.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class BigDecimal +class BigDecimal extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * The scale (number of digits after the decimal point) of this decimal number. * @@ -19,6 +28,8 @@ class BigDecimal */ protected $scale; /** + * {@inheritdoc} + * * @var int|null */ protected $sign; @@ -88,18 +99,26 @@ public function getScale(): ?int */ public function setScale(?int $scale): self { + $this->initialized['scale'] = true; $this->scale = $scale; return $this; } + /** + * {@inheritdoc} + */ public function getSign(): ?int { return $this->sign; } + /** + * {@inheritdoc} + */ public function setSign(?int $sign): self { + $this->initialized['sign'] = true; $this->sign = $sign; return $this; @@ -112,6 +131,7 @@ public function getUnscaledValue(): ?BigInteger public function setUnscaledValue(?BigInteger $unscaledValue): self { + $this->initialized['unscaledValue'] = true; $this->unscaledValue = $unscaledValue; return $this; @@ -130,6 +150,7 @@ public function getIntegralPart(): ?string */ public function setIntegralPart(?string $integralPart): self { + $this->initialized['integralPart'] = true; $this->integralPart = $integralPart; return $this; @@ -148,6 +169,7 @@ public function getFractionalPart(): ?string */ public function setFractionalPart(?string $fractionalPart): self { + $this->initialized['fractionalPart'] = true; $this->fractionalPart = $fractionalPart; return $this; @@ -166,6 +188,7 @@ public function getNonZeroFractionalPart(): ?bool */ public function setNonZeroFractionalPart(?bool $nonZeroFractionalPart): self { + $this->initialized['nonZeroFractionalPart'] = true; $this->nonZeroFractionalPart = $nonZeroFractionalPart; return $this; @@ -184,6 +207,7 @@ public function getZero(): ?bool */ public function setZero(?bool $zero): self { + $this->initialized['zero'] = true; $this->zero = $zero; return $this; @@ -202,6 +226,7 @@ public function getNegative(): ?bool */ public function setNegative(?bool $negative): self { + $this->initialized['negative'] = true; $this->negative = $negative; return $this; @@ -220,6 +245,7 @@ public function getNegativeOrZero(): ?bool */ public function setNegativeOrZero(?bool $negativeOrZero): self { + $this->initialized['negativeOrZero'] = true; $this->negativeOrZero = $negativeOrZero; return $this; @@ -238,6 +264,7 @@ public function getPositive(): ?bool */ public function setPositive(?bool $positive): self { + $this->initialized['positive'] = true; $this->positive = $positive; return $this; @@ -256,6 +283,7 @@ public function getPositiveOrZero(): ?bool */ public function setPositiveOrZero(?bool $positiveOrZero): self { + $this->initialized['positiveOrZero'] = true; $this->positiveOrZero = $positiveOrZero; return $this; diff --git a/src/Model/BigDecimalJsonld.php b/src/Model/BigDecimalJsonld.php index 968af1e4..824e7475 100644 --- a/src/Model/BigDecimalJsonld.php +++ b/src/Model/BigDecimalJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class BigDecimalJsonld +class BigDecimalJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -31,6 +40,8 @@ class BigDecimalJsonld */ protected $scale; /** + * {@inheritdoc} + * * @var int|null */ protected $sign; @@ -95,8 +106,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -109,6 +124,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -121,6 +137,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -139,18 +156,26 @@ public function getScale(): ?int */ public function setScale(?int $scale): self { + $this->initialized['scale'] = true; $this->scale = $scale; return $this; } + /** + * {@inheritdoc} + */ public function getSign(): ?int { return $this->sign; } + /** + * {@inheritdoc} + */ public function setSign(?int $sign): self { + $this->initialized['sign'] = true; $this->sign = $sign; return $this; @@ -163,6 +188,7 @@ public function getUnscaledValue(): ?BigIntegerJsonld public function setUnscaledValue(?BigIntegerJsonld $unscaledValue): self { + $this->initialized['unscaledValue'] = true; $this->unscaledValue = $unscaledValue; return $this; @@ -181,6 +207,7 @@ public function getIntegralPart(): ?string */ public function setIntegralPart(?string $integralPart): self { + $this->initialized['integralPart'] = true; $this->integralPart = $integralPart; return $this; @@ -199,6 +226,7 @@ public function getFractionalPart(): ?string */ public function setFractionalPart(?string $fractionalPart): self { + $this->initialized['fractionalPart'] = true; $this->fractionalPart = $fractionalPart; return $this; @@ -217,6 +245,7 @@ public function getNonZeroFractionalPart(): ?bool */ public function setNonZeroFractionalPart(?bool $nonZeroFractionalPart): self { + $this->initialized['nonZeroFractionalPart'] = true; $this->nonZeroFractionalPart = $nonZeroFractionalPart; return $this; @@ -235,6 +264,7 @@ public function getZero(): ?bool */ public function setZero(?bool $zero): self { + $this->initialized['zero'] = true; $this->zero = $zero; return $this; @@ -253,6 +283,7 @@ public function getNegative(): ?bool */ public function setNegative(?bool $negative): self { + $this->initialized['negative'] = true; $this->negative = $negative; return $this; @@ -271,6 +302,7 @@ public function getNegativeOrZero(): ?bool */ public function setNegativeOrZero(?bool $negativeOrZero): self { + $this->initialized['negativeOrZero'] = true; $this->negativeOrZero = $negativeOrZero; return $this; @@ -289,6 +321,7 @@ public function getPositive(): ?bool */ public function setPositive(?bool $positive): self { + $this->initialized['positive'] = true; $this->positive = $positive; return $this; @@ -307,6 +340,7 @@ public function getPositiveOrZero(): ?bool */ public function setPositiveOrZero(?bool $positiveOrZero): self { + $this->initialized['positiveOrZero'] = true; $this->positiveOrZero = $positiveOrZero; return $this; diff --git a/src/Model/BigInteger.php b/src/Model/BigInteger.php index 3d4b4301..1a5b156f 100644 --- a/src/Model/BigInteger.php +++ b/src/Model/BigInteger.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class BigInteger +class BigInteger extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * Returns the number of bits in the minimal two's-complement representation of this BigInteger, excluding a sign bit. * @@ -37,6 +46,8 @@ class BigInteger */ protected $odd; /** + * {@inheritdoc} + * * @var int|null */ protected $sign; @@ -84,6 +95,7 @@ public function getBitLength(): ?int */ public function setBitLength(?int $bitLength): self { + $this->initialized['bitLength'] = true; $this->bitLength = $bitLength; return $this; @@ -102,6 +114,7 @@ public function getLowestSetBit(): ?int */ public function setLowestSetBit(?int $lowestSetBit): self { + $this->initialized['lowestSetBit'] = true; $this->lowestSetBit = $lowestSetBit; return $this; @@ -120,6 +133,7 @@ public function getEven(): ?bool */ public function setEven(?bool $even): self { + $this->initialized['even'] = true; $this->even = $even; return $this; @@ -138,18 +152,26 @@ public function getOdd(): ?bool */ public function setOdd(?bool $odd): self { + $this->initialized['odd'] = true; $this->odd = $odd; return $this; } + /** + * {@inheritdoc} + */ public function getSign(): ?int { return $this->sign; } + /** + * {@inheritdoc} + */ public function setSign(?int $sign): self { + $this->initialized['sign'] = true; $this->sign = $sign; return $this; @@ -168,6 +190,7 @@ public function getZero(): ?bool */ public function setZero(?bool $zero): self { + $this->initialized['zero'] = true; $this->zero = $zero; return $this; @@ -186,6 +209,7 @@ public function getNegative(): ?bool */ public function setNegative(?bool $negative): self { + $this->initialized['negative'] = true; $this->negative = $negative; return $this; @@ -204,6 +228,7 @@ public function getNegativeOrZero(): ?bool */ public function setNegativeOrZero(?bool $negativeOrZero): self { + $this->initialized['negativeOrZero'] = true; $this->negativeOrZero = $negativeOrZero; return $this; @@ -222,6 +247,7 @@ public function getPositive(): ?bool */ public function setPositive(?bool $positive): self { + $this->initialized['positive'] = true; $this->positive = $positive; return $this; @@ -240,6 +266,7 @@ public function getPositiveOrZero(): ?bool */ public function setPositiveOrZero(?bool $positiveOrZero): self { + $this->initialized['positiveOrZero'] = true; $this->positiveOrZero = $positiveOrZero; return $this; diff --git a/src/Model/BigIntegerJsonld.php b/src/Model/BigIntegerJsonld.php index e73a9270..bba1d79c 100644 --- a/src/Model/BigIntegerJsonld.php +++ b/src/Model/BigIntegerJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class BigIntegerJsonld +class BigIntegerJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -49,6 +58,8 @@ class BigIntegerJsonld */ protected $odd; /** + * {@inheritdoc} + * * @var int|null */ protected $sign; @@ -91,8 +102,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -105,6 +120,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -117,6 +133,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -135,6 +152,7 @@ public function getBitLength(): ?int */ public function setBitLength(?int $bitLength): self { + $this->initialized['bitLength'] = true; $this->bitLength = $bitLength; return $this; @@ -153,6 +171,7 @@ public function getLowestSetBit(): ?int */ public function setLowestSetBit(?int $lowestSetBit): self { + $this->initialized['lowestSetBit'] = true; $this->lowestSetBit = $lowestSetBit; return $this; @@ -171,6 +190,7 @@ public function getEven(): ?bool */ public function setEven(?bool $even): self { + $this->initialized['even'] = true; $this->even = $even; return $this; @@ -189,18 +209,26 @@ public function getOdd(): ?bool */ public function setOdd(?bool $odd): self { + $this->initialized['odd'] = true; $this->odd = $odd; return $this; } + /** + * {@inheritdoc} + */ public function getSign(): ?int { return $this->sign; } + /** + * {@inheritdoc} + */ public function setSign(?int $sign): self { + $this->initialized['sign'] = true; $this->sign = $sign; return $this; @@ -219,6 +247,7 @@ public function getZero(): ?bool */ public function setZero(?bool $zero): self { + $this->initialized['zero'] = true; $this->zero = $zero; return $this; @@ -237,6 +266,7 @@ public function getNegative(): ?bool */ public function setNegative(?bool $negative): self { + $this->initialized['negative'] = true; $this->negative = $negative; return $this; @@ -255,6 +285,7 @@ public function getNegativeOrZero(): ?bool */ public function setNegativeOrZero(?bool $negativeOrZero): self { + $this->initialized['negativeOrZero'] = true; $this->negativeOrZero = $negativeOrZero; return $this; @@ -273,6 +304,7 @@ public function getPositive(): ?bool */ public function setPositive(?bool $positive): self { + $this->initialized['positive'] = true; $this->positive = $positive; return $this; @@ -291,6 +323,7 @@ public function getPositiveOrZero(): ?bool */ public function setPositiveOrZero(?bool $positiveOrZero): self { + $this->initialized['positiveOrZero'] = true; $this->positiveOrZero = $positiveOrZero; return $this; diff --git a/src/Model/BigNumber.php b/src/Model/BigNumber.php index 3bc72e3c..b5e6d912 100644 --- a/src/Model/BigNumber.php +++ b/src/Model/BigNumber.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class BigNumber +class BigNumber extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * Checks if this number equals zero. * @@ -62,6 +71,7 @@ public function getZero(): ?bool */ public function setZero(?bool $zero): self { + $this->initialized['zero'] = true; $this->zero = $zero; return $this; @@ -80,6 +90,7 @@ public function getNegative(): ?bool */ public function setNegative(?bool $negative): self { + $this->initialized['negative'] = true; $this->negative = $negative; return $this; @@ -98,6 +109,7 @@ public function getNegativeOrZero(): ?bool */ public function setNegativeOrZero(?bool $negativeOrZero): self { + $this->initialized['negativeOrZero'] = true; $this->negativeOrZero = $negativeOrZero; return $this; @@ -116,6 +128,7 @@ public function getPositive(): ?bool */ public function setPositive(?bool $positive): self { + $this->initialized['positive'] = true; $this->positive = $positive; return $this; @@ -134,6 +147,7 @@ public function getPositiveOrZero(): ?bool */ public function setPositiveOrZero(?bool $positiveOrZero): self { + $this->initialized['positiveOrZero'] = true; $this->positiveOrZero = $positiveOrZero; return $this; @@ -152,6 +166,7 @@ public function getSign(): ?int */ public function setSign(?int $sign): self { + $this->initialized['sign'] = true; $this->sign = $sign; return $this; diff --git a/src/Model/BigNumberJsonld.php b/src/Model/BigNumberJsonld.php index b8f5faf7..2587e929 100644 --- a/src/Model/BigNumberJsonld.php +++ b/src/Model/BigNumberJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class BigNumberJsonld +class BigNumberJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -69,8 +78,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -83,6 +96,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -95,6 +109,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -113,6 +128,7 @@ public function getZero(): ?bool */ public function setZero(?bool $zero): self { + $this->initialized['zero'] = true; $this->zero = $zero; return $this; @@ -131,6 +147,7 @@ public function getNegative(): ?bool */ public function setNegative(?bool $negative): self { + $this->initialized['negative'] = true; $this->negative = $negative; return $this; @@ -149,6 +166,7 @@ public function getNegativeOrZero(): ?bool */ public function setNegativeOrZero(?bool $negativeOrZero): self { + $this->initialized['negativeOrZero'] = true; $this->negativeOrZero = $negativeOrZero; return $this; @@ -167,6 +185,7 @@ public function getPositive(): ?bool */ public function setPositive(?bool $positive): self { + $this->initialized['positive'] = true; $this->positive = $positive; return $this; @@ -185,6 +204,7 @@ public function getPositiveOrZero(): ?bool */ public function setPositiveOrZero(?bool $positiveOrZero): self { + $this->initialized['positiveOrZero'] = true; $this->positiveOrZero = $positiveOrZero; return $this; @@ -203,6 +223,7 @@ public function getSign(): ?int */ public function setSign(?int $sign): self { + $this->initialized['sign'] = true; $this->sign = $sign; return $this; diff --git a/src/Model/Buyable.php b/src/Model/Buyable.php new file mode 100644 index 00000000..6e4a3dc5 --- /dev/null +++ b/src/Model/Buyable.php @@ -0,0 +1,240 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $sku; + /** + * @var string|null + */ + protected $name; + /** + * @var string|null + */ + protected $slug; + /** + * @var string|null + */ + protected $shortDescription; + /** + * @var string|null + */ + protected $description; + /** + * @var string[]|null + */ + protected $features; + /** + * @var Price[]|null + */ + protected $priceList; + /** + * @var int|null + */ + protected $rank; + /** + * @var bool|null + */ + protected $active; + /** + * @var \DateTime|null + */ + protected $activeFrom; + /** + * @var \DateTime|null + */ + protected $activeUntil; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getSku(): ?string + { + return $this->sku; + } + + public function setSku(?string $sku): self + { + $this->initialized['sku'] = true; + $this->sku = $sku; + + return $this; + } + + public function getName(): ?string + { + return $this->name; + } + + public function setName(?string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getSlug(): ?string + { + return $this->slug; + } + + public function setSlug(?string $slug): self + { + $this->initialized['slug'] = true; + $this->slug = $slug; + + return $this; + } + + public function getShortDescription(): ?string + { + return $this->shortDescription; + } + + public function setShortDescription(?string $shortDescription): self + { + $this->initialized['shortDescription'] = true; + $this->shortDescription = $shortDescription; + + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return string[]|null + */ + public function getFeatures(): ?array + { + return $this->features; + } + + /** + * @param string[]|null $features + */ + public function setFeatures(?array $features): self + { + $this->initialized['features'] = true; + $this->features = $features; + + return $this; + } + + /** + * @return Price[]|null + */ + public function getPriceList(): ?array + { + return $this->priceList; + } + + /** + * @param Price[]|null $priceList + */ + public function setPriceList(?array $priceList): self + { + $this->initialized['priceList'] = true; + $this->priceList = $priceList; + + return $this; + } + + public function getRank(): ?int + { + return $this->rank; + } + + public function setRank(?int $rank): self + { + $this->initialized['rank'] = true; + $this->rank = $rank; + + return $this; + } + + public function getActive(): ?bool + { + return $this->active; + } + + public function setActive(?bool $active): self + { + $this->initialized['active'] = true; + $this->active = $active; + + return $this; + } + + public function getActiveFrom(): ?\DateTime + { + return $this->activeFrom; + } + + public function setActiveFrom(?\DateTime $activeFrom): self + { + $this->initialized['activeFrom'] = true; + $this->activeFrom = $activeFrom; + + return $this; + } + + public function getActiveUntil(): ?\DateTime + { + return $this->activeUntil; + } + + public function setActiveUntil(?\DateTime $activeUntil): self + { + $this->initialized['activeUntil'] = true; + $this->activeUntil = $activeUntil; + + return $this; + } +} diff --git a/src/Model/BuyableJsonld.php b/src/Model/BuyableJsonld.php new file mode 100644 index 00000000..7fc90e20 --- /dev/null +++ b/src/Model/BuyableJsonld.php @@ -0,0 +1,297 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $id2; + /** + * @var string|null + */ + protected $sku; + /** + * @var string|null + */ + protected $name; + /** + * @var string|null + */ + protected $slug; + /** + * @var string|null + */ + protected $shortDescription; + /** + * @var string|null + */ + protected $description; + /** + * @var string[]|null + */ + protected $features; + /** + * @var PriceJsonld[]|null + */ + protected $priceList; + /** + * @var int|null + */ + protected $rank; + /** + * @var bool|null + */ + protected $active; + /** + * @var \DateTime|null + */ + protected $activeFrom; + /** + * @var \DateTime|null + */ + protected $activeUntil; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getId2(): ?string + { + return $this->id2; + } + + public function setId2(?string $id2): self + { + $this->initialized['id2'] = true; + $this->id2 = $id2; + + return $this; + } + + public function getSku(): ?string + { + return $this->sku; + } + + public function setSku(?string $sku): self + { + $this->initialized['sku'] = true; + $this->sku = $sku; + + return $this; + } + + public function getName(): ?string + { + return $this->name; + } + + public function setName(?string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getSlug(): ?string + { + return $this->slug; + } + + public function setSlug(?string $slug): self + { + $this->initialized['slug'] = true; + $this->slug = $slug; + + return $this; + } + + public function getShortDescription(): ?string + { + return $this->shortDescription; + } + + public function setShortDescription(?string $shortDescription): self + { + $this->initialized['shortDescription'] = true; + $this->shortDescription = $shortDescription; + + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return string[]|null + */ + public function getFeatures(): ?array + { + return $this->features; + } + + /** + * @param string[]|null $features + */ + public function setFeatures(?array $features): self + { + $this->initialized['features'] = true; + $this->features = $features; + + return $this; + } + + /** + * @return PriceJsonld[]|null + */ + public function getPriceList(): ?array + { + return $this->priceList; + } + + /** + * @param PriceJsonld[]|null $priceList + */ + public function setPriceList(?array $priceList): self + { + $this->initialized['priceList'] = true; + $this->priceList = $priceList; + + return $this; + } + + public function getRank(): ?int + { + return $this->rank; + } + + public function setRank(?int $rank): self + { + $this->initialized['rank'] = true; + $this->rank = $rank; + + return $this; + } + + public function getActive(): ?bool + { + return $this->active; + } + + public function setActive(?bool $active): self + { + $this->initialized['active'] = true; + $this->active = $active; + + return $this; + } + + public function getActiveFrom(): ?\DateTime + { + return $this->activeFrom; + } + + public function setActiveFrom(?\DateTime $activeFrom): self + { + $this->initialized['activeFrom'] = true; + $this->activeFrom = $activeFrom; + + return $this; + } + + public function getActiveUntil(): ?\DateTime + { + return $this->activeUntil; + } + + public function setActiveUntil(?\DateTime $activeUntil): self + { + $this->initialized['activeUntil'] = true; + $this->activeUntil = $activeUntil; + + return $this; + } +} diff --git a/src/Model/ColorJsonldRead.php b/src/Model/ColorJsonldRead.php new file mode 100644 index 00000000..50ea2a7e --- /dev/null +++ b/src/Model/ColorJsonldRead.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } +} diff --git a/src/Model/Compilation.php b/src/Model/Compilation.php index a1077810..1a27fc2c 100644 --- a/src/Model/Compilation.php +++ b/src/Model/Compilation.php @@ -10,16 +10,33 @@ namespace Gyroscops\Api\Model; -class Compilation +class Compilation extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ protected $id; + /** + * @var int|null + */ + protected $currentVersion; /** * @var \DateTime|null */ protected $createdAt; + /** + * @var string|null + */ + protected $workflow; /** * @var string|null */ @@ -44,11 +61,25 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; } + public function getCurrentVersion(): ?int + { + return $this->currentVersion; + } + + public function setCurrentVersion(?int $currentVersion): self + { + $this->initialized['currentVersion'] = true; + $this->currentVersion = $currentVersion; + + return $this; + } + public function getCreatedAt(): ?\DateTime { return $this->createdAt; @@ -56,11 +87,25 @@ public function getCreatedAt(): ?\DateTime public function setCreatedAt(?\DateTime $createdAt): self { + $this->initialized['createdAt'] = true; $this->createdAt = $createdAt; return $this; } + public function getWorkflow(): ?string + { + return $this->workflow; + } + + public function setWorkflow(?string $workflow): self + { + $this->initialized['workflow'] = true; + $this->workflow = $workflow; + + return $this; + } + public function getPipeline(): ?string { return $this->pipeline; @@ -68,6 +113,7 @@ public function getPipeline(): ?string public function setPipeline(?string $pipeline): self { + $this->initialized['pipeline'] = true; $this->pipeline = $pipeline; return $this; @@ -80,6 +126,7 @@ public function getWorkspace(): ?string public function setWorkspace(?string $workspace): self { + $this->initialized['workspace'] = true; $this->workspace = $workspace; return $this; @@ -92,6 +139,7 @@ public function getOrganization(): ?string public function setOrganization(?string $organization): self { + $this->initialized['organization'] = true; $this->organization = $organization; return $this; @@ -104,6 +152,7 @@ public function getOwner(): ?string public function setOwner(?string $owner): self { + $this->initialized['owner'] = true; $this->owner = $owner; return $this; diff --git a/src/Model/CompilationCompilePipelineCommand.php b/src/Model/CompilationCompilePipelineCommand.php deleted file mode 100644 index f72b11bd..00000000 --- a/src/Model/CompilationCompilePipelineCommand.php +++ /dev/null @@ -1,34 +0,0 @@ -id; - } - - public function setId(mixed $id): self - { - $this->id = $id; - - return $this; - } -} diff --git a/src/Model/CompilationCompilePipelineCommandInputJsonld.php b/src/Model/CompilationCompilePipelineCommandInputJsonld.php deleted file mode 100644 index 8e6f4051..00000000 --- a/src/Model/CompilationCompilePipelineCommandInputJsonld.php +++ /dev/null @@ -1,66 +0,0 @@ -context; - } - - public function setContext(mixed $context): self - { - $this->context = $context; - - return $this; - } - - public function getId(): ?string - { - return $this->id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } -} diff --git a/src/Model/CompilationCompilePipelineCommandJsonld.php b/src/Model/CompilationCompilePipelineCommandJsonld.php deleted file mode 100644 index 98c0bcbe..00000000 --- a/src/Model/CompilationCompilePipelineCommandJsonld.php +++ /dev/null @@ -1,82 +0,0 @@ -context; - } - - public function setContext(mixed $context): self - { - $this->context = $context; - - return $this; - } - - public function getId(): ?string - { - return $this->id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getId2(): ?PipelineIdJsonld - { - return $this->id2; - } - - public function setId2(?PipelineIdJsonld $id2): self - { - $this->id2 = $id2; - - return $this; - } -} diff --git a/src/Model/CompilationJsonld.php b/src/Model/CompilationJsonld.php index 55381bad..5722ce75 100644 --- a/src/Model/CompilationJsonld.php +++ b/src/Model/CompilationJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class CompilationJsonld +class CompilationJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -28,10 +37,18 @@ class CompilationJsonld * @var string|null */ protected $id2; + /** + * @var int|null + */ + protected $currentVersion; /** * @var \DateTime|null */ protected $createdAt; + /** + * @var string|null + */ + protected $workflow; /** * @var string|null */ @@ -56,6 +73,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -68,6 +86,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -81,8 +100,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -95,11 +118,25 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; } + public function getCurrentVersion(): ?int + { + return $this->currentVersion; + } + + public function setCurrentVersion(?int $currentVersion): self + { + $this->initialized['currentVersion'] = true; + $this->currentVersion = $currentVersion; + + return $this; + } + public function getCreatedAt(): ?\DateTime { return $this->createdAt; @@ -107,11 +144,25 @@ public function getCreatedAt(): ?\DateTime public function setCreatedAt(?\DateTime $createdAt): self { + $this->initialized['createdAt'] = true; $this->createdAt = $createdAt; return $this; } + public function getWorkflow(): ?string + { + return $this->workflow; + } + + public function setWorkflow(?string $workflow): self + { + $this->initialized['workflow'] = true; + $this->workflow = $workflow; + + return $this; + } + public function getPipeline(): ?string { return $this->pipeline; @@ -119,6 +170,7 @@ public function getPipeline(): ?string public function setPipeline(?string $pipeline): self { + $this->initialized['pipeline'] = true; $this->pipeline = $pipeline; return $this; @@ -131,6 +183,7 @@ public function getWorkspace(): ?string public function setWorkspace(?string $workspace): self { + $this->initialized['workspace'] = true; $this->workspace = $workspace; return $this; @@ -143,6 +196,7 @@ public function getOrganization(): ?string public function setOrganization(?string $organization): self { + $this->initialized['organization'] = true; $this->organization = $organization; return $this; @@ -155,6 +209,7 @@ public function getOwner(): ?string public function setOwner(?string $owner): self { + $this->initialized['owner'] = true; $this->owner = $owner; return $this; diff --git a/src/Model/Composer.php b/src/Model/Composer.php new file mode 100644 index 00000000..f6fcd4df --- /dev/null +++ b/src/Model/Composer.php @@ -0,0 +1,116 @@ +initialized); + } + /** + * @var ComposerAutoload[]|null + */ + protected $autoloads; + /** + * @var string[]|null + */ + protected $packages; + /** + * @var ComposerRepository[]|null + */ + protected $repositories; + /** + * @var ComposerAuthentication[]|null + */ + protected $authentications; + + /** + * @return ComposerAutoload[]|null + */ + public function getAutoloads(): ?array + { + return $this->autoloads; + } + + /** + * @param ComposerAutoload[]|null $autoloads + */ + public function setAutoloads(?array $autoloads): self + { + $this->initialized['autoloads'] = true; + $this->autoloads = $autoloads; + + return $this; + } + + /** + * @return string[]|null + */ + public function getPackages(): ?iterable + { + return $this->packages; + } + + /** + * @param string[]|null $packages + */ + public function setPackages(?iterable $packages): self + { + $this->initialized['packages'] = true; + $this->packages = $packages; + + return $this; + } + + /** + * @return ComposerRepository[]|null + */ + public function getRepositories(): ?array + { + return $this->repositories; + } + + /** + * @param ComposerRepository[]|null $repositories + */ + public function setRepositories(?array $repositories): self + { + $this->initialized['repositories'] = true; + $this->repositories = $repositories; + + return $this; + } + + /** + * @return ComposerAuthentication[]|null + */ + public function getAuthentications(): ?array + { + return $this->authentications; + } + + /** + * @param ComposerAuthentication[]|null $authentications + */ + public function setAuthentications(?array $authentications): self + { + $this->initialized['authentications'] = true; + $this->authentications = $authentications; + + return $this; + } +} diff --git a/src/Model/ComposerAuthentication.php b/src/Model/ComposerAuthentication.php new file mode 100644 index 00000000..a73ee07a --- /dev/null +++ b/src/Model/ComposerAuthentication.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string|null + */ + protected $url; + /** + * @var string|null + */ + protected $token; + + public function getUrl(): ?string + { + return $this->url; + } + + public function setUrl(?string $url): self + { + $this->initialized['url'] = true; + $this->url = $url; + + return $this; + } + + public function getToken(): ?string + { + return $this->token; + } + + public function setToken(?string $token): self + { + $this->initialized['token'] = true; + $this->token = $token; + + return $this; + } +} diff --git a/src/Model/ComposerAuthenticationJsonld.php b/src/Model/ComposerAuthenticationJsonld.php new file mode 100644 index 00000000..702bf618 --- /dev/null +++ b/src/Model/ComposerAuthenticationJsonld.php @@ -0,0 +1,115 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $url; + /** + * @var string|null + */ + protected $token; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getUrl(): ?string + { + return $this->url; + } + + public function setUrl(?string $url): self + { + $this->initialized['url'] = true; + $this->url = $url; + + return $this; + } + + public function getToken(): ?string + { + return $this->token; + } + + public function setToken(?string $token): self + { + $this->initialized['token'] = true; + $this->token = $token; + + return $this; + } +} diff --git a/src/Model/ComposerAutoload.php b/src/Model/ComposerAutoload.php new file mode 100644 index 00000000..5a92cd63 --- /dev/null +++ b/src/Model/ComposerAutoload.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $namespace; + /** + * @var string[]|null + */ + protected $paths; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getNamespace(): ?string + { + return $this->namespace; + } + + public function setNamespace(?string $namespace): self + { + $this->initialized['namespace'] = true; + $this->namespace = $namespace; + + return $this; + } + + /** + * @return string[]|null + */ + public function getPaths(): ?array + { + return $this->paths; + } + + /** + * @param string[]|null $paths + */ + public function setPaths(?array $paths): self + { + $this->initialized['paths'] = true; + $this->paths = $paths; + + return $this; + } +} diff --git a/src/Model/ComposerAutoloadJsonld.php b/src/Model/ComposerAutoloadJsonld.php new file mode 100644 index 00000000..8dacdb53 --- /dev/null +++ b/src/Model/ComposerAutoloadJsonld.php @@ -0,0 +1,138 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $type2; + /** + * @var string|null + */ + protected $namespace; + /** + * @var string[]|null + */ + protected $paths; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getType2(): ?string + { + return $this->type2; + } + + public function setType2(?string $type2): self + { + $this->initialized['type2'] = true; + $this->type2 = $type2; + + return $this; + } + + public function getNamespace(): ?string + { + return $this->namespace; + } + + public function setNamespace(?string $namespace): self + { + $this->initialized['namespace'] = true; + $this->namespace = $namespace; + + return $this; + } + + /** + * @return string[]|null + */ + public function getPaths(): ?array + { + return $this->paths; + } + + /** + * @param string[]|null $paths + */ + public function setPaths(?array $paths): self + { + $this->initialized['paths'] = true; + $this->paths = $paths; + + return $this; + } +} diff --git a/src/Model/ComposerJsonld.php b/src/Model/ComposerJsonld.php new file mode 100644 index 00000000..efe5faa1 --- /dev/null +++ b/src/Model/ComposerJsonld.php @@ -0,0 +1,173 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var ComposerAutoloadJsonld[]|null + */ + protected $autoloads; + /** + * @var string[]|null + */ + protected $packages; + /** + * @var ComposerRepositoryJsonld[]|null + */ + protected $repositories; + /** + * @var ComposerAuthenticationJsonld[]|null + */ + protected $authentications; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + /** + * @return ComposerAutoloadJsonld[]|null + */ + public function getAutoloads(): ?array + { + return $this->autoloads; + } + + /** + * @param ComposerAutoloadJsonld[]|null $autoloads + */ + public function setAutoloads(?array $autoloads): self + { + $this->initialized['autoloads'] = true; + $this->autoloads = $autoloads; + + return $this; + } + + /** + * @return string[]|null + */ + public function getPackages(): ?iterable + { + return $this->packages; + } + + /** + * @param string[]|null $packages + */ + public function setPackages(?iterable $packages): self + { + $this->initialized['packages'] = true; + $this->packages = $packages; + + return $this; + } + + /** + * @return ComposerRepositoryJsonld[]|null + */ + public function getRepositories(): ?array + { + return $this->repositories; + } + + /** + * @param ComposerRepositoryJsonld[]|null $repositories + */ + public function setRepositories(?array $repositories): self + { + $this->initialized['repositories'] = true; + $this->repositories = $repositories; + + return $this; + } + + /** + * @return ComposerAuthenticationJsonld[]|null + */ + public function getAuthentications(): ?array + { + return $this->authentications; + } + + /** + * @param ComposerAuthenticationJsonld[]|null $authentications + */ + public function setAuthentications(?array $authentications): self + { + $this->initialized['authentications'] = true; + $this->authentications = $authentications; + + return $this; + } +} diff --git a/src/Model/ComposerRepository.php b/src/Model/ComposerRepository.php new file mode 100644 index 00000000..b570436f --- /dev/null +++ b/src/Model/ComposerRepository.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string|null + */ + protected $name; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $url; + + public function getName(): ?string + { + return $this->name; + } + + public function setName(?string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getUrl(): ?string + { + return $this->url; + } + + public function setUrl(?string $url): self + { + $this->initialized['url'] = true; + $this->url = $url; + + return $this; + } +} diff --git a/src/Model/ComposerRepositoryJsonld.php b/src/Model/ComposerRepositoryJsonld.php new file mode 100644 index 00000000..2ff2cf6a --- /dev/null +++ b/src/Model/ComposerRepositoryJsonld.php @@ -0,0 +1,132 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $name; + /** + * @var string|null + */ + protected $type2; + /** + * @var string|null + */ + protected $url; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getName(): ?string + { + return $this->name; + } + + public function setName(?string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getType2(): ?string + { + return $this->type2; + } + + public function setType2(?string $type2): self + { + $this->initialized['type2'] = true; + $this->type2 = $type2; + + return $this; + } + + public function getUrl(): ?string + { + return $this->url; + } + + public function setUrl(?string $url): self + { + $this->initialized['url'] = true; + $this->url = $url; + + return $this; + } +} diff --git a/src/Model/Configuration.php b/src/Model/Configuration.php index 45170103..0700b246 100644 --- a/src/Model/Configuration.php +++ b/src/Model/Configuration.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class Configuration +class Configuration extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -40,10 +49,6 @@ class Configuration * @var string[]|null */ protected $contents; - /** - * @var mixed|null - */ - protected $iterator; public function getId(): ?string { @@ -52,6 +57,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -64,6 +70,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -76,6 +83,7 @@ public function getSlug(): ?string public function setSlug(?string $slug): self { + $this->initialized['slug'] = true; $this->slug = $slug; return $this; @@ -88,6 +96,7 @@ public function getDescription(): ?string public function setDescription(?string $description): self { + $this->initialized['description'] = true; $this->description = $description; return $this; @@ -100,6 +109,7 @@ public function getOrganization(): ?string public function setOrganization(?string $organization): self { + $this->initialized['organization'] = true; $this->organization = $organization; return $this; @@ -112,6 +122,7 @@ public function getWorkspace(): ?string public function setWorkspace(?string $workspace): self { + $this->initialized['workspace'] = true; $this->workspace = $workspace; return $this; @@ -130,23 +141,9 @@ public function getContents(): ?iterable */ public function setContents(?iterable $contents): self { + $this->initialized['contents'] = true; $this->contents = $contents; return $this; } - - /** - * @return mixed - */ - public function getIterator() - { - return $this->iterator; - } - - public function setIterator(mixed $iterator): self - { - $this->iterator = $iterator; - - return $this; - } } diff --git a/src/Model/ConfigurationChangeConfigurationValueInput.php b/src/Model/ConfigurationChangeConfigurationValueInput.php index d202cc92..e6a5c75b 100644 --- a/src/Model/ConfigurationChangeConfigurationValueInput.php +++ b/src/Model/ConfigurationChangeConfigurationValueInput.php @@ -10,22 +10,23 @@ namespace Gyroscops\Api\Model; -class ConfigurationChangeConfigurationValueInput +class ConfigurationChangeConfigurationValueInput extends \ArrayObject { /** - * @var string[]|null - */ - protected $contents; - /** - * @var mixed|null + * @var array */ - protected $organization; + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** - * @var mixed|null + * @var string[]|null */ - protected $workspace; + protected $contents; /** - * @var mixed|null + * @var mixed[]|null */ protected $iterator; @@ -42,51 +43,26 @@ public function getContents(): ?iterable */ public function setContents(?iterable $contents): self { + $this->initialized['contents'] = true; $this->contents = $contents; return $this; } /** - * @return mixed + * @return mixed[]|null */ - public function getOrganization() - { - return $this->organization; - } - - public function setOrganization(mixed $organization): self + public function getIterator(): ?iterable { - $this->organization = $organization; - - return $this; - } - - /** - * @return mixed - */ - public function getWorkspace() - { - return $this->workspace; - } - - public function setWorkspace(mixed $workspace): self - { - $this->workspace = $workspace; - - return $this; + return $this->iterator; } /** - * @return mixed + * @param mixed[]|null $iterator */ - public function getIterator() - { - return $this->iterator; - } - - public function setIterator(mixed $iterator): self + public function setIterator(?iterable $iterator): self { + $this->initialized['iterator'] = true; $this->iterator = $iterator; return $this; diff --git a/src/Model/ConfigurationChangeConfigurationValueInputJsonld.php b/src/Model/ConfigurationChangeConfigurationValueInputJsonld.php index 0b56203d..d370aaa6 100644 --- a/src/Model/ConfigurationChangeConfigurationValueInputJsonld.php +++ b/src/Model/ConfigurationChangeConfigurationValueInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ConfigurationChangeConfigurationValueInputJsonld +class ConfigurationChangeConfigurationValueInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -28,14 +37,6 @@ class ConfigurationChangeConfigurationValueInputJsonld * @var string[]|null */ protected $contents; - /** - * @var mixed|null - */ - protected $organization; - /** - * @var mixed|null - */ - protected $workspace; /** * @var TraversableJsonld|null */ @@ -49,8 +50,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -63,6 +68,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -75,6 +81,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -93,41 +100,12 @@ public function getContents(): ?iterable */ public function setContents(?iterable $contents): self { + $this->initialized['contents'] = true; $this->contents = $contents; return $this; } - /** - * @return mixed - */ - public function getOrganization() - { - return $this->organization; - } - - public function setOrganization(mixed $organization): self - { - $this->organization = $organization; - - return $this; - } - - /** - * @return mixed - */ - public function getWorkspace() - { - return $this->workspace; - } - - public function setWorkspace(mixed $workspace): self - { - $this->workspace = $workspace; - - return $this; - } - public function getIterator(): ?TraversableJsonld { return $this->iterator; @@ -135,6 +113,7 @@ public function getIterator(): ?TraversableJsonld public function setIterator(?TraversableJsonld $iterator): self { + $this->initialized['iterator'] = true; $this->iterator = $iterator; return $this; diff --git a/src/Model/ConfigurationCreateConfigurationInput.php b/src/Model/ConfigurationCreateConfigurationInput.php index f598cfb8..67a012c1 100644 --- a/src/Model/ConfigurationCreateConfigurationInput.php +++ b/src/Model/ConfigurationCreateConfigurationInput.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ConfigurationCreateConfigurationInput +class ConfigurationCreateConfigurationInput extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -24,18 +33,6 @@ class ConfigurationCreateConfigurationInput * @var string[]|null */ protected $contents; - /** - * @var mixed|null - */ - protected $organization; - /** - * @var mixed|null - */ - protected $workspace; - /** - * @var mixed|null - */ - protected $iterator; public function getName(): ?string { @@ -44,6 +41,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -56,6 +54,7 @@ public function getDescription(): ?string public function setDescription(?string $description): self { + $this->initialized['description'] = true; $this->description = $description; return $this; @@ -74,53 +73,9 @@ public function getContents(): ?iterable */ public function setContents(?iterable $contents): self { + $this->initialized['contents'] = true; $this->contents = $contents; return $this; } - - /** - * @return mixed - */ - public function getOrganization() - { - return $this->organization; - } - - public function setOrganization(mixed $organization): self - { - $this->organization = $organization; - - return $this; - } - - /** - * @return mixed - */ - public function getWorkspace() - { - return $this->workspace; - } - - public function setWorkspace(mixed $workspace): self - { - $this->workspace = $workspace; - - return $this; - } - - /** - * @return mixed - */ - public function getIterator() - { - return $this->iterator; - } - - public function setIterator(mixed $iterator): self - { - $this->iterator = $iterator; - - return $this; - } } diff --git a/src/Model/ConfigurationCreateConfigurationInputJsonld.php b/src/Model/ConfigurationCreateConfigurationInputJsonld.php index 801d32b1..177c5a12 100644 --- a/src/Model/ConfigurationCreateConfigurationInputJsonld.php +++ b/src/Model/ConfigurationCreateConfigurationInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ConfigurationCreateConfigurationInputJsonld +class ConfigurationCreateConfigurationInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -36,18 +45,6 @@ class ConfigurationCreateConfigurationInputJsonld * @var string[]|null */ protected $contents; - /** - * @var mixed|null - */ - protected $organization; - /** - * @var mixed|null - */ - protected $workspace; - /** - * @var TraversableJsonld|null - */ - protected $iterator; /** * @return mixed @@ -57,8 +54,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -83,6 +85,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -95,6 +98,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -107,6 +111,7 @@ public function getDescription(): ?string public function setDescription(?string $description): self { + $this->initialized['description'] = true; $this->description = $description; return $this; @@ -125,50 +130,9 @@ public function getContents(): ?iterable */ public function setContents(?iterable $contents): self { + $this->initialized['contents'] = true; $this->contents = $contents; return $this; } - - /** - * @return mixed - */ - public function getOrganization() - { - return $this->organization; - } - - public function setOrganization(mixed $organization): self - { - $this->organization = $organization; - - return $this; - } - - /** - * @return mixed - */ - public function getWorkspace() - { - return $this->workspace; - } - - public function setWorkspace(mixed $workspace): self - { - $this->workspace = $workspace; - - return $this; - } - - public function getIterator(): ?TraversableJsonld - { - return $this->iterator; - } - - public function setIterator(?TraversableJsonld $iterator): self - { - $this->iterator = $iterator; - - return $this; - } } diff --git a/src/Model/ConfigurationEdit.php b/src/Model/ConfigurationEdit.php index d5cfa0e8..1e0f23d8 100644 --- a/src/Model/ConfigurationEdit.php +++ b/src/Model/ConfigurationEdit.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ConfigurationEdit +class ConfigurationEdit extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -28,6 +37,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -40,6 +50,7 @@ public function getDescription(): ?string public function setDescription(?string $description): self { + $this->initialized['description'] = true; $this->description = $description; return $this; diff --git a/src/Model/ConfigurationIdJsonld.php b/src/Model/ConfigurationIdJsonld.php deleted file mode 100644 index ab18e738..00000000 --- a/src/Model/ConfigurationIdJsonld.php +++ /dev/null @@ -1,66 +0,0 @@ -context; - } - - public function setContext(mixed $context): self - { - $this->context = $context; - - return $this; - } - - public function getId(): ?string - { - return $this->id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } -} diff --git a/src/Model/ConfigurationJsonld.php b/src/Model/ConfigurationJsonld.php index 0202bcfc..f92cc79d 100644 --- a/src/Model/ConfigurationJsonld.php +++ b/src/Model/ConfigurationJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ConfigurationJsonld +class ConfigurationJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -52,10 +61,6 @@ class ConfigurationJsonld * @var string[]|null */ protected $contents; - /** - * @var TraversableJsonld|null - */ - protected $iterator; /** * @return mixed @@ -65,8 +70,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -79,6 +88,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -91,6 +101,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -103,6 +114,7 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; @@ -115,6 +127,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -127,6 +140,7 @@ public function getSlug(): ?string public function setSlug(?string $slug): self { + $this->initialized['slug'] = true; $this->slug = $slug; return $this; @@ -139,6 +153,7 @@ public function getDescription(): ?string public function setDescription(?string $description): self { + $this->initialized['description'] = true; $this->description = $description; return $this; @@ -151,6 +166,7 @@ public function getOrganization(): ?string public function setOrganization(?string $organization): self { + $this->initialized['organization'] = true; $this->organization = $organization; return $this; @@ -163,6 +179,7 @@ public function getWorkspace(): ?string public function setWorkspace(?string $workspace): self { + $this->initialized['workspace'] = true; $this->workspace = $workspace; return $this; @@ -181,20 +198,9 @@ public function getContents(): ?iterable */ public function setContents(?iterable $contents): self { + $this->initialized['contents'] = true; $this->contents = $contents; return $this; } - - public function getIterator(): ?TraversableJsonld - { - return $this->iterator; - } - - public function setIterator(?TraversableJsonld $iterator): self - { - $this->iterator = $iterator; - - return $this; - } } diff --git a/src/Model/ConfigurationJsonldEdit.php b/src/Model/ConfigurationJsonldEdit.php index 5f0d5732..2cafb22f 100644 --- a/src/Model/ConfigurationJsonldEdit.php +++ b/src/Model/ConfigurationJsonldEdit.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ConfigurationJsonldEdit +class ConfigurationJsonldEdit extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -41,8 +50,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -55,6 +68,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -67,6 +81,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -79,6 +94,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -91,6 +107,7 @@ public function getDescription(): ?string public function setDescription(?string $description): self { + $this->initialized['description'] = true; $this->description = $description; return $this; diff --git a/src/Model/ConfigurationJsonldRead.php b/src/Model/ConfigurationJsonldRead.php index 1245bc4c..2d34fd57 100644 --- a/src/Model/ConfigurationJsonldRead.php +++ b/src/Model/ConfigurationJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ConfigurationJsonldRead +class ConfigurationJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -36,6 +45,14 @@ class ConfigurationJsonldRead * @var string|null */ protected $description; + /** + * @var string|null + */ + protected $organization; + /** + * @var string|null + */ + protected $workspace; /** * @var string[]|null */ @@ -49,8 +66,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -63,6 +84,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -75,6 +97,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -87,6 +110,7 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; @@ -99,6 +123,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -111,11 +136,38 @@ public function getDescription(): ?string public function setDescription(?string $description): self { + $this->initialized['description'] = true; $this->description = $description; return $this; } + public function getOrganization(): ?string + { + return $this->organization; + } + + public function setOrganization(?string $organization): self + { + $this->initialized['organization'] = true; + $this->organization = $organization; + + return $this; + } + + public function getWorkspace(): ?string + { + return $this->workspace; + } + + public function setWorkspace(?string $workspace): self + { + $this->initialized['workspace'] = true; + $this->workspace = $workspace; + + return $this; + } + /** * @return string[]|null */ @@ -129,6 +181,7 @@ public function getContents(): ?iterable */ public function setContents(?iterable $contents): self { + $this->initialized['contents'] = true; $this->contents = $contents; return $this; diff --git a/src/Model/ConfigurationRead.php b/src/Model/ConfigurationRead.php index cd9e320a..8383965a 100644 --- a/src/Model/ConfigurationRead.php +++ b/src/Model/ConfigurationRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ConfigurationRead +class ConfigurationRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -24,6 +33,14 @@ class ConfigurationRead * @var string|null */ protected $description; + /** + * @var string|null + */ + protected $organization; + /** + * @var string|null + */ + protected $workspace; /** * @var string[]|null */ @@ -36,6 +53,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -48,6 +66,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -60,11 +79,38 @@ public function getDescription(): ?string public function setDescription(?string $description): self { + $this->initialized['description'] = true; $this->description = $description; return $this; } + public function getOrganization(): ?string + { + return $this->organization; + } + + public function setOrganization(?string $organization): self + { + $this->initialized['organization'] = true; + $this->organization = $organization; + + return $this; + } + + public function getWorkspace(): ?string + { + return $this->workspace; + } + + public function setWorkspace(?string $workspace): self + { + $this->initialized['workspace'] = true; + $this->workspace = $workspace; + + return $this; + } + /** * @return string[]|null */ @@ -78,6 +124,7 @@ public function getContents(): ?iterable */ public function setContents(?iterable $contents): self { + $this->initialized['contents'] = true; $this->contents = $contents; return $this; diff --git a/src/Model/ConfigurationRemoveConfigurationValueInput.php b/src/Model/ConfigurationRemoveConfigurationValueInput.php index ea0f004f..95cbe0f2 100644 --- a/src/Model/ConfigurationRemoveConfigurationValueInput.php +++ b/src/Model/ConfigurationRemoveConfigurationValueInput.php @@ -10,43 +10,21 @@ namespace Gyroscops\Api\Model; -class ConfigurationRemoveConfigurationValueInput +class ConfigurationRemoveConfigurationValueInput extends \ArrayObject { /** - * @var mixed|null + * @var array */ - protected $id; + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string[]|null */ protected $contents; - /** - * @var mixed|null - */ - protected $organization; - /** - * @var mixed|null - */ - protected $workspace; - /** - * @var mixed|null - */ - protected $iterator; - - /** - * @return mixed - */ - public function getId() - { - return $this->id; - } - - public function setId(mixed $id): self - { - $this->id = $id; - - return $this; - } /** * @return string[]|null @@ -61,53 +39,9 @@ public function getContents(): ?array */ public function setContents(?array $contents): self { + $this->initialized['contents'] = true; $this->contents = $contents; return $this; } - - /** - * @return mixed - */ - public function getOrganization() - { - return $this->organization; - } - - public function setOrganization(mixed $organization): self - { - $this->organization = $organization; - - return $this; - } - - /** - * @return mixed - */ - public function getWorkspace() - { - return $this->workspace; - } - - public function setWorkspace(mixed $workspace): self - { - $this->workspace = $workspace; - - return $this; - } - - /** - * @return mixed - */ - public function getIterator() - { - return $this->iterator; - } - - public function setIterator(mixed $iterator): self - { - $this->iterator = $iterator; - - return $this; - } } diff --git a/src/Model/ConfigurationRemoveConfigurationValueInputJsonld.php b/src/Model/ConfigurationRemoveConfigurationValueInputJsonld.php index 8ef4a91a..fde13002 100644 --- a/src/Model/ConfigurationRemoveConfigurationValueInputJsonld.php +++ b/src/Model/ConfigurationRemoveConfigurationValueInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ConfigurationRemoveConfigurationValueInputJsonld +class ConfigurationRemoveConfigurationValueInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -24,26 +33,10 @@ class ConfigurationRemoveConfigurationValueInputJsonld * @var string|null */ protected $type; - /** - * @var mixed|null - */ - protected $id2; /** * @var string[]|null */ protected $contents; - /** - * @var mixed|null - */ - protected $organization; - /** - * @var mixed|null - */ - protected $workspace; - /** - * @var TraversableJsonld|null - */ - protected $iterator; /** * @return mixed @@ -53,8 +46,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -67,6 +64,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -79,26 +77,12 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; } - /** - * @return mixed - */ - public function getId2() - { - return $this->id2; - } - - public function setId2(mixed $id2): self - { - $this->id2 = $id2; - - return $this; - } - /** * @return string[]|null */ @@ -112,50 +96,9 @@ public function getContents(): ?array */ public function setContents(?array $contents): self { + $this->initialized['contents'] = true; $this->contents = $contents; return $this; } - - /** - * @return mixed - */ - public function getOrganization() - { - return $this->organization; - } - - public function setOrganization(mixed $organization): self - { - $this->organization = $organization; - - return $this; - } - - /** - * @return mixed - */ - public function getWorkspace() - { - return $this->workspace; - } - - public function setWorkspace(mixed $workspace): self - { - $this->workspace = $workspace; - - return $this; - } - - public function getIterator(): ?TraversableJsonld - { - return $this->iterator; - } - - public function setIterator(?TraversableJsonld $iterator): self - { - $this->iterator = $iterator; - - return $this; - } } diff --git a/src/Model/Context.php b/src/Model/Context.php index 52824ade..fdb32d76 100644 --- a/src/Model/Context.php +++ b/src/Model/Context.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class Context +class Context extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * Returns the step used by this context. * @@ -38,6 +47,7 @@ public function getStep(): ?int */ public function setStep(?int $step): self { + $this->initialized['step'] = true; $this->step = $step; return $this; @@ -56,6 +66,7 @@ public function getFixedScale(): ?bool */ public function setFixedScale(?bool $fixedScale): self { + $this->initialized['fixedScale'] = true; $this->fixedScale = $fixedScale; return $this; diff --git a/src/Model/ContextJsonld.php b/src/Model/ContextJsonld.php index c688c8e7..960d82b7 100644 --- a/src/Model/ContextJsonld.php +++ b/src/Model/ContextJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ContextJsonld +class ContextJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -45,8 +54,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -59,6 +72,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -71,6 +85,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -89,6 +104,7 @@ public function getStep(): ?int */ public function setStep(?int $step): self { + $this->initialized['step'] = true; $this->step = $step; return $this; @@ -107,6 +123,7 @@ public function getFixedScale(): ?bool */ public function setFixedScale(?bool $fixedScale): self { + $this->initialized['fixedScale'] = true; $this->fixedScale = $fixedScale; return $this; diff --git a/src/Model/CreateSecretInput.php b/src/Model/CreateSecretInput.php index a1e8e7c9..0dae3100 100644 --- a/src/Model/CreateSecretInput.php +++ b/src/Model/CreateSecretInput.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class CreateSecretInput +class CreateSecretInput extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -24,18 +33,6 @@ class CreateSecretInput * @var string[]|null */ protected $contents; - /** - * @var mixed|null - */ - protected $organization; - /** - * @var mixed|null - */ - protected $workspace; - /** - * @var mixed|null - */ - protected $iterator; public function getName(): ?string { @@ -44,6 +41,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -56,6 +54,7 @@ public function getDescription(): ?string public function setDescription(?string $description): self { + $this->initialized['description'] = true; $this->description = $description; return $this; @@ -74,53 +73,9 @@ public function getContents(): ?iterable */ public function setContents(?iterable $contents): self { + $this->initialized['contents'] = true; $this->contents = $contents; return $this; } - - /** - * @return mixed - */ - public function getOrganization() - { - return $this->organization; - } - - public function setOrganization(mixed $organization): self - { - $this->organization = $organization; - - return $this; - } - - /** - * @return mixed - */ - public function getWorkspace() - { - return $this->workspace; - } - - public function setWorkspace(mixed $workspace): self - { - $this->workspace = $workspace; - - return $this; - } - - /** - * @return mixed - */ - public function getIterator() - { - return $this->iterator; - } - - public function setIterator(mixed $iterator): self - { - $this->iterator = $iterator; - - return $this; - } } diff --git a/src/Model/CreateSecretInputJsonld.php b/src/Model/CreateSecretInputJsonld.php index 3dd2e12f..b21db8fa 100644 --- a/src/Model/CreateSecretInputJsonld.php +++ b/src/Model/CreateSecretInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class CreateSecretInputJsonld +class CreateSecretInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -36,18 +45,6 @@ class CreateSecretInputJsonld * @var string[]|null */ protected $contents; - /** - * @var mixed|null - */ - protected $organization; - /** - * @var mixed|null - */ - protected $workspace; - /** - * @var TraversableJsonld|null - */ - protected $iterator; /** * @return mixed @@ -57,8 +54,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -83,6 +85,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -95,6 +98,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -107,6 +111,7 @@ public function getDescription(): ?string public function setDescription(?string $description): self { + $this->initialized['description'] = true; $this->description = $description; return $this; @@ -125,50 +130,9 @@ public function getContents(): ?iterable */ public function setContents(?iterable $contents): self { + $this->initialized['contents'] = true; $this->contents = $contents; return $this; } - - /** - * @return mixed - */ - public function getOrganization() - { - return $this->organization; - } - - public function setOrganization(mixed $organization): self - { - $this->organization = $organization; - - return $this; - } - - /** - * @return mixed - */ - public function getWorkspace() - { - return $this->workspace; - } - - public function setWorkspace(mixed $workspace): self - { - $this->workspace = $workspace; - - return $this; - } - - public function getIterator(): ?TraversableJsonld - { - return $this->iterator; - } - - public function setIterator(?TraversableJsonld $iterator): self - { - $this->iterator = $iterator; - - return $this; - } } diff --git a/src/Model/Credentials.php b/src/Model/Credentials.php index 00a88caf..bc35fd96 100644 --- a/src/Model/Credentials.php +++ b/src/Model/Credentials.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class Credentials +class Credentials extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -36,6 +45,7 @@ public function getUsername(): ?string public function setUsername(?string $username): self { + $this->initialized['username'] = true; $this->username = $username; return $this; @@ -48,6 +58,7 @@ public function getPassword(): ?string public function setPassword(?string $password): self { + $this->initialized['password'] = true; $this->password = $password; return $this; @@ -60,6 +71,7 @@ public function getOrganization(): ?string public function setOrganization(?string $organization): self { + $this->initialized['organization'] = true; $this->organization = $organization; return $this; @@ -72,6 +84,7 @@ public function getWorkspace(): ?string public function setWorkspace(?string $workspace): self { + $this->initialized['workspace'] = true; $this->workspace = $workspace; return $this; diff --git a/src/Model/Currency.php b/src/Model/Currency.php index 48f8bb47..4351f6fc 100644 --- a/src/Model/Currency.php +++ b/src/Model/Currency.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class Currency +class Currency extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * The currency code. * @@ -50,6 +59,7 @@ public function getCurrencyCode(): ?string */ public function setCurrencyCode(?string $currencyCode): self { + $this->initialized['currencyCode'] = true; $this->currencyCode = $currencyCode; return $this; @@ -68,6 +78,7 @@ public function getNumericCode(): ?int */ public function setNumericCode(?int $numericCode): self { + $this->initialized['numericCode'] = true; $this->numericCode = $numericCode; return $this; @@ -86,6 +97,7 @@ public function getName(): ?string */ public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -104,6 +116,7 @@ public function getDefaultFractionDigits(): ?int */ public function setDefaultFractionDigits(?int $defaultFractionDigits): self { + $this->initialized['defaultFractionDigits'] = true; $this->defaultFractionDigits = $defaultFractionDigits; return $this; diff --git a/src/Model/CurrencyJsonld.php b/src/Model/CurrencyJsonld.php index 75b991b6..9ef352dc 100644 --- a/src/Model/CurrencyJsonld.php +++ b/src/Model/CurrencyJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class CurrencyJsonld +class CurrencyJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -57,8 +66,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -71,6 +84,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -83,6 +97,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -101,6 +116,7 @@ public function getCurrencyCode(): ?string */ public function setCurrencyCode(?string $currencyCode): self { + $this->initialized['currencyCode'] = true; $this->currencyCode = $currencyCode; return $this; @@ -119,6 +135,7 @@ public function getNumericCode(): ?int */ public function setNumericCode(?int $numericCode): self { + $this->initialized['numericCode'] = true; $this->numericCode = $numericCode; return $this; @@ -137,6 +154,7 @@ public function getName(): ?string */ public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -155,6 +173,7 @@ public function getDefaultFractionDigits(): ?int */ public function setDefaultFractionDigits(?int $defaultFractionDigits): self { + $this->initialized['defaultFractionDigits'] = true; $this->defaultFractionDigits = $defaultFractionDigits; return $this; diff --git a/src/Model/EnvironmentAddMultipleVariableFromConfigurationInput.php b/src/Model/EnvironmentAddMultipleVariableFromConfigurationInput.php index c8bdc923..dcf3c1f8 100644 --- a/src/Model/EnvironmentAddMultipleVariableFromConfigurationInput.php +++ b/src/Model/EnvironmentAddMultipleVariableFromConfigurationInput.php @@ -10,16 +10,21 @@ namespace Gyroscops\Api\Model; -class EnvironmentAddMultipleVariableFromConfigurationInput +class EnvironmentAddMultipleVariableFromConfigurationInput extends \ArrayObject { /** - * @var VariableFromConfigurationInput[]|null + * @var array */ - protected $variables; + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** - * @var mixed|null + * @var VariableFromConfigurationInput[]|null */ - protected $iterator; + protected $variables; /** * @return VariableFromConfigurationInput[]|null @@ -34,23 +39,9 @@ public function getVariables(): ?array */ public function setVariables(?array $variables): self { + $this->initialized['variables'] = true; $this->variables = $variables; return $this; } - - /** - * @return mixed - */ - public function getIterator() - { - return $this->iterator; - } - - public function setIterator(mixed $iterator): self - { - $this->iterator = $iterator; - - return $this; - } } diff --git a/src/Model/EnvironmentAddMultipleVariableFromConfigurationInputJsonld.php b/src/Model/EnvironmentAddMultipleVariableFromConfigurationInputJsonld.php index cb293bf0..37f03948 100644 --- a/src/Model/EnvironmentAddMultipleVariableFromConfigurationInputJsonld.php +++ b/src/Model/EnvironmentAddMultipleVariableFromConfigurationInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class EnvironmentAddMultipleVariableFromConfigurationInputJsonld +class EnvironmentAddMultipleVariableFromConfigurationInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -28,10 +37,6 @@ class EnvironmentAddMultipleVariableFromConfigurationInputJsonld * @var VariableFromConfigurationInputJsonld[]|null */ protected $variables; - /** - * @var TraversableJsonld|null - */ - protected $iterator; /** * @return mixed @@ -41,8 +46,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -55,6 +64,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -67,6 +77,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -85,20 +96,9 @@ public function getVariables(): ?array */ public function setVariables(?array $variables): self { + $this->initialized['variables'] = true; $this->variables = $variables; return $this; } - - public function getIterator(): ?TraversableJsonld - { - return $this->iterator; - } - - public function setIterator(?TraversableJsonld $iterator): self - { - $this->iterator = $iterator; - - return $this; - } } diff --git a/src/Model/EnvironmentAddMultipleVariableFromConstantInput.php b/src/Model/EnvironmentAddMultipleVariableFromConstantInput.php index 61bbd8b3..ab85ab87 100644 --- a/src/Model/EnvironmentAddMultipleVariableFromConstantInput.php +++ b/src/Model/EnvironmentAddMultipleVariableFromConstantInput.php @@ -10,16 +10,21 @@ namespace Gyroscops\Api\Model; -class EnvironmentAddMultipleVariableFromConstantInput +class EnvironmentAddMultipleVariableFromConstantInput extends \ArrayObject { /** - * @var VariableFromConstantInput[]|null + * @var array */ - protected $variables; + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** - * @var mixed|null + * @var VariableFromConstantInput[]|null */ - protected $iterator; + protected $variables; /** * @return VariableFromConstantInput[]|null @@ -34,23 +39,9 @@ public function getVariables(): ?array */ public function setVariables(?array $variables): self { + $this->initialized['variables'] = true; $this->variables = $variables; return $this; } - - /** - * @return mixed - */ - public function getIterator() - { - return $this->iterator; - } - - public function setIterator(mixed $iterator): self - { - $this->iterator = $iterator; - - return $this; - } } diff --git a/src/Model/EnvironmentAddMultipleVariableFromConstantInputJsonld.php b/src/Model/EnvironmentAddMultipleVariableFromConstantInputJsonld.php index caac2227..af4e15f1 100644 --- a/src/Model/EnvironmentAddMultipleVariableFromConstantInputJsonld.php +++ b/src/Model/EnvironmentAddMultipleVariableFromConstantInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class EnvironmentAddMultipleVariableFromConstantInputJsonld +class EnvironmentAddMultipleVariableFromConstantInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -28,10 +37,6 @@ class EnvironmentAddMultipleVariableFromConstantInputJsonld * @var VariableFromConstantInputJsonld[]|null */ protected $variables; - /** - * @var TraversableJsonld|null - */ - protected $iterator; /** * @return mixed @@ -41,8 +46,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -55,6 +64,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -67,6 +77,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -85,20 +96,9 @@ public function getVariables(): ?array */ public function setVariables(?array $variables): self { + $this->initialized['variables'] = true; $this->variables = $variables; return $this; } - - public function getIterator(): ?TraversableJsonld - { - return $this->iterator; - } - - public function setIterator(?TraversableJsonld $iterator): self - { - $this->iterator = $iterator; - - return $this; - } } diff --git a/src/Model/EnvironmentAddMultipleVariableFromSecretInput.php b/src/Model/EnvironmentAddMultipleVariableFromSecretInput.php index cfe18a61..668f71af 100644 --- a/src/Model/EnvironmentAddMultipleVariableFromSecretInput.php +++ b/src/Model/EnvironmentAddMultipleVariableFromSecretInput.php @@ -10,16 +10,21 @@ namespace Gyroscops\Api\Model; -class EnvironmentAddMultipleVariableFromSecretInput +class EnvironmentAddMultipleVariableFromSecretInput extends \ArrayObject { /** - * @var VariableFromSecretInput[]|null + * @var array */ - protected $variables; + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** - * @var mixed|null + * @var VariableFromSecretInput[]|null */ - protected $iterator; + protected $variables; /** * @return VariableFromSecretInput[]|null @@ -34,23 +39,9 @@ public function getVariables(): ?array */ public function setVariables(?array $variables): self { + $this->initialized['variables'] = true; $this->variables = $variables; return $this; } - - /** - * @return mixed - */ - public function getIterator() - { - return $this->iterator; - } - - public function setIterator(mixed $iterator): self - { - $this->iterator = $iterator; - - return $this; - } } diff --git a/src/Model/EnvironmentAddMultipleVariableFromSecretInputJsonld.php b/src/Model/EnvironmentAddMultipleVariableFromSecretInputJsonld.php index 072d4117..4549d19f 100644 --- a/src/Model/EnvironmentAddMultipleVariableFromSecretInputJsonld.php +++ b/src/Model/EnvironmentAddMultipleVariableFromSecretInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class EnvironmentAddMultipleVariableFromSecretInputJsonld +class EnvironmentAddMultipleVariableFromSecretInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -28,10 +37,6 @@ class EnvironmentAddMultipleVariableFromSecretInputJsonld * @var VariableFromSecretInputJsonld[]|null */ protected $variables; - /** - * @var TraversableJsonld|null - */ - protected $iterator; /** * @return mixed @@ -41,8 +46,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -55,6 +64,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -67,6 +77,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -85,20 +96,9 @@ public function getVariables(): ?array */ public function setVariables(?array $variables): self { + $this->initialized['variables'] = true; $this->variables = $variables; return $this; } - - public function getIterator(): ?TraversableJsonld - { - return $this->iterator; - } - - public function setIterator(?TraversableJsonld $iterator): self - { - $this->iterator = $iterator; - - return $this; - } } diff --git a/src/Model/EnvironmentConfigurationsGetLdjsonResponse200.php b/src/Model/EnvironmentConfigurationsGetLdjsonResponse200.php new file mode 100644 index 00000000..1e343128 --- /dev/null +++ b/src/Model/EnvironmentConfigurationsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var ConfigurationJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var EnvironmentConfigurationsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var EnvironmentConfigurationsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return ConfigurationJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param ConfigurationJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?EnvironmentConfigurationsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?EnvironmentConfigurationsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?EnvironmentConfigurationsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?EnvironmentConfigurationsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/EnvironmentConfigurationsGetLdjsonResponse200HydraSearch.php b/src/Model/EnvironmentConfigurationsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..ed50cd5d --- /dev/null +++ b/src/Model/EnvironmentConfigurationsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var EnvironmentConfigurationsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return EnvironmentConfigurationsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param EnvironmentConfigurationsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/EnvironmentConfigurationsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/EnvironmentConfigurationsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..54e727ef --- /dev/null +++ b/src/Model/EnvironmentConfigurationsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/EnvironmentConfigurationsGetLdjsonResponse200HydraView.php b/src/Model/EnvironmentConfigurationsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..b40e051a --- /dev/null +++ b/src/Model/EnvironmentConfigurationsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/EnvironmentConfigurationsGetResponse200.php b/src/Model/EnvironmentConfigurationsGetResponse200.php deleted file mode 100644 index 01a6d7db..00000000 --- a/src/Model/EnvironmentConfigurationsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param ConfigurationJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?EnvironmentConfigurationsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?EnvironmentConfigurationsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?EnvironmentConfigurationsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?EnvironmentConfigurationsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/EnvironmentConfigurationsGetResponse200HydraSearch.php b/src/Model/EnvironmentConfigurationsGetResponse200HydraSearch.php deleted file mode 100644 index 3b22dfac..00000000 --- a/src/Model/EnvironmentConfigurationsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return EnvironmentConfigurationsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param EnvironmentConfigurationsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/EnvironmentConfigurationsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/EnvironmentConfigurationsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 75935359..00000000 --- a/src/Model/EnvironmentConfigurationsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/EnvironmentConfigurationsGetResponse200HydraView.php b/src/Model/EnvironmentConfigurationsGetResponse200HydraView.php deleted file mode 100644 index c2316b8e..00000000 --- a/src/Model/EnvironmentConfigurationsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/EnvironmentCreateEnvironmentInput.php b/src/Model/EnvironmentCreateEnvironmentInput.php index 95074061..2e38719f 100644 --- a/src/Model/EnvironmentCreateEnvironmentInput.php +++ b/src/Model/EnvironmentCreateEnvironmentInput.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class EnvironmentCreateEnvironmentInput +class EnvironmentCreateEnvironmentInput extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -24,10 +33,6 @@ class EnvironmentCreateEnvironmentInput * @var string[]|null */ protected $variables; - /** - * @var mixed|null - */ - protected $iterator; public function getName(): ?string { @@ -36,6 +41,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -48,6 +54,7 @@ public function getDescription(): ?string public function setDescription(?string $description): self { + $this->initialized['description'] = true; $this->description = $description; return $this; @@ -66,23 +73,9 @@ public function getVariables(): ?array */ public function setVariables(?array $variables): self { + $this->initialized['variables'] = true; $this->variables = $variables; return $this; } - - /** - * @return mixed - */ - public function getIterator() - { - return $this->iterator; - } - - public function setIterator(mixed $iterator): self - { - $this->iterator = $iterator; - - return $this; - } } diff --git a/src/Model/EnvironmentCreateEnvironmentInputJsonld.php b/src/Model/EnvironmentCreateEnvironmentInputJsonld.php index 2f100eac..56749375 100644 --- a/src/Model/EnvironmentCreateEnvironmentInputJsonld.php +++ b/src/Model/EnvironmentCreateEnvironmentInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class EnvironmentCreateEnvironmentInputJsonld +class EnvironmentCreateEnvironmentInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -36,10 +45,6 @@ class EnvironmentCreateEnvironmentInputJsonld * @var string[]|null */ protected $variables; - /** - * @var TraversableJsonld|null - */ - protected $iterator; /** * @return mixed @@ -49,8 +54,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -63,6 +72,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -75,6 +85,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -87,6 +98,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -99,6 +111,7 @@ public function getDescription(): ?string public function setDescription(?string $description): self { + $this->initialized['description'] = true; $this->description = $description; return $this; @@ -117,20 +130,9 @@ public function getVariables(): ?array */ public function setVariables(?array $variables): self { + $this->initialized['variables'] = true; $this->variables = $variables; return $this; } - - public function getIterator(): ?TraversableJsonld - { - return $this->iterator; - } - - public function setIterator(?TraversableJsonld $iterator): self - { - $this->iterator = $iterator; - - return $this; - } } diff --git a/src/Model/EnvironmentEnvironmentsGetLdjsonResponse200.php b/src/Model/EnvironmentEnvironmentsGetLdjsonResponse200.php new file mode 100644 index 00000000..77fc4efd --- /dev/null +++ b/src/Model/EnvironmentEnvironmentsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var EnvironmentJsonldRead[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var EnvironmentEnvironmentsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var EnvironmentEnvironmentsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return EnvironmentJsonldRead[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param EnvironmentJsonldRead[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?EnvironmentEnvironmentsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?EnvironmentEnvironmentsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?EnvironmentEnvironmentsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?EnvironmentEnvironmentsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/EnvironmentEnvironmentsGetLdjsonResponse200HydraSearch.php b/src/Model/EnvironmentEnvironmentsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..bc898ead --- /dev/null +++ b/src/Model/EnvironmentEnvironmentsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var EnvironmentEnvironmentsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return EnvironmentEnvironmentsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param EnvironmentEnvironmentsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/EnvironmentEnvironmentsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/EnvironmentEnvironmentsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..cea0a256 --- /dev/null +++ b/src/Model/EnvironmentEnvironmentsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/EnvironmentEnvironmentsGetLdjsonResponse200HydraView.php b/src/Model/EnvironmentEnvironmentsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..79458796 --- /dev/null +++ b/src/Model/EnvironmentEnvironmentsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/EnvironmentEnvironmentsGetResponse200.php b/src/Model/EnvironmentEnvironmentsGetResponse200.php deleted file mode 100644 index 82fae45f..00000000 --- a/src/Model/EnvironmentEnvironmentsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param EnvironmentJsonldRead[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?EnvironmentEnvironmentsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?EnvironmentEnvironmentsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?EnvironmentEnvironmentsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?EnvironmentEnvironmentsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/EnvironmentEnvironmentsGetResponse200HydraSearch.php b/src/Model/EnvironmentEnvironmentsGetResponse200HydraSearch.php deleted file mode 100644 index 47e2a473..00000000 --- a/src/Model/EnvironmentEnvironmentsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return EnvironmentEnvironmentsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param EnvironmentEnvironmentsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/EnvironmentEnvironmentsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/EnvironmentEnvironmentsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index d9fe5d05..00000000 --- a/src/Model/EnvironmentEnvironmentsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/EnvironmentEnvironmentsGetResponse200HydraView.php b/src/Model/EnvironmentEnvironmentsGetResponse200HydraView.php deleted file mode 100644 index 6d174f0b..00000000 --- a/src/Model/EnvironmentEnvironmentsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200.php b/src/Model/EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200.php new file mode 100644 index 00000000..684e19be --- /dev/null +++ b/src/Model/EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var VariableJsonldRead[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return VariableJsonldRead[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param VariableJsonldRead[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraSearch.php b/src/Model/EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..a6a67933 --- /dev/null +++ b/src/Model/EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..4254acd5 --- /dev/null +++ b/src/Model/EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraView.php b/src/Model/EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..55c97df8 --- /dev/null +++ b/src/Model/EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/EnvironmentEnvironmentsIdVariablesGetResponse200.php b/src/Model/EnvironmentEnvironmentsIdVariablesGetResponse200.php deleted file mode 100644 index b8992206..00000000 --- a/src/Model/EnvironmentEnvironmentsIdVariablesGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param VariableJsonldRead[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?EnvironmentEnvironmentsIdVariablesGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?EnvironmentEnvironmentsIdVariablesGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearch.php b/src/Model/EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearch.php deleted file mode 100644 index df879a83..00000000 --- a/src/Model/EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchHydraMappingItem.php b/src/Model/EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 63104397..00000000 --- a/src/Model/EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/EnvironmentEnvironmentsIdVariablesGetResponse200HydraView.php b/src/Model/EnvironmentEnvironmentsIdVariablesGetResponse200HydraView.php deleted file mode 100644 index fdd65564..00000000 --- a/src/Model/EnvironmentEnvironmentsIdVariablesGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/EnvironmentJsonldRead.php b/src/Model/EnvironmentJsonldRead.php index ce55616d..94508b3e 100644 --- a/src/Model/EnvironmentJsonldRead.php +++ b/src/Model/EnvironmentJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class EnvironmentJsonldRead +class EnvironmentJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -53,8 +62,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -67,6 +80,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -79,6 +93,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -91,6 +106,7 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; @@ -103,6 +119,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -115,6 +132,7 @@ public function getDescription(): ?string public function setDescription(?string $description): self { + $this->initialized['description'] = true; $this->description = $description; return $this; @@ -127,6 +145,7 @@ public function getOrganization(): ?string public function setOrganization(?string $organization): self { + $this->initialized['organization'] = true; $this->organization = $organization; return $this; @@ -139,6 +158,7 @@ public function getWorkspace(): ?string public function setWorkspace(?string $workspace): self { + $this->initialized['workspace'] = true; $this->workspace = $workspace; return $this; diff --git a/src/Model/EnvironmentJsonldWrite.php b/src/Model/EnvironmentJsonldWrite.php index a4cfb558..d0ed487e 100644 --- a/src/Model/EnvironmentJsonldWrite.php +++ b/src/Model/EnvironmentJsonldWrite.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class EnvironmentJsonldWrite +class EnvironmentJsonldWrite extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -41,8 +50,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -55,6 +68,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -67,6 +81,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -79,6 +94,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -91,6 +107,7 @@ public function getDescription(): ?string public function setDescription(?string $description): self { + $this->initialized['description'] = true; $this->description = $description; return $this; diff --git a/src/Model/EnvironmentRead.php b/src/Model/EnvironmentRead.php index 40fcbf27..44986828 100644 --- a/src/Model/EnvironmentRead.php +++ b/src/Model/EnvironmentRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class EnvironmentRead +class EnvironmentRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -40,6 +49,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -52,6 +62,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -64,6 +75,7 @@ public function getDescription(): ?string public function setDescription(?string $description): self { + $this->initialized['description'] = true; $this->description = $description; return $this; @@ -76,6 +88,7 @@ public function getOrganization(): ?string public function setOrganization(?string $organization): self { + $this->initialized['organization'] = true; $this->organization = $organization; return $this; @@ -88,6 +101,7 @@ public function getWorkspace(): ?string public function setWorkspace(?string $workspace): self { + $this->initialized['workspace'] = true; $this->workspace = $workspace; return $this; diff --git a/src/Model/EnvironmentSecretsGetLdjsonResponse200.php b/src/Model/EnvironmentSecretsGetLdjsonResponse200.php new file mode 100644 index 00000000..1db63727 --- /dev/null +++ b/src/Model/EnvironmentSecretsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var SecretJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var EnvironmentSecretsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var EnvironmentSecretsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return SecretJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param SecretJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?EnvironmentSecretsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?EnvironmentSecretsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?EnvironmentSecretsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?EnvironmentSecretsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/EnvironmentSecretsGetLdjsonResponse200HydraSearch.php b/src/Model/EnvironmentSecretsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..dc7ae758 --- /dev/null +++ b/src/Model/EnvironmentSecretsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var EnvironmentSecretsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return EnvironmentSecretsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param EnvironmentSecretsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/EnvironmentSecretsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/EnvironmentSecretsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..618a1706 --- /dev/null +++ b/src/Model/EnvironmentSecretsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/EnvironmentSecretsGetLdjsonResponse200HydraView.php b/src/Model/EnvironmentSecretsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..cdfd1836 --- /dev/null +++ b/src/Model/EnvironmentSecretsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/EnvironmentSecretsGetResponse200.php b/src/Model/EnvironmentSecretsGetResponse200.php deleted file mode 100644 index 16b21f58..00000000 --- a/src/Model/EnvironmentSecretsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param SecretJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?EnvironmentSecretsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?EnvironmentSecretsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?EnvironmentSecretsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?EnvironmentSecretsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/EnvironmentSecretsGetResponse200HydraSearch.php b/src/Model/EnvironmentSecretsGetResponse200HydraSearch.php deleted file mode 100644 index fd4011a0..00000000 --- a/src/Model/EnvironmentSecretsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return EnvironmentSecretsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param EnvironmentSecretsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/EnvironmentSecretsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/EnvironmentSecretsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 69a9d82b..00000000 --- a/src/Model/EnvironmentSecretsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/EnvironmentSecretsGetResponse200HydraView.php b/src/Model/EnvironmentSecretsGetResponse200HydraView.php deleted file mode 100644 index d492749a..00000000 --- a/src/Model/EnvironmentSecretsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/EnvironmentWrite.php b/src/Model/EnvironmentWrite.php index 27abf78f..4994fb19 100644 --- a/src/Model/EnvironmentWrite.php +++ b/src/Model/EnvironmentWrite.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class EnvironmentWrite +class EnvironmentWrite extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -28,6 +37,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -40,6 +50,7 @@ public function getDescription(): ?string public function setDescription(?string $description): self { + $this->initialized['description'] = true; $this->description = $description; return $this; diff --git a/src/Model/ExecutionAction.php b/src/Model/ExecutionAction.php index bc7c3736..5ddc0585 100644 --- a/src/Model/ExecutionAction.php +++ b/src/Model/ExecutionAction.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ExecutionAction +class ExecutionAction extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -28,6 +37,7 @@ public function getExecution(): ?string public function setExecution(?string $execution): self { + $this->initialized['execution'] = true; $this->execution = $execution; return $this; @@ -40,6 +50,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; diff --git a/src/Model/ExecutionActionJsonld.php b/src/Model/ExecutionActionJsonld.php index 1586ab48..71607d14 100644 --- a/src/Model/ExecutionActionJsonld.php +++ b/src/Model/ExecutionActionJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ExecutionActionJsonld +class ExecutionActionJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -41,8 +50,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -55,6 +68,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -67,6 +81,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -79,6 +94,7 @@ public function getExecution(): ?string public function setExecution(?string $execution): self { + $this->initialized['execution'] = true; $this->execution = $execution; return $this; @@ -91,6 +107,7 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; diff --git a/src/Model/ExecutionDeclarePipelineExecutionCommandInput.php b/src/Model/ExecutionDeclarePipelineExecutionCommandInput.php index af1ff4c0..5f264049 100644 --- a/src/Model/ExecutionDeclarePipelineExecutionCommandInput.php +++ b/src/Model/ExecutionDeclarePipelineExecutionCommandInput.php @@ -10,36 +10,53 @@ namespace Gyroscops\Api\Model; -class ExecutionDeclarePipelineExecutionCommandInput +class ExecutionDeclarePipelineExecutionCommandInput extends \ArrayObject { /** - * @var string|null + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } + /** + * @var mixed[]|null */ protected $schedule; /** - * @var string|null + * @var Pipeline|null */ protected $pipeline; - public function getSchedule(): ?string + /** + * @return mixed[]|null + */ + public function getSchedule(): ?iterable { return $this->schedule; } - public function setSchedule(?string $schedule): self + /** + * @param mixed[]|null $schedule + */ + public function setSchedule(?iterable $schedule): self { + $this->initialized['schedule'] = true; $this->schedule = $schedule; return $this; } - public function getPipeline(): ?string + public function getPipeline(): ?Pipeline { return $this->pipeline; } - public function setPipeline(?string $pipeline): self + public function setPipeline(?Pipeline $pipeline): self { + $this->initialized['pipeline'] = true; $this->pipeline = $pipeline; return $this; diff --git a/src/Model/ExecutionDeclarePipelineExecutionCommandInputJsonld.php b/src/Model/ExecutionDeclarePipelineExecutionCommandInputJsonld.php index b9ae0347..4973c6e5 100644 --- a/src/Model/ExecutionDeclarePipelineExecutionCommandInputJsonld.php +++ b/src/Model/ExecutionDeclarePipelineExecutionCommandInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ExecutionDeclarePipelineExecutionCommandInputJsonld +class ExecutionDeclarePipelineExecutionCommandInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -25,11 +34,11 @@ class ExecutionDeclarePipelineExecutionCommandInputJsonld */ protected $type; /** - * @var string|null + * @var ScheduleJsonld|null */ protected $schedule; /** - * @var string|null + * @var PipelineJsonld|null */ protected $pipeline; @@ -41,8 +50,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -55,6 +68,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -67,30 +81,33 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; } - public function getSchedule(): ?string + public function getSchedule(): ?ScheduleJsonld { return $this->schedule; } - public function setSchedule(?string $schedule): self + public function setSchedule(?ScheduleJsonld $schedule): self { + $this->initialized['schedule'] = true; $this->schedule = $schedule; return $this; } - public function getPipeline(): ?string + public function getPipeline(): ?PipelineJsonld { return $this->pipeline; } - public function setPipeline(?string $pipeline): self + public function setPipeline(?PipelineJsonld $pipeline): self { + $this->initialized['pipeline'] = true; $this->pipeline = $pipeline; return $this; diff --git a/src/Model/ExecutionDeclarePipelineExecutionCommandJsonldRead.php b/src/Model/ExecutionDeclarePipelineExecutionCommandJsonldRead.php index d99e4e29..5546fd53 100644 --- a/src/Model/ExecutionDeclarePipelineExecutionCommandJsonldRead.php +++ b/src/Model/ExecutionDeclarePipelineExecutionCommandJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ExecutionDeclarePipelineExecutionCommandJsonldRead +class ExecutionDeclarePipelineExecutionCommandJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/ExecutionFinishPipelineExecutionCommandInputJsonld.php b/src/Model/ExecutionFinishPipelineExecutionCommandInputJsonld.php deleted file mode 100644 index dc48f836..00000000 --- a/src/Model/ExecutionFinishPipelineExecutionCommandInputJsonld.php +++ /dev/null @@ -1,66 +0,0 @@ -context; - } - - public function setContext(mixed $context): self - { - $this->context = $context; - - return $this; - } - - public function getId(): ?string - { - return $this->id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } -} diff --git a/src/Model/ExecutionFinishPipelineExecutionCommandJsonldRead.php b/src/Model/ExecutionFinishPipelineExecutionCommandJsonldRead.php deleted file mode 100644 index 10202b6d..00000000 --- a/src/Model/ExecutionFinishPipelineExecutionCommandJsonldRead.php +++ /dev/null @@ -1,66 +0,0 @@ -context; - } - - public function setContext(mixed $context): self - { - $this->context = $context; - - return $this; - } - - public function getId(): ?string - { - return $this->id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } -} diff --git a/src/Model/ExecutionId.php b/src/Model/ExecutionId.php new file mode 100644 index 00000000..036b0992 --- /dev/null +++ b/src/Model/ExecutionId.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var bool|null + */ + protected $nil; + + public function getNil(): ?bool + { + return $this->nil; + } + + public function setNil(?bool $nil): self + { + $this->initialized['nil'] = true; + $this->nil = $nil; + + return $this; + } +} diff --git a/src/Model/ExecutionIdJsonld.php b/src/Model/ExecutionIdJsonld.php new file mode 100644 index 00000000..5df1c323 --- /dev/null +++ b/src/Model/ExecutionIdJsonld.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var bool|null + */ + protected $nil; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getNil(): ?bool + { + return $this->nil; + } + + public function setNil(?bool $nil): self + { + $this->initialized['nil'] = true; + $this->nil = $nil; + + return $this; + } +} diff --git a/src/Model/ExecutionInterruptPipelineExecutionCommandInputJsonld.php b/src/Model/ExecutionInterruptPipelineExecutionCommandInputJsonld.php index 293ca535..15cdc3fb 100644 --- a/src/Model/ExecutionInterruptPipelineExecutionCommandInputJsonld.php +++ b/src/Model/ExecutionInterruptPipelineExecutionCommandInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ExecutionInterruptPipelineExecutionCommandInputJsonld +class ExecutionInterruptPipelineExecutionCommandInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/ExecutionInterruptPipelineExecutionCommandJsonldRead.php b/src/Model/ExecutionInterruptPipelineExecutionCommandJsonldRead.php index dc9c51a9..b970ff36 100644 --- a/src/Model/ExecutionInterruptPipelineExecutionCommandJsonldRead.php +++ b/src/Model/ExecutionInterruptPipelineExecutionCommandJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ExecutionInterruptPipelineExecutionCommandJsonldRead +class ExecutionInterruptPipelineExecutionCommandJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/ExecutionJsonldRead.php b/src/Model/ExecutionJsonldRead.php index 5fe7ed03..8544fcdd 100644 --- a/src/Model/ExecutionJsonldRead.php +++ b/src/Model/ExecutionJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ExecutionJsonldRead +class ExecutionJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -72,6 +81,10 @@ class ExecutionJsonldRead * @var string|null */ protected $reason; + /** + * @var int|null + */ + protected $currentVersion; public function getId(): ?string { @@ -80,6 +93,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -92,6 +106,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -105,8 +120,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -119,6 +138,7 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; @@ -131,6 +151,7 @@ public function getCode(): ?string public function setCode(?string $code): self { + $this->initialized['code'] = true; $this->code = $code; return $this; @@ -143,6 +164,7 @@ public function getStatus(): ?string public function setStatus(?string $status): self { + $this->initialized['status'] = true; $this->status = $status; return $this; @@ -155,6 +177,7 @@ public function getErrors(): ?int public function setErrors(?int $errors): self { + $this->initialized['errors'] = true; $this->errors = $errors; return $this; @@ -167,6 +190,7 @@ public function getScheduledAt(): ?\DateTime public function setScheduledAt(?\DateTime $scheduledAt): self { + $this->initialized['scheduledAt'] = true; $this->scheduledAt = $scheduledAt; return $this; @@ -179,6 +203,7 @@ public function getStartedAt(): ?\DateTime public function setStartedAt(?\DateTime $startedAt): self { + $this->initialized['startedAt'] = true; $this->startedAt = $startedAt; return $this; @@ -191,6 +216,7 @@ public function getFinishedAt(): ?\DateTime public function setFinishedAt(?\DateTime $finishedAt): self { + $this->initialized['finishedAt'] = true; $this->finishedAt = $finishedAt; return $this; @@ -203,6 +229,7 @@ public function getInterruptedAt(): ?\DateTime public function setInterruptedAt(?\DateTime $interruptedAt): self { + $this->initialized['interruptedAt'] = true; $this->interruptedAt = $interruptedAt; return $this; @@ -215,6 +242,7 @@ public function getResumedAt(): ?\DateTime public function setResumedAt(?\DateTime $resumedAt): self { + $this->initialized['resumedAt'] = true; $this->resumedAt = $resumedAt; return $this; @@ -227,6 +255,7 @@ public function getUpdatedAt(): ?\DateTime public function setUpdatedAt(?\DateTime $updatedAt): self { + $this->initialized['updatedAt'] = true; $this->updatedAt = $updatedAt; return $this; @@ -239,6 +268,7 @@ public function getTerminatedAt(): ?\DateTime public function setTerminatedAt(?\DateTime $terminatedAt): self { + $this->initialized['terminatedAt'] = true; $this->terminatedAt = $terminatedAt; return $this; @@ -251,8 +281,22 @@ public function getReason(): ?string public function setReason(?string $reason): self { + $this->initialized['reason'] = true; $this->reason = $reason; return $this; } + + public function getCurrentVersion(): ?int + { + return $this->currentVersion; + } + + public function setCurrentVersion(?int $currentVersion): self + { + $this->initialized['currentVersion'] = true; + $this->currentVersion = $currentVersion; + + return $this; + } } diff --git a/src/Model/ExecutionPipeline.php b/src/Model/ExecutionPipeline.php index 1a7cc706..b1d4ca31 100644 --- a/src/Model/ExecutionPipeline.php +++ b/src/Model/ExecutionPipeline.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ExecutionPipeline +class ExecutionPipeline extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -32,6 +41,7 @@ public function getExecution(): ?string public function setExecution(?string $execution): self { + $this->initialized['execution'] = true; $this->execution = $execution; return $this; @@ -44,6 +54,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -62,6 +73,7 @@ public function getSteps(): ?array */ public function setSteps(?array $steps): self { + $this->initialized['steps'] = true; $this->steps = $steps; return $this; diff --git a/src/Model/ExecutionPipelineJob.php b/src/Model/ExecutionPipelineJob.php index 85464cad..52819830 100644 --- a/src/Model/ExecutionPipelineJob.php +++ b/src/Model/ExecutionPipelineJob.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ExecutionPipelineJob +class ExecutionPipelineJob extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -32,6 +41,7 @@ public function getJob(): ?string public function setJob(?string $job): self { + $this->initialized['job'] = true; $this->job = $job; return $this; @@ -44,6 +54,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -62,6 +73,7 @@ public function getSteps(): ?array */ public function setSteps(?array $steps): self { + $this->initialized['steps'] = true; $this->steps = $steps; return $this; diff --git a/src/Model/ExecutionPipelineJobJsonld.php b/src/Model/ExecutionPipelineJobJsonld.php index 1c3201ab..75c3f860 100644 --- a/src/Model/ExecutionPipelineJobJsonld.php +++ b/src/Model/ExecutionPipelineJobJsonld.php @@ -10,12 +10,17 @@ namespace Gyroscops\Api\Model; -class ExecutionPipelineJobJsonld +class ExecutionPipelineJobJsonld extends \ArrayObject { /** - * @var mixed|null + * @var array */ - protected $context; + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -24,6 +29,10 @@ class ExecutionPipelineJobJsonld * @var string|null */ protected $type; + /** + * @var mixed|null + */ + protected $context; /** * @var string|null */ @@ -37,21 +46,6 @@ class ExecutionPipelineJobJsonld */ protected $steps; - /** - * @return mixed - */ - public function getContext() - { - return $this->context; - } - - public function setContext(mixed $context): self - { - $this->context = $context; - - return $this; - } - public function getId(): ?string { return $this->id; @@ -59,6 +53,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -71,11 +66,31 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; } + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + public function getJob(): ?string { return $this->job; @@ -83,6 +98,7 @@ public function getJob(): ?string public function setJob(?string $job): self { + $this->initialized['job'] = true; $this->job = $job; return $this; @@ -95,6 +111,7 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; @@ -113,6 +130,7 @@ public function getSteps(): ?array */ public function setSteps(?array $steps): self { + $this->initialized['steps'] = true; $this->steps = $steps; return $this; diff --git a/src/Model/ExecutionPipelineJsonld.php b/src/Model/ExecutionPipelineJsonld.php index 7e92e99d..983b1845 100644 --- a/src/Model/ExecutionPipelineJsonld.php +++ b/src/Model/ExecutionPipelineJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ExecutionPipelineJsonld +class ExecutionPipelineJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -44,6 +53,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -56,6 +66,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -69,8 +80,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -83,6 +98,7 @@ public function getExecution(): ?string public function setExecution(?string $execution): self { + $this->initialized['execution'] = true; $this->execution = $execution; return $this; @@ -95,6 +111,7 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; @@ -113,6 +130,7 @@ public function getSteps(): ?array */ public function setSteps(?array $steps): self { + $this->initialized['steps'] = true; $this->steps = $steps; return $this; diff --git a/src/Model/ExecutionPipelineStep.php b/src/Model/ExecutionPipelineStep.php index 1498bba6..07d71234 100644 --- a/src/Model/ExecutionPipelineStep.php +++ b/src/Model/ExecutionPipelineStep.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ExecutionPipelineStep +class ExecutionPipelineStep extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -32,6 +41,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -44,6 +54,7 @@ public function getPipeline(): ?AbstractPipeline public function setPipeline(?AbstractPipeline $pipeline): self { + $this->initialized['pipeline'] = true; $this->pipeline = $pipeline; return $this; @@ -62,6 +73,7 @@ public function getMetrics(): ?array */ public function setMetrics(?array $metrics): self { + $this->initialized['metrics'] = true; $this->metrics = $metrics; return $this; diff --git a/src/Model/ExecutionPipelineStepJsonld.php b/src/Model/ExecutionPipelineStepJsonld.php index 1f319438..f1dde189 100644 --- a/src/Model/ExecutionPipelineStepJsonld.php +++ b/src/Model/ExecutionPipelineStepJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ExecutionPipelineStepJsonld +class ExecutionPipelineStepJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -44,6 +53,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -56,6 +66,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -69,8 +80,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -83,6 +98,7 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; @@ -95,6 +111,7 @@ public function getPipeline(): ?AbstractPipelineJsonld public function setPipeline(?AbstractPipelineJsonld $pipeline): self { + $this->initialized['pipeline'] = true; $this->pipeline = $pipeline; return $this; @@ -113,6 +130,7 @@ public function getMetrics(): ?array */ public function setMetrics(?array $metrics): self { + $this->initialized['metrics'] = true; $this->metrics = $metrics; return $this; diff --git a/src/Model/ExecutionRead.php b/src/Model/ExecutionRead.php index 2796549b..08afb938 100644 --- a/src/Model/ExecutionRead.php +++ b/src/Model/ExecutionRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ExecutionRead +class ExecutionRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -60,6 +69,10 @@ class ExecutionRead * @var string|null */ protected $reason; + /** + * @var int|null + */ + protected $currentVersion; public function getId(): ?string { @@ -68,6 +81,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -80,6 +94,7 @@ public function getCode(): ?string public function setCode(?string $code): self { + $this->initialized['code'] = true; $this->code = $code; return $this; @@ -92,6 +107,7 @@ public function getStatus(): ?string public function setStatus(?string $status): self { + $this->initialized['status'] = true; $this->status = $status; return $this; @@ -104,6 +120,7 @@ public function getErrors(): ?int public function setErrors(?int $errors): self { + $this->initialized['errors'] = true; $this->errors = $errors; return $this; @@ -116,6 +133,7 @@ public function getScheduledAt(): ?\DateTime public function setScheduledAt(?\DateTime $scheduledAt): self { + $this->initialized['scheduledAt'] = true; $this->scheduledAt = $scheduledAt; return $this; @@ -128,6 +146,7 @@ public function getStartedAt(): ?\DateTime public function setStartedAt(?\DateTime $startedAt): self { + $this->initialized['startedAt'] = true; $this->startedAt = $startedAt; return $this; @@ -140,6 +159,7 @@ public function getFinishedAt(): ?\DateTime public function setFinishedAt(?\DateTime $finishedAt): self { + $this->initialized['finishedAt'] = true; $this->finishedAt = $finishedAt; return $this; @@ -152,6 +172,7 @@ public function getInterruptedAt(): ?\DateTime public function setInterruptedAt(?\DateTime $interruptedAt): self { + $this->initialized['interruptedAt'] = true; $this->interruptedAt = $interruptedAt; return $this; @@ -164,6 +185,7 @@ public function getResumedAt(): ?\DateTime public function setResumedAt(?\DateTime $resumedAt): self { + $this->initialized['resumedAt'] = true; $this->resumedAt = $resumedAt; return $this; @@ -176,6 +198,7 @@ public function getUpdatedAt(): ?\DateTime public function setUpdatedAt(?\DateTime $updatedAt): self { + $this->initialized['updatedAt'] = true; $this->updatedAt = $updatedAt; return $this; @@ -188,6 +211,7 @@ public function getTerminatedAt(): ?\DateTime public function setTerminatedAt(?\DateTime $terminatedAt): self { + $this->initialized['terminatedAt'] = true; $this->terminatedAt = $terminatedAt; return $this; @@ -200,8 +224,22 @@ public function getReason(): ?string public function setReason(?string $reason): self { + $this->initialized['reason'] = true; $this->reason = $reason; return $this; } + + public function getCurrentVersion(): ?int + { + return $this->currentVersion; + } + + public function setCurrentVersion(?int $currentVersion): self + { + $this->initialized['currentVersion'] = true; + $this->currentVersion = $currentVersion; + + return $this; + } } diff --git a/src/Model/ExecutionResumePipelineExecutionCommandInputJsonld.php b/src/Model/ExecutionResumePipelineExecutionCommandInputJsonld.php index 02bf7863..d41d0986 100644 --- a/src/Model/ExecutionResumePipelineExecutionCommandInputJsonld.php +++ b/src/Model/ExecutionResumePipelineExecutionCommandInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ExecutionResumePipelineExecutionCommandInputJsonld +class ExecutionResumePipelineExecutionCommandInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/ExecutionResumePipelineExecutionCommandJsonldRead.php b/src/Model/ExecutionResumePipelineExecutionCommandJsonldRead.php index faf2d34f..6d16a451 100644 --- a/src/Model/ExecutionResumePipelineExecutionCommandJsonldRead.php +++ b/src/Model/ExecutionResumePipelineExecutionCommandJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ExecutionResumePipelineExecutionCommandJsonldRead +class ExecutionResumePipelineExecutionCommandJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/ExecutionStartPipelineExecutionCommandInputJsonld.php b/src/Model/ExecutionStartPipelineExecutionCommandInputJsonld.php deleted file mode 100644 index b582f4fb..00000000 --- a/src/Model/ExecutionStartPipelineExecutionCommandInputJsonld.php +++ /dev/null @@ -1,66 +0,0 @@ -context; - } - - public function setContext(mixed $context): self - { - $this->context = $context; - - return $this; - } - - public function getId(): ?string - { - return $this->id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } -} diff --git a/src/Model/ExecutionStartPipelineExecutionCommandJsonldRead.php b/src/Model/ExecutionStartPipelineExecutionCommandJsonldRead.php deleted file mode 100644 index 4681d1f4..00000000 --- a/src/Model/ExecutionStartPipelineExecutionCommandJsonldRead.php +++ /dev/null @@ -1,66 +0,0 @@ -context; - } - - public function setContext(mixed $context): self - { - $this->context = $context; - - return $this; - } - - public function getId(): ?string - { - return $this->id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } -} diff --git a/src/Model/ExecutionTerminatePipelineExecutionCommandInput.php b/src/Model/ExecutionTerminatePipelineExecutionCommandInput.php index 2219e095..2c2c742e 100644 --- a/src/Model/ExecutionTerminatePipelineExecutionCommandInput.php +++ b/src/Model/ExecutionTerminatePipelineExecutionCommandInput.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ExecutionTerminatePipelineExecutionCommandInput +class ExecutionTerminatePipelineExecutionCommandInput extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -24,6 +33,7 @@ public function getReason(): ?string public function setReason(?string $reason): self { + $this->initialized['reason'] = true; $this->reason = $reason; return $this; diff --git a/src/Model/ExecutionTerminatePipelineExecutionCommandInputJsonld.php b/src/Model/ExecutionTerminatePipelineExecutionCommandInputJsonld.php index fa78e809..c1760132 100644 --- a/src/Model/ExecutionTerminatePipelineExecutionCommandInputJsonld.php +++ b/src/Model/ExecutionTerminatePipelineExecutionCommandInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ExecutionTerminatePipelineExecutionCommandInputJsonld +class ExecutionTerminatePipelineExecutionCommandInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -37,8 +46,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -51,6 +64,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -63,6 +77,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -75,6 +90,7 @@ public function getReason(): ?string public function setReason(?string $reason): self { + $this->initialized['reason'] = true; $this->reason = $reason; return $this; diff --git a/src/Model/ExecutionTerminatePipelineExecutionCommandJsonldRead.php b/src/Model/ExecutionTerminatePipelineExecutionCommandJsonldRead.php index 328481d5..77f9e23b 100644 --- a/src/Model/ExecutionTerminatePipelineExecutionCommandJsonldRead.php +++ b/src/Model/ExecutionTerminatePipelineExecutionCommandJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ExecutionTerminatePipelineExecutionCommandJsonldRead +class ExecutionTerminatePipelineExecutionCommandJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/ExecutionUpdatePipelineExecutionStateCommandInput.php b/src/Model/ExecutionUpdatePipelineExecutionStateCommandInput.php deleted file mode 100644 index f3c1a6c0..00000000 --- a/src/Model/ExecutionUpdatePipelineExecutionStateCommandInput.php +++ /dev/null @@ -1,31 +0,0 @@ -stepsUpdates; - } - - public function setStepsUpdates(?UpdateList $stepsUpdates): self - { - $this->stepsUpdates = $stepsUpdates; - - return $this; - } -} diff --git a/src/Model/ExecutionUpdatePipelineExecutionStateCommandInputJsonld.php b/src/Model/ExecutionUpdatePipelineExecutionStateCommandInputJsonld.php deleted file mode 100644 index fd26866e..00000000 --- a/src/Model/ExecutionUpdatePipelineExecutionStateCommandInputJsonld.php +++ /dev/null @@ -1,82 +0,0 @@ -context; - } - - public function setContext(mixed $context): self - { - $this->context = $context; - - return $this; - } - - public function getId(): ?string - { - return $this->id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getStepsUpdates(): ?UpdateListJsonld - { - return $this->stepsUpdates; - } - - public function setStepsUpdates(?UpdateListJsonld $stepsUpdates): self - { - $this->stepsUpdates = $stepsUpdates; - - return $this; - } -} diff --git a/src/Model/ExecutionUpdatePipelineExecutionStateCommandJsonldRead.php b/src/Model/ExecutionUpdatePipelineExecutionStateCommandJsonldRead.php deleted file mode 100644 index fb116c46..00000000 --- a/src/Model/ExecutionUpdatePipelineExecutionStateCommandJsonldRead.php +++ /dev/null @@ -1,66 +0,0 @@ -context; - } - - public function setContext(mixed $context): self - { - $this->context = $context; - - return $this; - } - - public function getId(): ?string - { - return $this->id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } -} diff --git a/src/Model/ExecutionWorkflow.php b/src/Model/ExecutionWorkflow.php index 39fe6473..ee2cb272 100644 --- a/src/Model/ExecutionWorkflow.php +++ b/src/Model/ExecutionWorkflow.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ExecutionWorkflow +class ExecutionWorkflow extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -32,6 +41,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -50,6 +60,7 @@ public function getJobs(): ?array */ public function setJobs(?array $jobs): self { + $this->initialized['jobs'] = true; $this->jobs = $jobs; return $this; @@ -62,6 +73,7 @@ public function getExecution(): ?string public function setExecution(?string $execution): self { + $this->initialized['execution'] = true; $this->execution = $execution; return $this; diff --git a/src/Model/ExecutionWorkflowInterruptWorkflowExecutionCommand.php b/src/Model/ExecutionWorkflowInterruptWorkflowExecutionCommand.php new file mode 100644 index 00000000..998f3e7d --- /dev/null +++ b/src/Model/ExecutionWorkflowInterruptWorkflowExecutionCommand.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var ExecutionId|null + */ + protected $id; + /** + * @var \DateTime|null + */ + protected $date; + /** + * @var UserId|null + */ + protected $user; + + public function getId(): ?ExecutionId + { + return $this->id; + } + + public function setId(?ExecutionId $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getDate(): ?\DateTime + { + return $this->date; + } + + public function setDate(?\DateTime $date): self + { + $this->initialized['date'] = true; + $this->date = $date; + + return $this; + } + + public function getUser(): ?UserId + { + return $this->user; + } + + public function setUser(?UserId $user): self + { + $this->initialized['user'] = true; + $this->user = $user; + + return $this; + } +} diff --git a/src/Model/ExecutionWorkflowInterruptWorkflowExecutionCommandInputJsonld.php b/src/Model/ExecutionWorkflowInterruptWorkflowExecutionCommandInputJsonld.php new file mode 100644 index 00000000..d2b7305e --- /dev/null +++ b/src/Model/ExecutionWorkflowInterruptWorkflowExecutionCommandInputJsonld.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } +} diff --git a/src/Model/ExecutionWorkflowInterruptWorkflowExecutionCommandJsonld.php b/src/Model/ExecutionWorkflowInterruptWorkflowExecutionCommandJsonld.php new file mode 100644 index 00000000..ddd5f574 --- /dev/null +++ b/src/Model/ExecutionWorkflowInterruptWorkflowExecutionCommandJsonld.php @@ -0,0 +1,132 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var ExecutionIdJsonld|null + */ + protected $id2; + /** + * @var \DateTime|null + */ + protected $date; + /** + * @var UserIdJsonld|null + */ + protected $user; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getId2(): ?ExecutionIdJsonld + { + return $this->id2; + } + + public function setId2(?ExecutionIdJsonld $id2): self + { + $this->initialized['id2'] = true; + $this->id2 = $id2; + + return $this; + } + + public function getDate(): ?\DateTime + { + return $this->date; + } + + public function setDate(?\DateTime $date): self + { + $this->initialized['date'] = true; + $this->date = $date; + + return $this; + } + + public function getUser(): ?UserIdJsonld + { + return $this->user; + } + + public function setUser(?UserIdJsonld $user): self + { + $this->initialized['user'] = true; + $this->user = $user; + + return $this; + } +} diff --git a/src/Model/ExecutionWorkflowJob.php b/src/Model/ExecutionWorkflowJob.php index 3964de87..11d1a4fc 100644 --- a/src/Model/ExecutionWorkflowJob.php +++ b/src/Model/ExecutionWorkflowJob.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ExecutionWorkflowJob +class ExecutionWorkflowJob extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -36,6 +45,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -48,6 +58,7 @@ public function getWorkflow(): ?string public function setWorkflow(?string $workflow): self { + $this->initialized['workflow'] = true; $this->workflow = $workflow; return $this; @@ -60,6 +71,7 @@ public function getPipeline(): ?string public function setPipeline(?string $pipeline): self { + $this->initialized['pipeline'] = true; $this->pipeline = $pipeline; return $this; @@ -72,6 +84,7 @@ public function getAction(): ?string public function setAction(?string $action): self { + $this->initialized['action'] = true; $this->action = $action; return $this; diff --git a/src/Model/ExecutionWorkflowJobAction.php b/src/Model/ExecutionWorkflowJobAction.php index 78ee6f50..041f6447 100644 --- a/src/Model/ExecutionWorkflowJobAction.php +++ b/src/Model/ExecutionWorkflowJobAction.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ExecutionWorkflowJobAction +class ExecutionWorkflowJobAction extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -28,6 +37,7 @@ public function getJob(): ?string public function setJob(?string $job): self { + $this->initialized['job'] = true; $this->job = $job; return $this; @@ -40,6 +50,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; diff --git a/src/Model/ExecutionWorkflowJobActionJsonld.php b/src/Model/ExecutionWorkflowJobActionJsonld.php index abf43b42..8e366eab 100644 --- a/src/Model/ExecutionWorkflowJobActionJsonld.php +++ b/src/Model/ExecutionWorkflowJobActionJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ExecutionWorkflowJobActionJsonld +class ExecutionWorkflowJobActionJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -41,8 +50,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -55,6 +68,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -67,6 +81,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -79,6 +94,7 @@ public function getJob(): ?string public function setJob(?string $job): self { + $this->initialized['job'] = true; $this->job = $job; return $this; @@ -91,6 +107,7 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; diff --git a/src/Model/ExecutionWorkflowJobJsonld.php b/src/Model/ExecutionWorkflowJobJsonld.php index 189cf485..e919e932 100644 --- a/src/Model/ExecutionWorkflowJobJsonld.php +++ b/src/Model/ExecutionWorkflowJobJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ExecutionWorkflowJobJsonld +class ExecutionWorkflowJobJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -48,6 +57,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -60,6 +70,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -73,8 +84,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -87,6 +102,7 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; @@ -99,6 +115,7 @@ public function getWorkflow(): ?string public function setWorkflow(?string $workflow): self { + $this->initialized['workflow'] = true; $this->workflow = $workflow; return $this; @@ -111,6 +128,7 @@ public function getPipeline(): ?string public function setPipeline(?string $pipeline): self { + $this->initialized['pipeline'] = true; $this->pipeline = $pipeline; return $this; @@ -123,6 +141,7 @@ public function getAction(): ?string public function setAction(?string $action): self { + $this->initialized['action'] = true; $this->action = $action; return $this; diff --git a/src/Model/ExecutionWorkflowJsonld.php b/src/Model/ExecutionWorkflowJsonld.php index 708cb51d..72625d20 100644 --- a/src/Model/ExecutionWorkflowJsonld.php +++ b/src/Model/ExecutionWorkflowJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ExecutionWorkflowJsonld +class ExecutionWorkflowJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -44,6 +53,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -56,6 +66,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -69,8 +80,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -83,6 +98,7 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; @@ -101,6 +117,7 @@ public function getJobs(): ?array */ public function setJobs(?array $jobs): self { + $this->initialized['jobs'] = true; $this->jobs = $jobs; return $this; @@ -113,6 +130,7 @@ public function getExecution(): ?string public function setExecution(?string $execution): self { + $this->initialized['execution'] = true; $this->execution = $execution; return $this; diff --git a/src/Model/ExecutionWorkflowResumeWorkflowExecutionCommand.php b/src/Model/ExecutionWorkflowResumeWorkflowExecutionCommand.php new file mode 100644 index 00000000..fe81ee1a --- /dev/null +++ b/src/Model/ExecutionWorkflowResumeWorkflowExecutionCommand.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var ExecutionId|null + */ + protected $id; + /** + * @var \DateTime|null + */ + protected $date; + /** + * @var UserId|null + */ + protected $user; + + public function getId(): ?ExecutionId + { + return $this->id; + } + + public function setId(?ExecutionId $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getDate(): ?\DateTime + { + return $this->date; + } + + public function setDate(?\DateTime $date): self + { + $this->initialized['date'] = true; + $this->date = $date; + + return $this; + } + + public function getUser(): ?UserId + { + return $this->user; + } + + public function setUser(?UserId $user): self + { + $this->initialized['user'] = true; + $this->user = $user; + + return $this; + } +} diff --git a/src/Model/ExecutionWorkflowResumeWorkflowExecutionCommandInputJsonld.php b/src/Model/ExecutionWorkflowResumeWorkflowExecutionCommandInputJsonld.php new file mode 100644 index 00000000..20df0695 --- /dev/null +++ b/src/Model/ExecutionWorkflowResumeWorkflowExecutionCommandInputJsonld.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } +} diff --git a/src/Model/ExecutionWorkflowResumeWorkflowExecutionCommandJsonld.php b/src/Model/ExecutionWorkflowResumeWorkflowExecutionCommandJsonld.php new file mode 100644 index 00000000..f49461d0 --- /dev/null +++ b/src/Model/ExecutionWorkflowResumeWorkflowExecutionCommandJsonld.php @@ -0,0 +1,132 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var ExecutionIdJsonld|null + */ + protected $id2; + /** + * @var \DateTime|null + */ + protected $date; + /** + * @var UserIdJsonld|null + */ + protected $user; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getId2(): ?ExecutionIdJsonld + { + return $this->id2; + } + + public function setId2(?ExecutionIdJsonld $id2): self + { + $this->initialized['id2'] = true; + $this->id2 = $id2; + + return $this; + } + + public function getDate(): ?\DateTime + { + return $this->date; + } + + public function setDate(?\DateTime $date): self + { + $this->initialized['date'] = true; + $this->date = $date; + + return $this; + } + + public function getUser(): ?UserIdJsonld + { + return $this->user; + } + + public function setUser(?UserIdJsonld $user): self + { + $this->initialized['user'] = true; + $this->user = $user; + + return $this; + } +} diff --git a/src/Model/ExecutionWorkflowTerminateWorkflowExecutionCommand.php b/src/Model/ExecutionWorkflowTerminateWorkflowExecutionCommand.php new file mode 100644 index 00000000..513cf0be --- /dev/null +++ b/src/Model/ExecutionWorkflowTerminateWorkflowExecutionCommand.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var ExecutionId|null + */ + protected $id; + /** + * @var \DateTime|null + */ + protected $date; + /** + * @var string|null + */ + protected $reason; + /** + * @var UserId|null + */ + protected $user; + + public function getId(): ?ExecutionId + { + return $this->id; + } + + public function setId(?ExecutionId $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getDate(): ?\DateTime + { + return $this->date; + } + + public function setDate(?\DateTime $date): self + { + $this->initialized['date'] = true; + $this->date = $date; + + return $this; + } + + public function getReason(): ?string + { + return $this->reason; + } + + public function setReason(?string $reason): self + { + $this->initialized['reason'] = true; + $this->reason = $reason; + + return $this; + } + + public function getUser(): ?UserId + { + return $this->user; + } + + public function setUser(?UserId $user): self + { + $this->initialized['user'] = true; + $this->user = $user; + + return $this; + } +} diff --git a/src/Model/ExecutionWorkflowTerminateWorkflowExecutionCommandInput.php b/src/Model/ExecutionWorkflowTerminateWorkflowExecutionCommandInput.php new file mode 100644 index 00000000..38ab4a34 --- /dev/null +++ b/src/Model/ExecutionWorkflowTerminateWorkflowExecutionCommandInput.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string|null + */ + protected $reason; + + public function getReason(): ?string + { + return $this->reason; + } + + public function setReason(?string $reason): self + { + $this->initialized['reason'] = true; + $this->reason = $reason; + + return $this; + } +} diff --git a/src/Model/ExecutionWorkflowTerminateWorkflowExecutionCommandInputJsonld.php b/src/Model/ExecutionWorkflowTerminateWorkflowExecutionCommandInputJsonld.php new file mode 100644 index 00000000..a76afc23 --- /dev/null +++ b/src/Model/ExecutionWorkflowTerminateWorkflowExecutionCommandInputJsonld.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $reason; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getReason(): ?string + { + return $this->reason; + } + + public function setReason(?string $reason): self + { + $this->initialized['reason'] = true; + $this->reason = $reason; + + return $this; + } +} diff --git a/src/Model/ExecutionWorkflowTerminateWorkflowExecutionCommandJsonld.php b/src/Model/ExecutionWorkflowTerminateWorkflowExecutionCommandJsonld.php new file mode 100644 index 00000000..192f536c --- /dev/null +++ b/src/Model/ExecutionWorkflowTerminateWorkflowExecutionCommandJsonld.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var ExecutionIdJsonld|null + */ + protected $id2; + /** + * @var \DateTime|null + */ + protected $date; + /** + * @var string|null + */ + protected $reason; + /** + * @var UserIdJsonld|null + */ + protected $user; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getId2(): ?ExecutionIdJsonld + { + return $this->id2; + } + + public function setId2(?ExecutionIdJsonld $id2): self + { + $this->initialized['id2'] = true; + $this->id2 = $id2; + + return $this; + } + + public function getDate(): ?\DateTime + { + return $this->date; + } + + public function setDate(?\DateTime $date): self + { + $this->initialized['date'] = true; + $this->date = $date; + + return $this; + } + + public function getReason(): ?string + { + return $this->reason; + } + + public function setReason(?string $reason): self + { + $this->initialized['reason'] = true; + $this->reason = $reason; + + return $this; + } + + public function getUser(): ?UserIdJsonld + { + return $this->user; + } + + public function setUser(?UserIdJsonld $user): self + { + $this->initialized['user'] = true; + $this->user = $user; + + return $this; + } +} diff --git a/src/Model/GatewayAkeneoInstanceFromUrlGetResponse200.php b/src/Model/GatewayAkeneoInstanceFromUrlGetResponse200.php deleted file mode 100644 index 6abf081e..00000000 --- a/src/Model/GatewayAkeneoInstanceFromUrlGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param AkeneoInstanceJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?GatewayAkeneoInstanceFromUrlGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?GatewayAkeneoInstanceFromUrlGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?GatewayAkeneoInstanceFromUrlGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?GatewayAkeneoInstanceFromUrlGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/GatewayAkeneoInstanceFromUrlGetResponse200HydraSearch.php b/src/Model/GatewayAkeneoInstanceFromUrlGetResponse200HydraSearch.php deleted file mode 100644 index e5c1c094..00000000 --- a/src/Model/GatewayAkeneoInstanceFromUrlGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchHydraMappingItem.php b/src/Model/GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 8dba992b..00000000 --- a/src/Model/GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/GatewayAkeneoInstanceFromUrlGetResponse200HydraView.php b/src/Model/GatewayAkeneoInstanceFromUrlGetResponse200HydraView.php deleted file mode 100644 index 80fbcc62..00000000 --- a/src/Model/GatewayAkeneoInstanceFromUrlGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/GatewayAkeneoInstanceOauthStateGetResponse200.php b/src/Model/GatewayAkeneoInstanceOauthStateGetResponse200.php deleted file mode 100644 index 28c19a22..00000000 --- a/src/Model/GatewayAkeneoInstanceOauthStateGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param AkeneoInstanceJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?GatewayAkeneoInstanceOauthStateGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?GatewayAkeneoInstanceOauthStateGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?GatewayAkeneoInstanceOauthStateGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?GatewayAkeneoInstanceOauthStateGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/GatewayAkeneoInstanceOauthStateGetResponse200HydraSearch.php b/src/Model/GatewayAkeneoInstanceOauthStateGetResponse200HydraSearch.php deleted file mode 100644 index 7baff748..00000000 --- a/src/Model/GatewayAkeneoInstanceOauthStateGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchHydraMappingItem.php b/src/Model/GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index f2838c18..00000000 --- a/src/Model/GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/GatewayAkeneoInstanceOauthStateGetResponse200HydraView.php b/src/Model/GatewayAkeneoInstanceOauthStateGetResponse200HydraView.php deleted file mode 100644 index d15d566e..00000000 --- a/src/Model/GatewayAkeneoInstanceOauthStateGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/GatewayAkeneoInstancesFromUrlGetLdjsonResponse200.php b/src/Model/GatewayAkeneoInstancesFromUrlGetLdjsonResponse200.php new file mode 100644 index 00000000..ceff6847 --- /dev/null +++ b/src/Model/GatewayAkeneoInstancesFromUrlGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var AkeneoInstanceJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return AkeneoInstanceJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param AkeneoInstanceJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraSearch.php b/src/Model/GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..cebb481e --- /dev/null +++ b/src/Model/GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..32cfff8f --- /dev/null +++ b/src/Model/GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraView.php b/src/Model/GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..c01edad6 --- /dev/null +++ b/src/Model/GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/GatewayAkeneoInstancesGetLdjsonResponse200.php b/src/Model/GatewayAkeneoInstancesGetLdjsonResponse200.php new file mode 100644 index 00000000..db549800 --- /dev/null +++ b/src/Model/GatewayAkeneoInstancesGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var AkeneoInstanceJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var GatewayAkeneoInstancesGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var GatewayAkeneoInstancesGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return AkeneoInstanceJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param AkeneoInstanceJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?GatewayAkeneoInstancesGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?GatewayAkeneoInstancesGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?GatewayAkeneoInstancesGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?GatewayAkeneoInstancesGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/GatewayAkeneoInstancesGetLdjsonResponse200HydraSearch.php b/src/Model/GatewayAkeneoInstancesGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..e9fbb083 --- /dev/null +++ b/src/Model/GatewayAkeneoInstancesGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var GatewayAkeneoInstancesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return GatewayAkeneoInstancesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param GatewayAkeneoInstancesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/GatewayAkeneoInstancesGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/GatewayAkeneoInstancesGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..efbec52d --- /dev/null +++ b/src/Model/GatewayAkeneoInstancesGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/GatewayAkeneoInstancesGetLdjsonResponse200HydraView.php b/src/Model/GatewayAkeneoInstancesGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..1054fe9d --- /dev/null +++ b/src/Model/GatewayAkeneoInstancesGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/GatewayAkeneoInstancesGetResponse200.php b/src/Model/GatewayAkeneoInstancesGetResponse200.php deleted file mode 100644 index aabfbcf1..00000000 --- a/src/Model/GatewayAkeneoInstancesGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param AkeneoInstanceJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?GatewayAkeneoInstancesGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?GatewayAkeneoInstancesGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?GatewayAkeneoInstancesGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?GatewayAkeneoInstancesGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/GatewayAkeneoInstancesGetResponse200HydraSearch.php b/src/Model/GatewayAkeneoInstancesGetResponse200HydraSearch.php deleted file mode 100644 index e1a3f3e8..00000000 --- a/src/Model/GatewayAkeneoInstancesGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return GatewayAkeneoInstancesGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param GatewayAkeneoInstancesGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/GatewayAkeneoInstancesGetResponse200HydraSearchHydraMappingItem.php b/src/Model/GatewayAkeneoInstancesGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index a2339396..00000000 --- a/src/Model/GatewayAkeneoInstancesGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/GatewayAkeneoInstancesGetResponse200HydraView.php b/src/Model/GatewayAkeneoInstancesGetResponse200HydraView.php deleted file mode 100644 index 60b3596d..00000000 --- a/src/Model/GatewayAkeneoInstancesGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/GatewayAkeneoInstancesOauthStateGetLdjsonResponse200.php b/src/Model/GatewayAkeneoInstancesOauthStateGetLdjsonResponse200.php new file mode 100644 index 00000000..5b158fee --- /dev/null +++ b/src/Model/GatewayAkeneoInstancesOauthStateGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var AkeneoInstanceJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return AkeneoInstanceJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param AkeneoInstanceJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraSearch.php b/src/Model/GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..60527d10 --- /dev/null +++ b/src/Model/GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..fb1b8c26 --- /dev/null +++ b/src/Model/GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraView.php b/src/Model/GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..991b836a --- /dev/null +++ b/src/Model/GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200.php b/src/Model/GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200.php new file mode 100644 index 00000000..381ba17a --- /dev/null +++ b/src/Model/GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var AkeneoLinkedAccountJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return AkeneoLinkedAccountJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param AkeneoLinkedAccountJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraSearch.php b/src/Model/GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..693a090e --- /dev/null +++ b/src/Model/GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..2384c1b6 --- /dev/null +++ b/src/Model/GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraView.php b/src/Model/GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..1409e917 --- /dev/null +++ b/src/Model/GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200.php b/src/Model/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200.php deleted file mode 100644 index 676be655..00000000 --- a/src/Model/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param AkeneoLinkedAccountJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearch.php b/src/Model/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearch.php deleted file mode 100644 index 88eeea69..00000000 --- a/src/Model/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchHydraMappingItem.php b/src/Model/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 2718f94d..00000000 --- a/src/Model/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraView.php b/src/Model/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraView.php deleted file mode 100644 index 569e4653..00000000 --- a/src/Model/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/GatewayAkeneoLinkedAccountsGetLdjsonResponse200.php b/src/Model/GatewayAkeneoLinkedAccountsGetLdjsonResponse200.php new file mode 100644 index 00000000..e1a78de9 --- /dev/null +++ b/src/Model/GatewayAkeneoLinkedAccountsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var AkeneoLinkedAccountJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return AkeneoLinkedAccountJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param AkeneoLinkedAccountJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraSearch.php b/src/Model/GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..cb592479 --- /dev/null +++ b/src/Model/GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..9a449d07 --- /dev/null +++ b/src/Model/GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraView.php b/src/Model/GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..a595bf4c --- /dev/null +++ b/src/Model/GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/GatewayAkeneoLinkedAccountsGetResponse200.php b/src/Model/GatewayAkeneoLinkedAccountsGetResponse200.php deleted file mode 100644 index c1f53fd0..00000000 --- a/src/Model/GatewayAkeneoLinkedAccountsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param AkeneoLinkedAccountJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?GatewayAkeneoLinkedAccountsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?GatewayAkeneoLinkedAccountsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?GatewayAkeneoLinkedAccountsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?GatewayAkeneoLinkedAccountsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/GatewayAkeneoLinkedAccountsGetResponse200HydraSearch.php b/src/Model/GatewayAkeneoLinkedAccountsGetResponse200HydraSearch.php deleted file mode 100644 index de732872..00000000 --- a/src/Model/GatewayAkeneoLinkedAccountsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return GatewayAkeneoLinkedAccountsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param GatewayAkeneoLinkedAccountsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/GatewayAkeneoLinkedAccountsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/GatewayAkeneoLinkedAccountsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index d0e198ea..00000000 --- a/src/Model/GatewayAkeneoLinkedAccountsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/GatewayAkeneoLinkedAccountsGetResponse200HydraView.php b/src/Model/GatewayAkeneoLinkedAccountsGetResponse200HydraView.php deleted file mode 100644 index d58ea757..00000000 --- a/src/Model/GatewayAkeneoLinkedAccountsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/GatewayAkeneoOauthStatesGetLdjsonResponse200.php b/src/Model/GatewayAkeneoOauthStatesGetLdjsonResponse200.php new file mode 100644 index 00000000..6ea3f778 --- /dev/null +++ b/src/Model/GatewayAkeneoOauthStatesGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var AkeneoOauthTokenJsonldRead[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var GatewayAkeneoOauthStatesGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var GatewayAkeneoOauthStatesGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return AkeneoOauthTokenJsonldRead[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param AkeneoOauthTokenJsonldRead[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?GatewayAkeneoOauthStatesGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?GatewayAkeneoOauthStatesGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?GatewayAkeneoOauthStatesGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?GatewayAkeneoOauthStatesGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/GatewayAkeneoOauthStatesGetLdjsonResponse200HydraSearch.php b/src/Model/GatewayAkeneoOauthStatesGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..fd03c552 --- /dev/null +++ b/src/Model/GatewayAkeneoOauthStatesGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var GatewayAkeneoOauthStatesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return GatewayAkeneoOauthStatesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param GatewayAkeneoOauthStatesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/GatewayAkeneoOauthStatesGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/GatewayAkeneoOauthStatesGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..e98ffb35 --- /dev/null +++ b/src/Model/GatewayAkeneoOauthStatesGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/GatewayAkeneoOauthStatesGetLdjsonResponse200HydraView.php b/src/Model/GatewayAkeneoOauthStatesGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..b8f18383 --- /dev/null +++ b/src/Model/GatewayAkeneoOauthStatesGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/GatewayAkeneoOauthStatesGetResponse200.php b/src/Model/GatewayAkeneoOauthStatesGetResponse200.php deleted file mode 100644 index ac804ad4..00000000 --- a/src/Model/GatewayAkeneoOauthStatesGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param AkeneoOauthTokenJsonldRead[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?GatewayAkeneoOauthStatesGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?GatewayAkeneoOauthStatesGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?GatewayAkeneoOauthStatesGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?GatewayAkeneoOauthStatesGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/GatewayAkeneoOauthStatesGetResponse200HydraSearch.php b/src/Model/GatewayAkeneoOauthStatesGetResponse200HydraSearch.php deleted file mode 100644 index 04b00107..00000000 --- a/src/Model/GatewayAkeneoOauthStatesGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return GatewayAkeneoOauthStatesGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param GatewayAkeneoOauthStatesGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/GatewayAkeneoOauthStatesGetResponse200HydraSearchHydraMappingItem.php b/src/Model/GatewayAkeneoOauthStatesGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index c7c1fad5..00000000 --- a/src/Model/GatewayAkeneoOauthStatesGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/GatewayAkeneoOauthStatesGetResponse200HydraView.php b/src/Model/GatewayAkeneoOauthStatesGetResponse200HydraView.php deleted file mode 100644 index 72b72cc4..00000000 --- a/src/Model/GatewayAkeneoOauthStatesGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/GatewayAkeneoOauthTokenPutBody.php b/src/Model/GatewayAkeneoOauthTokenPutBody.php index 73081505..df9966db 100644 --- a/src/Model/GatewayAkeneoOauthTokenPutBody.php +++ b/src/Model/GatewayAkeneoOauthTokenPutBody.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class GatewayAkeneoOauthTokenPutBody +class GatewayAkeneoOauthTokenPutBody extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var AkeneoOauthTokenOauthTokenInputJsonld[]|null */ @@ -42,6 +51,7 @@ public function getHydraMember(): ?array */ public function setHydraMember(?array $hydraMember): self { + $this->initialized['hydraMember'] = true; $this->hydraMember = $hydraMember; return $this; @@ -54,6 +64,7 @@ public function getHydraTotalItems(): ?int public function setHydraTotalItems(?int $hydraTotalItems): self { + $this->initialized['hydraTotalItems'] = true; $this->hydraTotalItems = $hydraTotalItems; return $this; @@ -66,6 +77,7 @@ public function getHydraView(): ?GatewayAkeneoOauthTokenPutBodyHydraView public function setHydraView(?GatewayAkeneoOauthTokenPutBodyHydraView $hydraView): self { + $this->initialized['hydraView'] = true; $this->hydraView = $hydraView; return $this; @@ -78,6 +90,7 @@ public function getHydraSearch(): ?GatewayAkeneoOauthTokenPutBodyHydraSearch public function setHydraSearch(?GatewayAkeneoOauthTokenPutBodyHydraSearch $hydraSearch): self { + $this->initialized['hydraSearch'] = true; $this->hydraSearch = $hydraSearch; return $this; diff --git a/src/Model/GatewayAkeneoOauthTokenPutBodyHydraSearch.php b/src/Model/GatewayAkeneoOauthTokenPutBodyHydraSearch.php index 826380da..ab8eb3ed 100644 --- a/src/Model/GatewayAkeneoOauthTokenPutBodyHydraSearch.php +++ b/src/Model/GatewayAkeneoOauthTokenPutBodyHydraSearch.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class GatewayAkeneoOauthTokenPutBodyHydraSearch +class GatewayAkeneoOauthTokenPutBodyHydraSearch extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -36,6 +45,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -48,6 +58,7 @@ public function getHydraTemplate(): ?string public function setHydraTemplate(?string $hydraTemplate): self { + $this->initialized['hydraTemplate'] = true; $this->hydraTemplate = $hydraTemplate; return $this; @@ -60,6 +71,7 @@ public function getHydraVariableRepresentation(): ?string public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self { + $this->initialized['hydraVariableRepresentation'] = true; $this->hydraVariableRepresentation = $hydraVariableRepresentation; return $this; @@ -78,6 +90,7 @@ public function getHydraMapping(): ?array */ public function setHydraMapping(?array $hydraMapping): self { + $this->initialized['hydraMapping'] = true; $this->hydraMapping = $hydraMapping; return $this; diff --git a/src/Model/GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItem.php b/src/Model/GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItem.php index 4287a8f4..8babff9b 100644 --- a/src/Model/GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItem.php +++ b/src/Model/GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItem.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItem +class GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItem extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -36,6 +45,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -48,6 +58,7 @@ public function getVariable(): ?string public function setVariable(?string $variable): self { + $this->initialized['variable'] = true; $this->variable = $variable; return $this; @@ -60,6 +71,7 @@ public function getProperty(): ?string public function setProperty(?string $property): self { + $this->initialized['property'] = true; $this->property = $property; return $this; @@ -72,6 +84,7 @@ public function getRequired(): ?bool public function setRequired(?bool $required): self { + $this->initialized['required'] = true; $this->required = $required; return $this; diff --git a/src/Model/GatewayAkeneoOauthTokenPutBodyHydraView.php b/src/Model/GatewayAkeneoOauthTokenPutBodyHydraView.php index f8208324..13903899 100644 --- a/src/Model/GatewayAkeneoOauthTokenPutBodyHydraView.php +++ b/src/Model/GatewayAkeneoOauthTokenPutBodyHydraView.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class GatewayAkeneoOauthTokenPutBodyHydraView +class GatewayAkeneoOauthTokenPutBodyHydraView extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -44,6 +53,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -56,6 +66,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -68,6 +79,7 @@ public function getHydraFirst(): ?string public function setHydraFirst(?string $hydraFirst): self { + $this->initialized['hydraFirst'] = true; $this->hydraFirst = $hydraFirst; return $this; @@ -80,6 +92,7 @@ public function getHydraLast(): ?string public function setHydraLast(?string $hydraLast): self { + $this->initialized['hydraLast'] = true; $this->hydraLast = $hydraLast; return $this; @@ -92,6 +105,7 @@ public function getHydraPrevious(): ?string public function setHydraPrevious(?string $hydraPrevious): self { + $this->initialized['hydraPrevious'] = true; $this->hydraPrevious = $hydraPrevious; return $this; @@ -104,6 +118,7 @@ public function getHydraNext(): ?string public function setHydraNext(?string $hydraNext): self { + $this->initialized['hydraNext'] = true; $this->hydraNext = $hydraNext; return $this; diff --git a/src/Model/GatewayAkeneoOauthTokenPutLdjsonResponse200.php b/src/Model/GatewayAkeneoOauthTokenPutLdjsonResponse200.php new file mode 100644 index 00000000..caf7f9b8 --- /dev/null +++ b/src/Model/GatewayAkeneoOauthTokenPutLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var AkeneoOauthTokenOauthTokenOutputJsonldRead[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var GatewayAkeneoOauthTokenPutLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var GatewayAkeneoOauthTokenPutLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return AkeneoOauthTokenOauthTokenOutputJsonldRead[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param AkeneoOauthTokenOauthTokenOutputJsonldRead[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?GatewayAkeneoOauthTokenPutLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?GatewayAkeneoOauthTokenPutLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?GatewayAkeneoOauthTokenPutLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?GatewayAkeneoOauthTokenPutLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/GatewayAkeneoOauthTokenPutLdjsonResponse200HydraSearch.php b/src/Model/GatewayAkeneoOauthTokenPutLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..da7c2b61 --- /dev/null +++ b/src/Model/GatewayAkeneoOauthTokenPutLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var GatewayAkeneoOauthTokenPutLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return GatewayAkeneoOauthTokenPutLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param GatewayAkeneoOauthTokenPutLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/GatewayAkeneoOauthTokenPutLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/GatewayAkeneoOauthTokenPutLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..f8a3bd52 --- /dev/null +++ b/src/Model/GatewayAkeneoOauthTokenPutLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/GatewayAkeneoOauthTokenPutLdjsonResponse200HydraView.php b/src/Model/GatewayAkeneoOauthTokenPutLdjsonResponse200HydraView.php new file mode 100644 index 00000000..f63887dd --- /dev/null +++ b/src/Model/GatewayAkeneoOauthTokenPutLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/GatewayAkeneoOauthTokenPutResponse200.php b/src/Model/GatewayAkeneoOauthTokenPutResponse200.php deleted file mode 100644 index 025cf9f4..00000000 --- a/src/Model/GatewayAkeneoOauthTokenPutResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param AkeneoOauthTokenOauthTokenOutputJsonldRead[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?GatewayAkeneoOauthTokenPutResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?GatewayAkeneoOauthTokenPutResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?GatewayAkeneoOauthTokenPutResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?GatewayAkeneoOauthTokenPutResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/GatewayAkeneoOauthTokenPutResponse200HydraSearch.php b/src/Model/GatewayAkeneoOauthTokenPutResponse200HydraSearch.php deleted file mode 100644 index dca1be22..00000000 --- a/src/Model/GatewayAkeneoOauthTokenPutResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return GatewayAkeneoOauthTokenPutResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param GatewayAkeneoOauthTokenPutResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/GatewayAkeneoOauthTokenPutResponse200HydraSearchHydraMappingItem.php b/src/Model/GatewayAkeneoOauthTokenPutResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 19720a8a..00000000 --- a/src/Model/GatewayAkeneoOauthTokenPutResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/GatewayAkeneoOauthTokenPutResponse200HydraView.php b/src/Model/GatewayAkeneoOauthTokenPutResponse200HydraView.php deleted file mode 100644 index 67700ba0..00000000 --- a/src/Model/GatewayAkeneoOauthTokenPutResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/Job.php b/src/Model/Job.php new file mode 100644 index 00000000..f5c3ccae --- /dev/null +++ b/src/Model/Job.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var Pipeline|null + */ + protected $pipeline; + /** + * @var Action|null + */ + protected $action; + /** + * @var string|null + */ + protected $code; + /** + * @var string|null + */ + protected $label; + + public function getPipeline(): ?Pipeline + { + return $this->pipeline; + } + + public function setPipeline(?Pipeline $pipeline): self + { + $this->initialized['pipeline'] = true; + $this->pipeline = $pipeline; + + return $this; + } + + public function getAction(): ?Action + { + return $this->action; + } + + public function setAction(?Action $action): self + { + $this->initialized['action'] = true; + $this->action = $action; + + return $this; + } + + public function getCode(): ?string + { + return $this->code; + } + + public function setCode(?string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getLabel(): ?string + { + return $this->label; + } + + public function setLabel(?string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } +} diff --git a/src/Model/JobJsonld.php b/src/Model/JobJsonld.php new file mode 100644 index 00000000..23aa47c5 --- /dev/null +++ b/src/Model/JobJsonld.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var PipelineJsonld|null + */ + protected $pipeline; + /** + * @var ActionJsonld|null + */ + protected $action; + /** + * @var string|null + */ + protected $code; + /** + * @var string|null + */ + protected $label; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getPipeline(): ?PipelineJsonld + { + return $this->pipeline; + } + + public function setPipeline(?PipelineJsonld $pipeline): self + { + $this->initialized['pipeline'] = true; + $this->pipeline = $pipeline; + + return $this; + } + + public function getAction(): ?ActionJsonld + { + return $this->action; + } + + public function setAction(?ActionJsonld $action): self + { + $this->initialized['action'] = true; + $this->action = $action; + + return $this; + } + + public function getCode(): ?string + { + return $this->code; + } + + public function setCode(?string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getLabel(): ?string + { + return $this->label; + } + + public function setLabel(?string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } +} diff --git a/src/Model/Money.php b/src/Model/Money.php index 00c91466..1b21d57b 100644 --- a/src/Model/Money.php +++ b/src/Model/Money.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class Money +class Money extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var BigDecimal|null */ @@ -82,6 +91,7 @@ public function getAmount(): ?BigDecimal public function setAmount(?BigDecimal $amount): self { + $this->initialized['amount'] = true; $this->amount = $amount; return $this; @@ -94,6 +104,7 @@ public function getCurrency(): ?Currency public function setCurrency(?Currency $currency): self { + $this->initialized['currency'] = true; $this->currency = $currency; return $this; @@ -106,6 +117,7 @@ public function getContext(): ?Context public function setContext(?Context $context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -118,6 +130,7 @@ public function getMinorAmount(): ?BigDecimal public function setMinorAmount(?BigDecimal $minorAmount): self { + $this->initialized['minorAmount'] = true; $this->minorAmount = $minorAmount; return $this; @@ -130,6 +143,7 @@ public function getUnscaledAmount(): ?BigInteger public function setUnscaledAmount(?BigInteger $unscaledAmount): self { + $this->initialized['unscaledAmount'] = true; $this->unscaledAmount = $unscaledAmount; return $this; @@ -152,6 +166,7 @@ public function getAmounts(): ?array */ public function setAmounts(?array $amounts): self { + $this->initialized['amounts'] = true; $this->amounts = $amounts; return $this; @@ -170,6 +185,7 @@ public function getSign(): ?int */ public function setSign(?int $sign): self { + $this->initialized['sign'] = true; $this->sign = $sign; return $this; @@ -188,6 +204,7 @@ public function getZero(): ?bool */ public function setZero(?bool $zero): self { + $this->initialized['zero'] = true; $this->zero = $zero; return $this; @@ -206,6 +223,7 @@ public function getNegative(): ?bool */ public function setNegative(?bool $negative): self { + $this->initialized['negative'] = true; $this->negative = $negative; return $this; @@ -224,6 +242,7 @@ public function getNegativeOrZero(): ?bool */ public function setNegativeOrZero(?bool $negativeOrZero): self { + $this->initialized['negativeOrZero'] = true; $this->negativeOrZero = $negativeOrZero; return $this; @@ -242,6 +261,7 @@ public function getPositive(): ?bool */ public function setPositive(?bool $positive): self { + $this->initialized['positive'] = true; $this->positive = $positive; return $this; @@ -260,6 +280,7 @@ public function getPositiveOrZero(): ?bool */ public function setPositiveOrZero(?bool $positiveOrZero): self { + $this->initialized['positiveOrZero'] = true; $this->positiveOrZero = $positiveOrZero; return $this; diff --git a/src/Model/MoneyJsonld.php b/src/Model/MoneyJsonld.php index fe9bb076..ad240e33 100644 --- a/src/Model/MoneyJsonld.php +++ b/src/Model/MoneyJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class MoneyJsonld +class MoneyJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -95,8 +104,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -109,6 +122,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -121,6 +135,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -133,6 +148,7 @@ public function getAmount(): ?BigDecimalJsonld public function setAmount(?BigDecimalJsonld $amount): self { + $this->initialized['amount'] = true; $this->amount = $amount; return $this; @@ -145,6 +161,7 @@ public function getCurrency(): ?CurrencyJsonld public function setCurrency(?CurrencyJsonld $currency): self { + $this->initialized['currency'] = true; $this->currency = $currency; return $this; @@ -157,6 +174,7 @@ public function getContext2(): ?ContextJsonld public function setContext2(?ContextJsonld $context2): self { + $this->initialized['context2'] = true; $this->context2 = $context2; return $this; @@ -169,6 +187,7 @@ public function getMinorAmount(): ?BigDecimalJsonld public function setMinorAmount(?BigDecimalJsonld $minorAmount): self { + $this->initialized['minorAmount'] = true; $this->minorAmount = $minorAmount; return $this; @@ -181,6 +200,7 @@ public function getUnscaledAmount(): ?BigIntegerJsonld public function setUnscaledAmount(?BigIntegerJsonld $unscaledAmount): self { + $this->initialized['unscaledAmount'] = true; $this->unscaledAmount = $unscaledAmount; return $this; @@ -203,6 +223,7 @@ public function getAmounts(): ?array */ public function setAmounts(?array $amounts): self { + $this->initialized['amounts'] = true; $this->amounts = $amounts; return $this; @@ -221,6 +242,7 @@ public function getSign(): ?int */ public function setSign(?int $sign): self { + $this->initialized['sign'] = true; $this->sign = $sign; return $this; @@ -239,6 +261,7 @@ public function getZero(): ?bool */ public function setZero(?bool $zero): self { + $this->initialized['zero'] = true; $this->zero = $zero; return $this; @@ -257,6 +280,7 @@ public function getNegative(): ?bool */ public function setNegative(?bool $negative): self { + $this->initialized['negative'] = true; $this->negative = $negative; return $this; @@ -275,6 +299,7 @@ public function getNegativeOrZero(): ?bool */ public function setNegativeOrZero(?bool $negativeOrZero): self { + $this->initialized['negativeOrZero'] = true; $this->negativeOrZero = $negativeOrZero; return $this; @@ -293,6 +318,7 @@ public function getPositive(): ?bool */ public function setPositive(?bool $positive): self { + $this->initialized['positive'] = true; $this->positive = $positive; return $this; @@ -311,6 +337,7 @@ public function getPositiveOrZero(): ?bool */ public function setPositiveOrZero(?bool $positiveOrZero): self { + $this->initialized['positiveOrZero'] = true; $this->positiveOrZero = $positiveOrZero; return $this; diff --git a/src/Model/Offer.php b/src/Model/Offer.php deleted file mode 100644 index 139cf46a..00000000 --- a/src/Model/Offer.php +++ /dev/null @@ -1,133 +0,0 @@ -options; - } - - /** - * @param string[]|null $options - */ - public function setOptions(?array $options): self - { - $this->options = $options; - - return $this; - } - - public function getId(): ?string - { - return $this->id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getSku(): ?string - { - return $this->sku; - } - - public function setSku(?string $sku): self - { - $this->sku = $sku; - - return $this; - } - - public function getName(): ?string - { - return $this->name; - } - - public function setName(?string $name): self - { - $this->name = $name; - - return $this; - } - - public function getSlug(): ?string - { - return $this->slug; - } - - public function setSlug(?string $slug): self - { - $this->slug = $slug; - - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): self - { - $this->description = $description; - - return $this; - } - - public function getPrice(): ?Price - { - return $this->price; - } - - public function setPrice(?Price $price): self - { - $this->price = $price; - - return $this; - } -} diff --git a/src/Model/OfferJsonld.php b/src/Model/OfferJsonld.php deleted file mode 100644 index d88179d7..00000000 --- a/src/Model/OfferJsonld.php +++ /dev/null @@ -1,184 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - /** - * @return mixed - */ - public function getContext() - { - return $this->context; - } - - public function setContext(mixed $context): self - { - $this->context = $context; - - return $this; - } - - /** - * @return string[]|null - */ - public function getOptions(): ?array - { - return $this->options; - } - - /** - * @param string[]|null $options - */ - public function setOptions(?array $options): self - { - $this->options = $options; - - return $this; - } - - public function getId2(): ?string - { - return $this->id2; - } - - public function setId2(?string $id2): self - { - $this->id2 = $id2; - - return $this; - } - - public function getSku(): ?string - { - return $this->sku; - } - - public function setSku(?string $sku): self - { - $this->sku = $sku; - - return $this; - } - - public function getName(): ?string - { - return $this->name; - } - - public function setName(?string $name): self - { - $this->name = $name; - - return $this; - } - - public function getSlug(): ?string - { - return $this->slug; - } - - public function setSlug(?string $slug): self - { - $this->slug = $slug; - - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): self - { - $this->description = $description; - - return $this; - } - - public function getPrice(): ?PriceJsonld - { - return $this->price; - } - - public function setPrice(?PriceJsonld $price): self - { - $this->price = $price; - - return $this; - } -} diff --git a/src/Model/OnPremiseRequestJsonldOnPremiseRequestRead.php b/src/Model/OnPremiseRequestJsonldOnPremiseRequestRead.php index ebc567a6..1ed3bd26 100644 --- a/src/Model/OnPremiseRequestJsonldOnPremiseRequestRead.php +++ b/src/Model/OnPremiseRequestJsonldOnPremiseRequestRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class OnPremiseRequestJsonldOnPremiseRequestRead +class OnPremiseRequestJsonldOnPremiseRequestRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -56,6 +65,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -68,6 +78,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -81,8 +92,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -95,6 +110,7 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; @@ -107,6 +123,7 @@ public function getFirstName(): ?string public function setFirstName(?string $firstName): self { + $this->initialized['firstName'] = true; $this->firstName = $firstName; return $this; @@ -119,6 +136,7 @@ public function getLastName(): ?string public function setLastName(?string $lastName): self { + $this->initialized['lastName'] = true; $this->lastName = $lastName; return $this; @@ -131,6 +149,7 @@ public function getEmail(): ?string public function setEmail(?string $email): self { + $this->initialized['email'] = true; $this->email = $email; return $this; @@ -143,6 +162,7 @@ public function getMessage(): ?string public function setMessage(?string $message): self { + $this->initialized['message'] = true; $this->message = $message; return $this; @@ -155,6 +175,7 @@ public function getCreatedAt(): ?\DateTime public function setCreatedAt(?\DateTime $createdAt): self { + $this->initialized['createdAt'] = true; $this->createdAt = $createdAt; return $this; diff --git a/src/Model/OnPremiseRequestJsonldOnPremiseRequestWrite.php b/src/Model/OnPremiseRequestJsonldOnPremiseRequestWrite.php index b91af77d..93ec52c9 100644 --- a/src/Model/OnPremiseRequestJsonldOnPremiseRequestWrite.php +++ b/src/Model/OnPremiseRequestJsonldOnPremiseRequestWrite.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class OnPremiseRequestJsonldOnPremiseRequestWrite +class OnPremiseRequestJsonldOnPremiseRequestWrite extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -49,8 +58,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -63,6 +76,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -75,6 +89,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -87,6 +102,7 @@ public function getFirstName(): ?string public function setFirstName(?string $firstName): self { + $this->initialized['firstName'] = true; $this->firstName = $firstName; return $this; @@ -99,6 +115,7 @@ public function getLastName(): ?string public function setLastName(?string $lastName): self { + $this->initialized['lastName'] = true; $this->lastName = $lastName; return $this; @@ -111,6 +128,7 @@ public function getEmail(): ?string public function setEmail(?string $email): self { + $this->initialized['email'] = true; $this->email = $email; return $this; @@ -123,6 +141,7 @@ public function getMessage(): ?string public function setMessage(?string $message): self { + $this->initialized['message'] = true; $this->message = $message; return $this; diff --git a/src/Model/OnPremiseRequestOnPremiseRequestRead.php b/src/Model/OnPremiseRequestOnPremiseRequestRead.php index bc394863..d93d5a22 100644 --- a/src/Model/OnPremiseRequestOnPremiseRequestRead.php +++ b/src/Model/OnPremiseRequestOnPremiseRequestRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class OnPremiseRequestOnPremiseRequestRead +class OnPremiseRequestOnPremiseRequestRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -44,6 +53,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -56,6 +66,7 @@ public function getFirstName(): ?string public function setFirstName(?string $firstName): self { + $this->initialized['firstName'] = true; $this->firstName = $firstName; return $this; @@ -68,6 +79,7 @@ public function getLastName(): ?string public function setLastName(?string $lastName): self { + $this->initialized['lastName'] = true; $this->lastName = $lastName; return $this; @@ -80,6 +92,7 @@ public function getEmail(): ?string public function setEmail(?string $email): self { + $this->initialized['email'] = true; $this->email = $email; return $this; @@ -92,6 +105,7 @@ public function getMessage(): ?string public function setMessage(?string $message): self { + $this->initialized['message'] = true; $this->message = $message; return $this; @@ -104,6 +118,7 @@ public function getCreatedAt(): ?\DateTime public function setCreatedAt(?\DateTime $createdAt): self { + $this->initialized['createdAt'] = true; $this->createdAt = $createdAt; return $this; diff --git a/src/Model/OnPremiseRequestOnPremiseRequestWrite.php b/src/Model/OnPremiseRequestOnPremiseRequestWrite.php index 7c5e3b55..2d9d524e 100644 --- a/src/Model/OnPremiseRequestOnPremiseRequestWrite.php +++ b/src/Model/OnPremiseRequestOnPremiseRequestWrite.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class OnPremiseRequestOnPremiseRequestWrite +class OnPremiseRequestOnPremiseRequestWrite extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -36,6 +45,7 @@ public function getFirstName(): ?string public function setFirstName(?string $firstName): self { + $this->initialized['firstName'] = true; $this->firstName = $firstName; return $this; @@ -48,6 +58,7 @@ public function getLastName(): ?string public function setLastName(?string $lastName): self { + $this->initialized['lastName'] = true; $this->lastName = $lastName; return $this; @@ -60,6 +71,7 @@ public function getEmail(): ?string public function setEmail(?string $email): self { + $this->initialized['email'] = true; $this->email = $email; return $this; @@ -72,6 +84,7 @@ public function getMessage(): ?string public function setMessage(?string $message): self { + $this->initialized['message'] = true; $this->message = $message; return $this; diff --git a/src/Model/OpaqueInterfaceJsonld.php b/src/Model/OpaqueInterfaceJsonld.php new file mode 100644 index 00000000..27694e68 --- /dev/null +++ b/src/Model/OpaqueInterfaceJsonld.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } +} diff --git a/src/Model/Option.php b/src/Model/Option.php index 61d344c8..4a4957df 100644 --- a/src/Model/Option.php +++ b/src/Model/Option.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class Option +class Option extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -32,14 +41,38 @@ class Option * @var string|null */ protected $slug; + /** + * @var string|null + */ + protected $shortDescription; /** * @var string|null */ protected $description; /** - * @var Price|null + * @var string[]|null + */ + protected $features; + /** + * @var Price[]|null */ - protected $price; + protected $priceList; + /** + * @var int|null + */ + protected $rank; + /** + * @var bool|null + */ + protected $active; + /** + * @var \DateTime|null + */ + protected $activeFrom; + /** + * @var \DateTime|null + */ + protected $activeUntil; public function getOffer(): ?string { @@ -48,6 +81,7 @@ public function getOffer(): ?string public function setOffer(?string $offer): self { + $this->initialized['offer'] = true; $this->offer = $offer; return $this; @@ -60,6 +94,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -72,6 +107,7 @@ public function getSku(): ?string public function setSku(?string $sku): self { + $this->initialized['sku'] = true; $this->sku = $sku; return $this; @@ -84,6 +120,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -96,11 +133,25 @@ public function getSlug(): ?string public function setSlug(?string $slug): self { + $this->initialized['slug'] = true; $this->slug = $slug; return $this; } + public function getShortDescription(): ?string + { + return $this->shortDescription; + } + + public function setShortDescription(?string $shortDescription): self + { + $this->initialized['shortDescription'] = true; + $this->shortDescription = $shortDescription; + + return $this; + } + public function getDescription(): ?string { return $this->description; @@ -108,19 +159,98 @@ public function getDescription(): ?string public function setDescription(?string $description): self { + $this->initialized['description'] = true; $this->description = $description; return $this; } - public function getPrice(): ?Price + /** + * @return string[]|null + */ + public function getFeatures(): ?array + { + return $this->features; + } + + /** + * @param string[]|null $features + */ + public function setFeatures(?array $features): self + { + $this->initialized['features'] = true; + $this->features = $features; + + return $this; + } + + /** + * @return Price[]|null + */ + public function getPriceList(): ?array + { + return $this->priceList; + } + + /** + * @param Price[]|null $priceList + */ + public function setPriceList(?array $priceList): self + { + $this->initialized['priceList'] = true; + $this->priceList = $priceList; + + return $this; + } + + public function getRank(): ?int + { + return $this->rank; + } + + public function setRank(?int $rank): self + { + $this->initialized['rank'] = true; + $this->rank = $rank; + + return $this; + } + + public function getActive(): ?bool + { + return $this->active; + } + + public function setActive(?bool $active): self + { + $this->initialized['active'] = true; + $this->active = $active; + + return $this; + } + + public function getActiveFrom(): ?\DateTime + { + return $this->activeFrom; + } + + public function setActiveFrom(?\DateTime $activeFrom): self + { + $this->initialized['activeFrom'] = true; + $this->activeFrom = $activeFrom; + + return $this; + } + + public function getActiveUntil(): ?\DateTime { - return $this->price; + return $this->activeUntil; } - public function setPrice(?Price $price): self + public function setActiveUntil(?\DateTime $activeUntil): self { - $this->price = $price; + $this->initialized['activeUntil'] = true; + $this->activeUntil = $activeUntil; return $this; } diff --git a/src/Model/OptionJsonld.php b/src/Model/OptionJsonld.php index 354a2abd..a2e045c1 100644 --- a/src/Model/OptionJsonld.php +++ b/src/Model/OptionJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class OptionJsonld +class OptionJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -40,14 +49,38 @@ class OptionJsonld * @var string|null */ protected $slug; + /** + * @var string|null + */ + protected $shortDescription; /** * @var string|null */ protected $description; /** - * @var PriceJsonld|null + * @var string[]|null + */ + protected $features; + /** + * @var PriceJsonld[]|null */ - protected $price; + protected $priceList; + /** + * @var int|null + */ + protected $rank; + /** + * @var bool|null + */ + protected $active; + /** + * @var \DateTime|null + */ + protected $activeFrom; + /** + * @var \DateTime|null + */ + protected $activeUntil; public function getId(): ?string { @@ -56,6 +89,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -68,6 +102,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -80,6 +115,7 @@ public function getOffer(): ?string public function setOffer(?string $offer): self { + $this->initialized['offer'] = true; $this->offer = $offer; return $this; @@ -92,6 +128,7 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; @@ -104,6 +141,7 @@ public function getSku(): ?string public function setSku(?string $sku): self { + $this->initialized['sku'] = true; $this->sku = $sku; return $this; @@ -116,6 +154,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -128,11 +167,25 @@ public function getSlug(): ?string public function setSlug(?string $slug): self { + $this->initialized['slug'] = true; $this->slug = $slug; return $this; } + public function getShortDescription(): ?string + { + return $this->shortDescription; + } + + public function setShortDescription(?string $shortDescription): self + { + $this->initialized['shortDescription'] = true; + $this->shortDescription = $shortDescription; + + return $this; + } + public function getDescription(): ?string { return $this->description; @@ -140,19 +193,98 @@ public function getDescription(): ?string public function setDescription(?string $description): self { + $this->initialized['description'] = true; $this->description = $description; return $this; } - public function getPrice(): ?PriceJsonld + /** + * @return string[]|null + */ + public function getFeatures(): ?array + { + return $this->features; + } + + /** + * @param string[]|null $features + */ + public function setFeatures(?array $features): self + { + $this->initialized['features'] = true; + $this->features = $features; + + return $this; + } + + /** + * @return PriceJsonld[]|null + */ + public function getPriceList(): ?array + { + return $this->priceList; + } + + /** + * @param PriceJsonld[]|null $priceList + */ + public function setPriceList(?array $priceList): self + { + $this->initialized['priceList'] = true; + $this->priceList = $priceList; + + return $this; + } + + public function getRank(): ?int + { + return $this->rank; + } + + public function setRank(?int $rank): self + { + $this->initialized['rank'] = true; + $this->rank = $rank; + + return $this; + } + + public function getActive(): ?bool + { + return $this->active; + } + + public function setActive(?bool $active): self + { + $this->initialized['active'] = true; + $this->active = $active; + + return $this; + } + + public function getActiveFrom(): ?\DateTime + { + return $this->activeFrom; + } + + public function setActiveFrom(?\DateTime $activeFrom): self + { + $this->initialized['activeFrom'] = true; + $this->activeFrom = $activeFrom; + + return $this; + } + + public function getActiveUntil(): ?\DateTime { - return $this->price; + return $this->activeUntil; } - public function setPrice(?PriceJsonld $price): self + public function setActiveUntil(?\DateTime $activeUntil): self { - $this->price = $price; + $this->initialized['activeUntil'] = true; + $this->activeUntil = $activeUntil; return $this; } diff --git a/src/Model/Organization.php b/src/Model/Organization.php index 21416d8d..fc5037f3 100644 --- a/src/Model/Organization.php +++ b/src/Model/Organization.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class Organization +class Organization extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -28,6 +37,10 @@ class Organization * @var string|null */ protected $slug; + /** + * @var string|null + */ + protected $stripeCode; /** * @var string[]|null */ @@ -40,6 +53,10 @@ class Organization * @var string[]|null */ protected $workspaces; + /** + * @var \DateTime|null + */ + protected $activeUntil; public function getId(): ?string { @@ -48,6 +65,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -66,6 +84,7 @@ public function getAuthorizations(): ?array */ public function setAuthorizations(?array $authorizations): self { + $this->initialized['authorizations'] = true; $this->authorizations = $authorizations; return $this; @@ -78,6 +97,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -90,11 +110,25 @@ public function getSlug(): ?string public function setSlug(?string $slug): self { + $this->initialized['slug'] = true; $this->slug = $slug; return $this; } + public function getStripeCode(): ?string + { + return $this->stripeCode; + } + + public function setStripeCode(?string $stripeCode): self + { + $this->initialized['stripeCode'] = true; + $this->stripeCode = $stripeCode; + + return $this; + } + /** * @return string[]|null */ @@ -108,6 +142,7 @@ public function getUsers(): ?array */ public function setUsers(?array $users): self { + $this->initialized['users'] = true; $this->users = $users; return $this; @@ -126,6 +161,7 @@ public function getExternalCollaborators(): ?array */ public function setExternalCollaborators(?array $externalCollaborators): self { + $this->initialized['externalCollaborators'] = true; $this->externalCollaborators = $externalCollaborators; return $this; @@ -144,8 +180,22 @@ public function getWorkspaces(): ?array */ public function setWorkspaces(?array $workspaces): self { + $this->initialized['workspaces'] = true; $this->workspaces = $workspaces; return $this; } + + public function getActiveUntil(): ?\DateTime + { + return $this->activeUntil; + } + + public function setActiveUntil(?\DateTime $activeUntil): self + { + $this->initialized['activeUntil'] = true; + $this->activeUntil = $activeUntil; + + return $this; + } } diff --git a/src/Model/OrganizationAddCollaborators.php b/src/Model/OrganizationAddCollaborators.php new file mode 100644 index 00000000..fbab5184 --- /dev/null +++ b/src/Model/OrganizationAddCollaborators.php @@ -0,0 +1,47 @@ +initialized); + } + /** + * @var string[]|null + */ + protected $externalCollaborators; + + /** + * @return string[]|null + */ + public function getExternalCollaborators(): ?array + { + return $this->externalCollaborators; + } + + /** + * @param string[]|null $externalCollaborators + */ + public function setExternalCollaborators(?array $externalCollaborators): self + { + $this->initialized['externalCollaborators'] = true; + $this->externalCollaborators = $externalCollaborators; + + return $this; + } +} diff --git a/src/Model/OrganizationIdJsonld.php b/src/Model/OrganizationIdJsonld.php deleted file mode 100644 index 9498c72b..00000000 --- a/src/Model/OrganizationIdJsonld.php +++ /dev/null @@ -1,66 +0,0 @@ -context; - } - - public function setContext(mixed $context): self - { - $this->context = $context; - - return $this; - } - - public function getId(): ?string - { - return $this->id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } -} diff --git a/src/Model/OrganizationJsonld.php b/src/Model/OrganizationJsonld.php index 423dee66..4ff1e0dc 100644 --- a/src/Model/OrganizationJsonld.php +++ b/src/Model/OrganizationJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class OrganizationJsonld +class OrganizationJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -40,6 +49,10 @@ class OrganizationJsonld * @var string|null */ protected $slug; + /** + * @var string|null + */ + protected $stripeCode; /** * @var string[]|null */ @@ -52,6 +65,10 @@ class OrganizationJsonld * @var string[]|null */ protected $workspaces; + /** + * @var \DateTime|null + */ + protected $activeUntil; /** * @return mixed @@ -61,8 +78,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -75,6 +96,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -87,6 +109,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -99,6 +122,7 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; @@ -117,6 +141,7 @@ public function getAuthorizations(): ?array */ public function setAuthorizations(?array $authorizations): self { + $this->initialized['authorizations'] = true; $this->authorizations = $authorizations; return $this; @@ -129,6 +154,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -141,11 +167,25 @@ public function getSlug(): ?string public function setSlug(?string $slug): self { + $this->initialized['slug'] = true; $this->slug = $slug; return $this; } + public function getStripeCode(): ?string + { + return $this->stripeCode; + } + + public function setStripeCode(?string $stripeCode): self + { + $this->initialized['stripeCode'] = true; + $this->stripeCode = $stripeCode; + + return $this; + } + /** * @return string[]|null */ @@ -159,6 +199,7 @@ public function getUsers(): ?array */ public function setUsers(?array $users): self { + $this->initialized['users'] = true; $this->users = $users; return $this; @@ -177,6 +218,7 @@ public function getExternalCollaborators(): ?array */ public function setExternalCollaborators(?array $externalCollaborators): self { + $this->initialized['externalCollaborators'] = true; $this->externalCollaborators = $externalCollaborators; return $this; @@ -195,8 +237,22 @@ public function getWorkspaces(): ?array */ public function setWorkspaces(?array $workspaces): self { + $this->initialized['workspaces'] = true; $this->workspaces = $workspaces; return $this; } + + public function getActiveUntil(): ?\DateTime + { + return $this->activeUntil; + } + + public function setActiveUntil(?\DateTime $activeUntil): self + { + $this->initialized['activeUntil'] = true; + $this->activeUntil = $activeUntil; + + return $this; + } } diff --git a/src/Model/OrganizationJsonldAddCollaborators.php b/src/Model/OrganizationJsonldAddCollaborators.php new file mode 100644 index 00000000..f402ff96 --- /dev/null +++ b/src/Model/OrganizationJsonldAddCollaborators.php @@ -0,0 +1,104 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string[]|null + */ + protected $externalCollaborators; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + /** + * @return string[]|null + */ + public function getExternalCollaborators(): ?array + { + return $this->externalCollaborators; + } + + /** + * @param string[]|null $externalCollaborators + */ + public function setExternalCollaborators(?array $externalCollaborators): self + { + $this->initialized['externalCollaborators'] = true; + $this->externalCollaborators = $externalCollaborators; + + return $this; + } +} diff --git a/src/Model/Pipeline.php b/src/Model/Pipeline.php new file mode 100644 index 00000000..1ccdde13 --- /dev/null +++ b/src/Model/Pipeline.php @@ -0,0 +1,64 @@ +initialized); + } + /** + * @var Step[]|null + */ + protected $steps; + /** + * @var string|null + */ + protected $code; + + /** + * @return Step[]|null + */ + public function getSteps(): ?array + { + return $this->steps; + } + + /** + * @param Step[]|null $steps + */ + public function setSteps(?array $steps): self + { + $this->initialized['steps'] = true; + $this->steps = $steps; + + return $this; + } + + public function getCode(): ?string + { + return $this->code; + } + + public function setCode(?string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } +} diff --git a/src/Model/PipelineAddAfterPipelineStepCommandInput.php b/src/Model/PipelineAddAfterPipelineStepCommandInput.php index 06f2d023..997af030 100644 --- a/src/Model/PipelineAddAfterPipelineStepCommandInput.php +++ b/src/Model/PipelineAddAfterPipelineStepCommandInput.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineAddAfterPipelineStepCommandInput +class PipelineAddAfterPipelineStepCommandInput extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -21,7 +30,7 @@ class PipelineAddAfterPipelineStepCommandInput */ protected $label; /** - * @var string[][]|null + * @var string[]|null */ protected $configuration; /** @@ -36,6 +45,7 @@ public function getCode(): ?string public function setCode(?string $code): self { + $this->initialized['code'] = true; $this->code = $code; return $this; @@ -48,13 +58,14 @@ public function getLabel(): ?string public function setLabel(?string $label): self { + $this->initialized['label'] = true; $this->label = $label; return $this; } /** - * @return string[][]|null + * @return string[]|null */ public function getConfiguration(): ?iterable { @@ -62,10 +73,11 @@ public function getConfiguration(): ?iterable } /** - * @param string[][]|null $configuration + * @param string[]|null $configuration */ public function setConfiguration(?iterable $configuration): self { + $this->initialized['configuration'] = true; $this->configuration = $configuration; return $this; @@ -84,6 +96,7 @@ public function getProbes(): ?array */ public function setProbes(?array $probes): self { + $this->initialized['probes'] = true; $this->probes = $probes; return $this; diff --git a/src/Model/PipelineAddAfterPipelineStepCommandInputJsonld.php b/src/Model/PipelineAddAfterPipelineStepCommandInputJsonld.php index b6364164..3f196546 100644 --- a/src/Model/PipelineAddAfterPipelineStepCommandInputJsonld.php +++ b/src/Model/PipelineAddAfterPipelineStepCommandInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineAddAfterPipelineStepCommandInputJsonld +class PipelineAddAfterPipelineStepCommandInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,7 +42,7 @@ class PipelineAddAfterPipelineStepCommandInputJsonld */ protected $label; /** - * @var string[][]|null + * @var string[]|null */ protected $configuration; /** @@ -49,8 +58,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -63,6 +76,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -75,6 +89,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -87,6 +102,7 @@ public function getCode(): ?string public function setCode(?string $code): self { + $this->initialized['code'] = true; $this->code = $code; return $this; @@ -99,13 +115,14 @@ public function getLabel(): ?string public function setLabel(?string $label): self { + $this->initialized['label'] = true; $this->label = $label; return $this; } /** - * @return string[][]|null + * @return string[]|null */ public function getConfiguration(): ?iterable { @@ -113,10 +130,11 @@ public function getConfiguration(): ?iterable } /** - * @param string[][]|null $configuration + * @param string[]|null $configuration */ public function setConfiguration(?iterable $configuration): self { + $this->initialized['configuration'] = true; $this->configuration = $configuration; return $this; @@ -135,6 +153,7 @@ public function getProbes(): ?array */ public function setProbes(?array $probes): self { + $this->initialized['probes'] = true; $this->probes = $probes; return $this; diff --git a/src/Model/PipelineAddAfterPipelineStepCommandJsonldRead.php b/src/Model/PipelineAddAfterPipelineStepCommandJsonldRead.php index 57fa9223..8f0dedd7 100644 --- a/src/Model/PipelineAddAfterPipelineStepCommandJsonldRead.php +++ b/src/Model/PipelineAddAfterPipelineStepCommandJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineAddAfterPipelineStepCommandJsonldRead +class PipelineAddAfterPipelineStepCommandJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/PipelineAddBeforePipelineStepCommandInput.php b/src/Model/PipelineAddBeforePipelineStepCommandInput.php index 10aaedd3..28d334fb 100644 --- a/src/Model/PipelineAddBeforePipelineStepCommandInput.php +++ b/src/Model/PipelineAddBeforePipelineStepCommandInput.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineAddBeforePipelineStepCommandInput +class PipelineAddBeforePipelineStepCommandInput extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -21,7 +30,7 @@ class PipelineAddBeforePipelineStepCommandInput */ protected $label; /** - * @var string[][]|null + * @var string[]|null */ protected $configuration; /** @@ -36,6 +45,7 @@ public function getCode(): ?string public function setCode(?string $code): self { + $this->initialized['code'] = true; $this->code = $code; return $this; @@ -48,13 +58,14 @@ public function getLabel(): ?string public function setLabel(?string $label): self { + $this->initialized['label'] = true; $this->label = $label; return $this; } /** - * @return string[][]|null + * @return string[]|null */ public function getConfiguration(): ?iterable { @@ -62,10 +73,11 @@ public function getConfiguration(): ?iterable } /** - * @param string[][]|null $configuration + * @param string[]|null $configuration */ public function setConfiguration(?iterable $configuration): self { + $this->initialized['configuration'] = true; $this->configuration = $configuration; return $this; @@ -84,6 +96,7 @@ public function getProbes(): ?array */ public function setProbes(?array $probes): self { + $this->initialized['probes'] = true; $this->probes = $probes; return $this; diff --git a/src/Model/PipelineAddBeforePipelineStepCommandInputJsonld.php b/src/Model/PipelineAddBeforePipelineStepCommandInputJsonld.php index ebaa5d86..4e8d7860 100644 --- a/src/Model/PipelineAddBeforePipelineStepCommandInputJsonld.php +++ b/src/Model/PipelineAddBeforePipelineStepCommandInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineAddBeforePipelineStepCommandInputJsonld +class PipelineAddBeforePipelineStepCommandInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,7 +42,7 @@ class PipelineAddBeforePipelineStepCommandInputJsonld */ protected $label; /** - * @var string[][]|null + * @var string[]|null */ protected $configuration; /** @@ -49,8 +58,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -63,6 +76,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -75,6 +89,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -87,6 +102,7 @@ public function getCode(): ?string public function setCode(?string $code): self { + $this->initialized['code'] = true; $this->code = $code; return $this; @@ -99,13 +115,14 @@ public function getLabel(): ?string public function setLabel(?string $label): self { + $this->initialized['label'] = true; $this->label = $label; return $this; } /** - * @return string[][]|null + * @return string[]|null */ public function getConfiguration(): ?iterable { @@ -113,10 +130,11 @@ public function getConfiguration(): ?iterable } /** - * @param string[][]|null $configuration + * @param string[]|null $configuration */ public function setConfiguration(?iterable $configuration): self { + $this->initialized['configuration'] = true; $this->configuration = $configuration; return $this; @@ -135,6 +153,7 @@ public function getProbes(): ?array */ public function setProbes(?array $probes): self { + $this->initialized['probes'] = true; $this->probes = $probes; return $this; diff --git a/src/Model/PipelineAddBeforePipelineStepCommandJsonldRead.php b/src/Model/PipelineAddBeforePipelineStepCommandJsonldRead.php index 64eb5452..9c65bbc4 100644 --- a/src/Model/PipelineAddBeforePipelineStepCommandJsonldRead.php +++ b/src/Model/PipelineAddBeforePipelineStepCommandJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineAddBeforePipelineStepCommandJsonldRead +class PipelineAddBeforePipelineStepCommandJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/PipelineAddPipelineComposerAuthCommandInput.php b/src/Model/PipelineAddPipelineComposerAuthCommandInput.php index ecc335b7..8d5bd63e 100644 --- a/src/Model/PipelineAddPipelineComposerAuthCommandInput.php +++ b/src/Model/PipelineAddPipelineComposerAuthCommandInput.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineAddPipelineComposerAuthCommandInput +class PipelineAddPipelineComposerAuthCommandInput extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -28,6 +37,7 @@ public function getUrl(): ?string public function setUrl(?string $url): self { + $this->initialized['url'] = true; $this->url = $url; return $this; @@ -40,6 +50,7 @@ public function getToken(): ?string public function setToken(?string $token): self { + $this->initialized['token'] = true; $this->token = $token; return $this; diff --git a/src/Model/PipelineAddPipelineComposerAuthCommandInputJsonld.php b/src/Model/PipelineAddPipelineComposerAuthCommandInputJsonld.php index 570872ad..baa97c3b 100644 --- a/src/Model/PipelineAddPipelineComposerAuthCommandInputJsonld.php +++ b/src/Model/PipelineAddPipelineComposerAuthCommandInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineAddPipelineComposerAuthCommandInputJsonld +class PipelineAddPipelineComposerAuthCommandInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -41,8 +50,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -55,6 +68,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -67,6 +81,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -79,6 +94,7 @@ public function getUrl(): ?string public function setUrl(?string $url): self { + $this->initialized['url'] = true; $this->url = $url; return $this; @@ -91,6 +107,7 @@ public function getToken(): ?string public function setToken(?string $token): self { + $this->initialized['token'] = true; $this->token = $token; return $this; diff --git a/src/Model/PipelineAddPipelineComposerAuthCommandJsonldRead.php b/src/Model/PipelineAddPipelineComposerAuthCommandJsonldRead.php index 1d61b2a8..d734caba 100644 --- a/src/Model/PipelineAddPipelineComposerAuthCommandJsonldRead.php +++ b/src/Model/PipelineAddPipelineComposerAuthCommandJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineAddPipelineComposerAuthCommandJsonldRead +class PipelineAddPipelineComposerAuthCommandJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/PipelineAddPipelineComposerPSR4AutoloadCommandInput.php b/src/Model/PipelineAddPipelineComposerPSR4AutoloadCommandInput.php index 062a4f6a..a6784a10 100644 --- a/src/Model/PipelineAddPipelineComposerPSR4AutoloadCommandInput.php +++ b/src/Model/PipelineAddPipelineComposerPSR4AutoloadCommandInput.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineAddPipelineComposerPSR4AutoloadCommandInput +class PipelineAddPipelineComposerPSR4AutoloadCommandInput extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -28,6 +37,7 @@ public function getNamespace(): ?string public function setNamespace(?string $namespace): self { + $this->initialized['namespace'] = true; $this->namespace = $namespace; return $this; @@ -46,6 +56,7 @@ public function getPaths(): ?array */ public function setPaths(?array $paths): self { + $this->initialized['paths'] = true; $this->paths = $paths; return $this; diff --git a/src/Model/PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonld.php b/src/Model/PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonld.php index 7f379b6f..26c0358f 100644 --- a/src/Model/PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonld.php +++ b/src/Model/PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonld +class PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -41,8 +50,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -55,6 +68,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -67,6 +81,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -79,6 +94,7 @@ public function getNamespace(): ?string public function setNamespace(?string $namespace): self { + $this->initialized['namespace'] = true; $this->namespace = $namespace; return $this; @@ -97,6 +113,7 @@ public function getPaths(): ?array */ public function setPaths(?array $paths): self { + $this->initialized['paths'] = true; $this->paths = $paths; return $this; diff --git a/src/Model/PipelineAddPipelineComposerPSR4AutoloadCommandJsonldRead.php b/src/Model/PipelineAddPipelineComposerPSR4AutoloadCommandJsonldRead.php index e82c7a4f..b889a7c4 100644 --- a/src/Model/PipelineAddPipelineComposerPSR4AutoloadCommandJsonldRead.php +++ b/src/Model/PipelineAddPipelineComposerPSR4AutoloadCommandJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineAddPipelineComposerPSR4AutoloadCommandJsonldRead +class PipelineAddPipelineComposerPSR4AutoloadCommandJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/PipelineAddPipelineComposerPackageCommandInput.php b/src/Model/PipelineAddPipelineComposerPackageCommandInput.php index 168a998f..0ea6a699 100644 --- a/src/Model/PipelineAddPipelineComposerPackageCommandInput.php +++ b/src/Model/PipelineAddPipelineComposerPackageCommandInput.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineAddPipelineComposerPackageCommandInput +class PipelineAddPipelineComposerPackageCommandInput extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -28,6 +37,7 @@ public function getPackage(): ?string public function setPackage(?string $package): self { + $this->initialized['package'] = true; $this->package = $package; return $this; @@ -40,6 +50,7 @@ public function getVersion(): ?string public function setVersion(?string $version): self { + $this->initialized['version'] = true; $this->version = $version; return $this; diff --git a/src/Model/PipelineAddPipelineComposerPackageCommandInputJsonld.php b/src/Model/PipelineAddPipelineComposerPackageCommandInputJsonld.php index 8d704ebf..816b7d1f 100644 --- a/src/Model/PipelineAddPipelineComposerPackageCommandInputJsonld.php +++ b/src/Model/PipelineAddPipelineComposerPackageCommandInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineAddPipelineComposerPackageCommandInputJsonld +class PipelineAddPipelineComposerPackageCommandInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -41,8 +50,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -55,6 +68,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -67,6 +81,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -79,6 +94,7 @@ public function getPackage(): ?string public function setPackage(?string $package): self { + $this->initialized['package'] = true; $this->package = $package; return $this; @@ -91,6 +107,7 @@ public function getVersion(): ?string public function setVersion(?string $version): self { + $this->initialized['version'] = true; $this->version = $version; return $this; diff --git a/src/Model/PipelineAddPipelineComposerPackageCommandJsonldRead.php b/src/Model/PipelineAddPipelineComposerPackageCommandJsonldRead.php index fd8fcfcd..43948aa9 100644 --- a/src/Model/PipelineAddPipelineComposerPackageCommandJsonldRead.php +++ b/src/Model/PipelineAddPipelineComposerPackageCommandJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineAddPipelineComposerPackageCommandJsonldRead +class PipelineAddPipelineComposerPackageCommandJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/PipelineAddPipelineComposerRepositoryCommandInput.php b/src/Model/PipelineAddPipelineComposerRepositoryCommandInput.php index 9e009f37..d39de2bf 100644 --- a/src/Model/PipelineAddPipelineComposerRepositoryCommandInput.php +++ b/src/Model/PipelineAddPipelineComposerRepositoryCommandInput.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineAddPipelineComposerRepositoryCommandInput +class PipelineAddPipelineComposerRepositoryCommandInput extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -32,6 +41,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -44,6 +54,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -56,6 +67,7 @@ public function getUrl(): ?string public function setUrl(?string $url): self { + $this->initialized['url'] = true; $this->url = $url; return $this; diff --git a/src/Model/PipelineAddPipelineComposerRepositoryCommandInputJsonld.php b/src/Model/PipelineAddPipelineComposerRepositoryCommandInputJsonld.php index d97a615a..aa92372b 100644 --- a/src/Model/PipelineAddPipelineComposerRepositoryCommandInputJsonld.php +++ b/src/Model/PipelineAddPipelineComposerRepositoryCommandInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineAddPipelineComposerRepositoryCommandInputJsonld +class PipelineAddPipelineComposerRepositoryCommandInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -45,8 +54,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -59,6 +72,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -71,6 +85,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -83,6 +98,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -95,6 +111,7 @@ public function getType2(): ?string public function setType2(?string $type2): self { + $this->initialized['type2'] = true; $this->type2 = $type2; return $this; @@ -107,6 +124,7 @@ public function getUrl(): ?string public function setUrl(?string $url): self { + $this->initialized['url'] = true; $this->url = $url; return $this; diff --git a/src/Model/PipelineAddPipelineComposerRepositoryCommandJsonldRead.php b/src/Model/PipelineAddPipelineComposerRepositoryCommandJsonldRead.php index 6294f7cf..fa069deb 100644 --- a/src/Model/PipelineAddPipelineComposerRepositoryCommandJsonldRead.php +++ b/src/Model/PipelineAddPipelineComposerRepositoryCommandJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineAddPipelineComposerRepositoryCommandJsonldRead +class PipelineAddPipelineComposerRepositoryCommandJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/PipelineAddPipelineStepProbCommandInput.php b/src/Model/PipelineAddPipelineStepProbCommandInput.php deleted file mode 100644 index 89c98345..00000000 --- a/src/Model/PipelineAddPipelineStepProbCommandInput.php +++ /dev/null @@ -1,31 +0,0 @@ -probe; - } - - public function setProbe(?Probe $probe): self - { - $this->probe = $probe; - - return $this; - } -} diff --git a/src/Model/PipelineAddPipelineStepProbCommandInputJsonld.php b/src/Model/PipelineAddPipelineStepProbCommandInputJsonld.php deleted file mode 100644 index e83ea685..00000000 --- a/src/Model/PipelineAddPipelineStepProbCommandInputJsonld.php +++ /dev/null @@ -1,82 +0,0 @@ -context; - } - - public function setContext(mixed $context): self - { - $this->context = $context; - - return $this; - } - - public function getId(): ?string - { - return $this->id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getProbe(): ?ProbeJsonld - { - return $this->probe; - } - - public function setProbe(?ProbeJsonld $probe): self - { - $this->probe = $probe; - - return $this; - } -} diff --git a/src/Model/PipelineAddPipelineStepProbeCommandInput.php b/src/Model/PipelineAddPipelineStepProbeCommandInput.php new file mode 100644 index 00000000..3d9ada66 --- /dev/null +++ b/src/Model/PipelineAddPipelineStepProbeCommandInput.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var Probe|null + */ + protected $probe; + + public function getProbe(): ?Probe + { + return $this->probe; + } + + public function setProbe(?Probe $probe): self + { + $this->initialized['probe'] = true; + $this->probe = $probe; + + return $this; + } +} diff --git a/src/Model/PipelineAddPipelineStepProbeCommandInputJsonld.php b/src/Model/PipelineAddPipelineStepProbeCommandInputJsonld.php new file mode 100644 index 00000000..0993d569 --- /dev/null +++ b/src/Model/PipelineAddPipelineStepProbeCommandInputJsonld.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var ProbeJsonld|null + */ + protected $probe; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getProbe(): ?ProbeJsonld + { + return $this->probe; + } + + public function setProbe(?ProbeJsonld $probe): self + { + $this->initialized['probe'] = true; + $this->probe = $probe; + + return $this; + } +} diff --git a/src/Model/PipelineAddPipelineStepProbeCommandJsonldRead.php b/src/Model/PipelineAddPipelineStepProbeCommandJsonldRead.php index 94de2fba..10e01fbe 100644 --- a/src/Model/PipelineAddPipelineStepProbeCommandJsonldRead.php +++ b/src/Model/PipelineAddPipelineStepProbeCommandJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineAddPipelineStepProbeCommandJsonldRead +class PipelineAddPipelineStepProbeCommandJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/PipelineAppendPipelineStepCommandInput.php b/src/Model/PipelineAppendPipelineStepCommandInput.php index 82653cb7..a429401d 100644 --- a/src/Model/PipelineAppendPipelineStepCommandInput.php +++ b/src/Model/PipelineAppendPipelineStepCommandInput.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineAppendPipelineStepCommandInput +class PipelineAppendPipelineStepCommandInput extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -21,7 +30,7 @@ class PipelineAppendPipelineStepCommandInput */ protected $label; /** - * @var string[][]|null + * @var string[]|null */ protected $configuration; /** @@ -36,6 +45,7 @@ public function getCode(): ?string public function setCode(?string $code): self { + $this->initialized['code'] = true; $this->code = $code; return $this; @@ -48,13 +58,14 @@ public function getLabel(): ?string public function setLabel(?string $label): self { + $this->initialized['label'] = true; $this->label = $label; return $this; } /** - * @return string[][]|null + * @return string[]|null */ public function getConfiguration(): ?iterable { @@ -62,10 +73,11 @@ public function getConfiguration(): ?iterable } /** - * @param string[][]|null $configuration + * @param string[]|null $configuration */ public function setConfiguration(?iterable $configuration): self { + $this->initialized['configuration'] = true; $this->configuration = $configuration; return $this; @@ -84,6 +96,7 @@ public function getProbes(): ?array */ public function setProbes(?array $probes): self { + $this->initialized['probes'] = true; $this->probes = $probes; return $this; diff --git a/src/Model/PipelineAppendPipelineStepCommandInputJsonld.php b/src/Model/PipelineAppendPipelineStepCommandInputJsonld.php index 2f5b3c6d..8a7c56f4 100644 --- a/src/Model/PipelineAppendPipelineStepCommandInputJsonld.php +++ b/src/Model/PipelineAppendPipelineStepCommandInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineAppendPipelineStepCommandInputJsonld +class PipelineAppendPipelineStepCommandInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,7 +42,7 @@ class PipelineAppendPipelineStepCommandInputJsonld */ protected $label; /** - * @var string[][]|null + * @var string[]|null */ protected $configuration; /** @@ -49,8 +58,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -63,6 +76,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -75,6 +89,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -87,6 +102,7 @@ public function getCode(): ?string public function setCode(?string $code): self { + $this->initialized['code'] = true; $this->code = $code; return $this; @@ -99,13 +115,14 @@ public function getLabel(): ?string public function setLabel(?string $label): self { + $this->initialized['label'] = true; $this->label = $label; return $this; } /** - * @return string[][]|null + * @return string[]|null */ public function getConfiguration(): ?iterable { @@ -113,10 +130,11 @@ public function getConfiguration(): ?iterable } /** - * @param string[][]|null $configuration + * @param string[]|null $configuration */ public function setConfiguration(?iterable $configuration): self { + $this->initialized['configuration'] = true; $this->configuration = $configuration; return $this; @@ -135,6 +153,7 @@ public function getProbes(): ?array */ public function setProbes(?array $probes): self { + $this->initialized['probes'] = true; $this->probes = $probes; return $this; diff --git a/src/Model/PipelineAppendPipelineStepCommandJsonldRead.php b/src/Model/PipelineAppendPipelineStepCommandJsonldRead.php index bfd70cda..6a07d149 100644 --- a/src/Model/PipelineAppendPipelineStepCommandJsonldRead.php +++ b/src/Model/PipelineAppendPipelineStepCommandJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineAppendPipelineStepCommandJsonldRead +class PipelineAppendPipelineStepCommandJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/PipelineCompilePipelineCommandInputJsonld.php b/src/Model/PipelineCompilePipelineCommandInputJsonld.php index b1a502ca..0b9ec40d 100644 --- a/src/Model/PipelineCompilePipelineCommandInputJsonld.php +++ b/src/Model/PipelineCompilePipelineCommandInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineCompilePipelineCommandInputJsonld +class PipelineCompilePipelineCommandInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/PipelineCompilePipelineCommandJsonldRead.php b/src/Model/PipelineCompilePipelineCommandJsonldRead.php index 917aa482..4c8906be 100644 --- a/src/Model/PipelineCompilePipelineCommandJsonldRead.php +++ b/src/Model/PipelineCompilePipelineCommandJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineCompilePipelineCommandJsonldRead +class PipelineCompilePipelineCommandJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/PipelineDeclarePipelineCommandInput.php b/src/Model/PipelineDeclarePipelineCommandInput.php index 411377f1..8e5db3da 100644 --- a/src/Model/PipelineDeclarePipelineCommandInput.php +++ b/src/Model/PipelineDeclarePipelineCommandInput.php @@ -10,63 +10,36 @@ namespace Gyroscops\Api\Model; -class PipelineDeclarePipelineCommandInput +class PipelineDeclarePipelineCommandInput extends \ArrayObject { /** - * @var string|null - */ - protected $label; - /** - * @var string|null + * @var array */ - protected $code; + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** - * @var StepInput[]|null + * @var Step[]|null */ protected $steps; /** - * @var AutoloadInput[]|null + * @var Composer|null */ - protected $autoloads; + protected $composer; /** - * @var string[]|null - */ - protected $packages; - /** - * @var AddPipelineComposerRepositoryCommandInput[]|null + * @var string|null */ - protected $repositories; + protected $code; /** - * @var AddPipelineComposerAuthCommandInput[]|null + * @var string|null */ - protected $auths; - - public function getLabel(): ?string - { - return $this->label; - } - - public function setLabel(?string $label): self - { - $this->label = $label; - - return $this; - } - - public function getCode(): ?string - { - return $this->code; - } - - public function setCode(?string $code): self - { - $this->code = $code; - - return $this; - } + protected $label; /** - * @return StepInput[]|null + * @return Step[]|null */ public function getSteps(): ?array { @@ -74,83 +47,51 @@ public function getSteps(): ?array } /** - * @param StepInput[]|null $steps + * @param Step[]|null $steps */ public function setSteps(?array $steps): self { + $this->initialized['steps'] = true; $this->steps = $steps; return $this; } - /** - * @return AutoloadInput[]|null - */ - public function getAutoloads(): ?array + public function getComposer(): ?Composer { - return $this->autoloads; + return $this->composer; } - /** - * @param AutoloadInput[]|null $autoloads - */ - public function setAutoloads(?array $autoloads): self + public function setComposer(?Composer $composer): self { - $this->autoloads = $autoloads; + $this->initialized['composer'] = true; + $this->composer = $composer; return $this; } - /** - * @return string[]|null - */ - public function getPackages(): ?iterable - { - return $this->packages; - } - - /** - * @param string[]|null $packages - */ - public function setPackages(?iterable $packages): self - { - $this->packages = $packages; - - return $this; - } - - /** - * @return AddPipelineComposerRepositoryCommandInput[]|null - */ - public function getRepositories(): ?array + public function getCode(): ?string { - return $this->repositories; + return $this->code; } - /** - * @param AddPipelineComposerRepositoryCommandInput[]|null $repositories - */ - public function setRepositories(?array $repositories): self + public function setCode(?string $code): self { - $this->repositories = $repositories; + $this->initialized['code'] = true; + $this->code = $code; return $this; } - /** - * @return AddPipelineComposerAuthCommandInput[]|null - */ - public function getAuths(): ?array + public function getLabel(): ?string { - return $this->auths; + return $this->label; } - /** - * @param AddPipelineComposerAuthCommandInput[]|null $auths - */ - public function setAuths(?array $auths): self + public function setLabel(?string $label): self { - $this->auths = $auths; + $this->initialized['label'] = true; + $this->label = $label; return $this; } diff --git a/src/Model/PipelineDeclarePipelineCommandInputJsonld.php b/src/Model/PipelineDeclarePipelineCommandInputJsonld.php index 94277fcc..eb732a69 100644 --- a/src/Model/PipelineDeclarePipelineCommandInputJsonld.php +++ b/src/Model/PipelineDeclarePipelineCommandInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineDeclarePipelineCommandInputJsonld +class PipelineDeclarePipelineCommandInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -25,33 +34,21 @@ class PipelineDeclarePipelineCommandInputJsonld */ protected $type; /** - * @var string|null - */ - protected $label; - /** - * @var string|null - */ - protected $code; - /** - * @var StepInputJsonld[]|null + * @var StepJsonld[]|null */ protected $steps; /** - * @var AutoloadInputJsonld[]|null - */ - protected $autoloads; - /** - * @var string[]|null + * @var ComposerJsonld|null */ - protected $packages; + protected $composer; /** - * @var AddPipelineComposerRepositoryCommandInputJsonld[]|null + * @var string|null */ - protected $repositories; + protected $code; /** - * @var AddPipelineComposerAuthCommandInputJsonld[]|null + * @var string|null */ - protected $auths; + protected $label; /** * @return mixed @@ -61,8 +58,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -75,6 +76,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -87,37 +89,14 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; } - public function getLabel(): ?string - { - return $this->label; - } - - public function setLabel(?string $label): self - { - $this->label = $label; - - return $this; - } - - public function getCode(): ?string - { - return $this->code; - } - - public function setCode(?string $code): self - { - $this->code = $code; - - return $this; - } - /** - * @return StepInputJsonld[]|null + * @return StepJsonld[]|null */ public function getSteps(): ?array { @@ -125,83 +104,51 @@ public function getSteps(): ?array } /** - * @param StepInputJsonld[]|null $steps + * @param StepJsonld[]|null $steps */ public function setSteps(?array $steps): self { + $this->initialized['steps'] = true; $this->steps = $steps; return $this; } - /** - * @return AutoloadInputJsonld[]|null - */ - public function getAutoloads(): ?array - { - return $this->autoloads; - } - - /** - * @param AutoloadInputJsonld[]|null $autoloads - */ - public function setAutoloads(?array $autoloads): self - { - $this->autoloads = $autoloads; - - return $this; - } - - /** - * @return string[]|null - */ - public function getPackages(): ?iterable + public function getComposer(): ?ComposerJsonld { - return $this->packages; + return $this->composer; } - /** - * @param string[]|null $packages - */ - public function setPackages(?iterable $packages): self + public function setComposer(?ComposerJsonld $composer): self { - $this->packages = $packages; + $this->initialized['composer'] = true; + $this->composer = $composer; return $this; } - /** - * @return AddPipelineComposerRepositoryCommandInputJsonld[]|null - */ - public function getRepositories(): ?array + public function getCode(): ?string { - return $this->repositories; + return $this->code; } - /** - * @param AddPipelineComposerRepositoryCommandInputJsonld[]|null $repositories - */ - public function setRepositories(?array $repositories): self + public function setCode(?string $code): self { - $this->repositories = $repositories; + $this->initialized['code'] = true; + $this->code = $code; return $this; } - /** - * @return AddPipelineComposerAuthCommandInputJsonld[]|null - */ - public function getAuths(): ?array + public function getLabel(): ?string { - return $this->auths; + return $this->label; } - /** - * @param AddPipelineComposerAuthCommandInputJsonld[]|null $auths - */ - public function setAuths(?array $auths): self + public function setLabel(?string $label): self { - $this->auths = $auths; + $this->initialized['label'] = true; + $this->label = $label; return $this; } diff --git a/src/Model/PipelineDeclarePipelineCommandJsonldRead.php b/src/Model/PipelineDeclarePipelineCommandJsonldRead.php index ee2ce637..d0eecf35 100644 --- a/src/Model/PipelineDeclarePipelineCommandJsonldRead.php +++ b/src/Model/PipelineDeclarePipelineCommandJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineDeclarePipelineCommandJsonldRead +class PipelineDeclarePipelineCommandJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/PipelineDeclarePipelineScheduleImmediateCommandInput.php b/src/Model/PipelineDeclarePipelineScheduleImmediateCommandInput.php new file mode 100644 index 00000000..9c0e1d00 --- /dev/null +++ b/src/Model/PipelineDeclarePipelineScheduleImmediateCommandInput.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string|null + */ + protected $environment; + + public function getEnvironment(): ?string + { + return $this->environment; + } + + public function setEnvironment(?string $environment): self + { + $this->initialized['environment'] = true; + $this->environment = $environment; + + return $this; + } +} diff --git a/src/Model/PipelineDeclarePipelineScheduleImmediateCommandInputJsonld.php b/src/Model/PipelineDeclarePipelineScheduleImmediateCommandInputJsonld.php new file mode 100644 index 00000000..e4fe024d --- /dev/null +++ b/src/Model/PipelineDeclarePipelineScheduleImmediateCommandInputJsonld.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $environment; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getEnvironment(): ?string + { + return $this->environment; + } + + public function setEnvironment(?string $environment): self + { + $this->initialized['environment'] = true; + $this->environment = $environment; + + return $this; + } +} diff --git a/src/Model/PipelineDeclarePipelineScheduleImmediateCommandJsonldRead.php b/src/Model/PipelineDeclarePipelineScheduleImmediateCommandJsonldRead.php new file mode 100644 index 00000000..7fdf226b --- /dev/null +++ b/src/Model/PipelineDeclarePipelineScheduleImmediateCommandJsonldRead.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } +} diff --git a/src/Model/PipelineDeclarePipelineScheduleOnceCommandInput.php b/src/Model/PipelineDeclarePipelineScheduleOnceCommandInput.php new file mode 100644 index 00000000..f4925382 --- /dev/null +++ b/src/Model/PipelineDeclarePipelineScheduleOnceCommandInput.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var \DateTime|null + */ + protected $date; + /** + * @var string|null + */ + protected $environment; + + public function getDate(): ?\DateTime + { + return $this->date; + } + + public function setDate(?\DateTime $date): self + { + $this->initialized['date'] = true; + $this->date = $date; + + return $this; + } + + public function getEnvironment(): ?string + { + return $this->environment; + } + + public function setEnvironment(?string $environment): self + { + $this->initialized['environment'] = true; + $this->environment = $environment; + + return $this; + } +} diff --git a/src/Model/PipelineDeclarePipelineScheduleOnceCommandInputJsonld.php b/src/Model/PipelineDeclarePipelineScheduleOnceCommandInputJsonld.php new file mode 100644 index 00000000..2b548b3b --- /dev/null +++ b/src/Model/PipelineDeclarePipelineScheduleOnceCommandInputJsonld.php @@ -0,0 +1,115 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var \DateTime|null + */ + protected $date; + /** + * @var string|null + */ + protected $environment; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getDate(): ?\DateTime + { + return $this->date; + } + + public function setDate(?\DateTime $date): self + { + $this->initialized['date'] = true; + $this->date = $date; + + return $this; + } + + public function getEnvironment(): ?string + { + return $this->environment; + } + + public function setEnvironment(?string $environment): self + { + $this->initialized['environment'] = true; + $this->environment = $environment; + + return $this; + } +} diff --git a/src/Model/PipelineDeclarePipelineScheduleOnceCommandJsonldRead.php b/src/Model/PipelineDeclarePipelineScheduleOnceCommandJsonldRead.php new file mode 100644 index 00000000..e2cee976 --- /dev/null +++ b/src/Model/PipelineDeclarePipelineScheduleOnceCommandJsonldRead.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } +} diff --git a/src/Model/PipelineIdJsonld.php b/src/Model/PipelineIdJsonld.php deleted file mode 100644 index 2bb4f4ed..00000000 --- a/src/Model/PipelineIdJsonld.php +++ /dev/null @@ -1,66 +0,0 @@ -context; - } - - public function setContext(mixed $context): self - { - $this->context = $context; - - return $this; - } - - public function getId(): ?string - { - return $this->id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } -} diff --git a/src/Model/PipelineJsonld.php b/src/Model/PipelineJsonld.php new file mode 100644 index 00000000..7a85c54f --- /dev/null +++ b/src/Model/PipelineJsonld.php @@ -0,0 +1,121 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var StepJsonld[]|null + */ + protected $steps; + /** + * @var string|null + */ + protected $code; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + /** + * @return StepJsonld[]|null + */ + public function getSteps(): ?array + { + return $this->steps; + } + + /** + * @param StepJsonld[]|null $steps + */ + public function setSteps(?array $steps): self + { + $this->initialized['steps'] = true; + $this->steps = $steps; + + return $this; + } + + public function getCode(): ?string + { + return $this->code; + } + + public function setCode(?string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } +} diff --git a/src/Model/PipelineJsonldRead.php b/src/Model/PipelineJsonldRead.php index c3aa8c93..657da7df 100644 --- a/src/Model/PipelineJsonldRead.php +++ b/src/Model/PipelineJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineJsonldRead +class PipelineJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -24,6 +33,10 @@ class PipelineJsonldRead * @var mixed|null */ protected $context; + /** + * @var int|null + */ + protected $currentVersion; /** * @var bool|null */ @@ -33,43 +46,39 @@ class PipelineJsonldRead */ protected $compiledAt; /** - * @var string|null - */ - protected $id2; - /** - * @var string|null + * @var string[]|null */ - protected $code; + protected $autoload; /** - * @var string|null + * @var string[]|null */ - protected $label; + protected $packages; /** - * @var string|null + * @var string[]|null */ - protected $runtimeType; + protected $repositories; /** * @var string[]|null */ - protected $runtime; + protected $auths; /** - * @var string[]|null + * @var string|null */ - protected $autoload; + protected $id2; /** - * @var string[]|null + * @var string|null */ - protected $packages; + protected $code; /** - * @var string[]|null + * @var string|null */ - protected $repositories; + protected $label; /** * @var string[]|null */ - protected $auths; + protected $runtime; /** - * @var string[]|null + * @var PipelineStepJsonldRead[]|null */ protected $steps; @@ -80,6 +89,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -92,6 +102,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -105,81 +116,109 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; } - public function getIsSoftDeleted(): ?bool + public function getCurrentVersion(): ?int { - return $this->isSoftDeleted; + return $this->currentVersion; } - public function setIsSoftDeleted(?bool $isSoftDeleted): self + public function setCurrentVersion(?int $currentVersion): self { - $this->isSoftDeleted = $isSoftDeleted; + $this->initialized['currentVersion'] = true; + $this->currentVersion = $currentVersion; return $this; } - public function getCompiledAt(): ?\DateTime + public function getIsSoftDeleted(): ?bool { - return $this->compiledAt; + return $this->isSoftDeleted; } - public function setCompiledAt(?\DateTime $compiledAt): self + public function setIsSoftDeleted(?bool $isSoftDeleted): self { - $this->compiledAt = $compiledAt; + $this->initialized['isSoftDeleted'] = true; + $this->isSoftDeleted = $isSoftDeleted; return $this; } - public function getId2(): ?string + public function getCompiledAt(): ?\DateTime { - return $this->id2; + return $this->compiledAt; } - public function setId2(?string $id2): self + public function setCompiledAt(?\DateTime $compiledAt): self { - $this->id2 = $id2; + $this->initialized['compiledAt'] = true; + $this->compiledAt = $compiledAt; return $this; } - public function getCode(): ?string + /** + * @return string[]|null + */ + public function getAutoload(): ?array { - return $this->code; + return $this->autoload; } - public function setCode(?string $code): self + /** + * @param string[]|null $autoload + */ + public function setAutoload(?array $autoload): self { - $this->code = $code; + $this->initialized['autoload'] = true; + $this->autoload = $autoload; return $this; } - public function getLabel(): ?string + /** + * @return string[]|null + */ + public function getPackages(): ?array { - return $this->label; + return $this->packages; } - public function setLabel(?string $label): self + /** + * @param string[]|null $packages + */ + public function setPackages(?array $packages): self { - $this->label = $label; + $this->initialized['packages'] = true; + $this->packages = $packages; return $this; } - public function getRuntimeType(): ?string + /** + * @return string[]|null + */ + public function getRepositories(): ?array { - return $this->runtimeType; + return $this->repositories; } - public function setRuntimeType(?string $runtimeType): self + /** + * @param string[]|null $repositories + */ + public function setRepositories(?array $repositories): self { - $this->runtimeType = $runtimeType; + $this->initialized['repositories'] = true; + $this->repositories = $repositories; return $this; } @@ -187,71 +226,57 @@ public function setRuntimeType(?string $runtimeType): self /** * @return string[]|null */ - public function getRuntime(): ?array + public function getAuths(): ?array { - return $this->runtime; + return $this->auths; } /** - * @param string[]|null $runtime + * @param string[]|null $auths */ - public function setRuntime(?array $runtime): self + public function setAuths(?array $auths): self { - $this->runtime = $runtime; + $this->initialized['auths'] = true; + $this->auths = $auths; return $this; } - /** - * @return string[]|null - */ - public function getAutoload(): ?array + public function getId2(): ?string { - return $this->autoload; + return $this->id2; } - /** - * @param string[]|null $autoload - */ - public function setAutoload(?array $autoload): self + public function setId2(?string $id2): self { - $this->autoload = $autoload; + $this->initialized['id2'] = true; + $this->id2 = $id2; return $this; } - /** - * @return string[]|null - */ - public function getPackages(): ?array + public function getCode(): ?string { - return $this->packages; + return $this->code; } - /** - * @param string[]|null $packages - */ - public function setPackages(?array $packages): self + public function setCode(?string $code): self { - $this->packages = $packages; + $this->initialized['code'] = true; + $this->code = $code; return $this; } - /** - * @return string[]|null - */ - public function getRepositories(): ?array + public function getLabel(): ?string { - return $this->repositories; + return $this->label; } - /** - * @param string[]|null $repositories - */ - public function setRepositories(?array $repositories): self + public function setLabel(?string $label): self { - $this->repositories = $repositories; + $this->initialized['label'] = true; + $this->label = $label; return $this; } @@ -259,23 +284,24 @@ public function setRepositories(?array $repositories): self /** * @return string[]|null */ - public function getAuths(): ?array + public function getRuntime(): ?array { - return $this->auths; + return $this->runtime; } /** - * @param string[]|null $auths + * @param string[]|null $runtime */ - public function setAuths(?array $auths): self + public function setRuntime(?array $runtime): self { - $this->auths = $auths; + $this->initialized['runtime'] = true; + $this->runtime = $runtime; return $this; } /** - * @return string[]|null + * @return PipelineStepJsonldRead[]|null */ public function getSteps(): ?array { @@ -283,10 +309,11 @@ public function getSteps(): ?array } /** - * @param string[]|null $steps + * @param PipelineStepJsonldRead[]|null $steps */ public function setSteps(?array $steps): self { + $this->initialized['steps'] = true; $this->steps = $steps; return $this; diff --git a/src/Model/PipelineMoveAfterPipelineStepCommandInput.php b/src/Model/PipelineMoveAfterPipelineStepCommandInput.php index 1d0ec579..1f7c34e8 100644 --- a/src/Model/PipelineMoveAfterPipelineStepCommandInput.php +++ b/src/Model/PipelineMoveAfterPipelineStepCommandInput.php @@ -10,13 +10,39 @@ namespace Gyroscops\Api\Model; -class PipelineMoveAfterPipelineStepCommandInput +class PipelineMoveAfterPipelineStepCommandInput extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } + /** + * @var string|null + */ + protected $after; /** * @var string|null */ protected $code; + public function getAfter(): ?string + { + return $this->after; + } + + public function setAfter(?string $after): self + { + $this->initialized['after'] = true; + $this->after = $after; + + return $this; + } + public function getCode(): ?string { return $this->code; @@ -24,6 +50,7 @@ public function getCode(): ?string public function setCode(?string $code): self { + $this->initialized['code'] = true; $this->code = $code; return $this; diff --git a/src/Model/PipelineMoveAfterPipelineStepCommandInputJsonld.php b/src/Model/PipelineMoveAfterPipelineStepCommandInputJsonld.php index 3bc148c3..5c3da4e5 100644 --- a/src/Model/PipelineMoveAfterPipelineStepCommandInputJsonld.php +++ b/src/Model/PipelineMoveAfterPipelineStepCommandInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineMoveAfterPipelineStepCommandInputJsonld +class PipelineMoveAfterPipelineStepCommandInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -24,6 +33,10 @@ class PipelineMoveAfterPipelineStepCommandInputJsonld * @var string|null */ protected $type; + /** + * @var string|null + */ + protected $after; /** * @var string|null */ @@ -37,8 +50,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -51,6 +68,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -63,11 +81,25 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; } + public function getAfter(): ?string + { + return $this->after; + } + + public function setAfter(?string $after): self + { + $this->initialized['after'] = true; + $this->after = $after; + + return $this; + } + public function getCode(): ?string { return $this->code; @@ -75,6 +107,7 @@ public function getCode(): ?string public function setCode(?string $code): self { + $this->initialized['code'] = true; $this->code = $code; return $this; diff --git a/src/Model/PipelineMoveAfterPipelineStepCommandJsonldRead.php b/src/Model/PipelineMoveAfterPipelineStepCommandJsonldRead.php index a4f4bf6f..b7833990 100644 --- a/src/Model/PipelineMoveAfterPipelineStepCommandJsonldRead.php +++ b/src/Model/PipelineMoveAfterPipelineStepCommandJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineMoveAfterPipelineStepCommandJsonldRead +class PipelineMoveAfterPipelineStepCommandJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/PipelineMoveBeforePipelineStepCommandInput.php b/src/Model/PipelineMoveBeforePipelineStepCommandInput.php index 5e06b645..61776d9a 100644 --- a/src/Model/PipelineMoveBeforePipelineStepCommandInput.php +++ b/src/Model/PipelineMoveBeforePipelineStepCommandInput.php @@ -10,13 +10,39 @@ namespace Gyroscops\Api\Model; -class PipelineMoveBeforePipelineStepCommandInput +class PipelineMoveBeforePipelineStepCommandInput extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } + /** + * @var string|null + */ + protected $before; /** * @var string|null */ protected $code; + public function getBefore(): ?string + { + return $this->before; + } + + public function setBefore(?string $before): self + { + $this->initialized['before'] = true; + $this->before = $before; + + return $this; + } + public function getCode(): ?string { return $this->code; @@ -24,6 +50,7 @@ public function getCode(): ?string public function setCode(?string $code): self { + $this->initialized['code'] = true; $this->code = $code; return $this; diff --git a/src/Model/PipelineMoveBeforePipelineStepCommandInputJsonld.php b/src/Model/PipelineMoveBeforePipelineStepCommandInputJsonld.php index 059e27ee..856dac1c 100644 --- a/src/Model/PipelineMoveBeforePipelineStepCommandInputJsonld.php +++ b/src/Model/PipelineMoveBeforePipelineStepCommandInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineMoveBeforePipelineStepCommandInputJsonld +class PipelineMoveBeforePipelineStepCommandInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -24,6 +33,10 @@ class PipelineMoveBeforePipelineStepCommandInputJsonld * @var string|null */ protected $type; + /** + * @var string|null + */ + protected $before; /** * @var string|null */ @@ -37,8 +50,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -51,6 +68,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -63,11 +81,25 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; } + public function getBefore(): ?string + { + return $this->before; + } + + public function setBefore(?string $before): self + { + $this->initialized['before'] = true; + $this->before = $before; + + return $this; + } + public function getCode(): ?string { return $this->code; @@ -75,6 +107,7 @@ public function getCode(): ?string public function setCode(?string $code): self { + $this->initialized['code'] = true; $this->code = $code; return $this; diff --git a/src/Model/PipelineMoveBeforePipelineStepCommandJsonldRead.php b/src/Model/PipelineMoveBeforePipelineStepCommandJsonldRead.php index a4896cdb..ed8b3dbd 100644 --- a/src/Model/PipelineMoveBeforePipelineStepCommandJsonldRead.php +++ b/src/Model/PipelineMoveBeforePipelineStepCommandJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineMoveBeforePipelineStepCommandJsonldRead +class PipelineMoveBeforePipelineStepCommandJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/PipelineRead.php b/src/Model/PipelineRead.php index 8744ce74..94bec2ca 100644 --- a/src/Model/PipelineRead.php +++ b/src/Model/PipelineRead.php @@ -10,8 +10,21 @@ namespace Gyroscops\Api\Model; -class PipelineRead +class PipelineRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } + /** + * @var int|null + */ + protected $currentVersion; /** * @var bool|null */ @@ -21,114 +34,134 @@ class PipelineRead */ protected $compiledAt; /** - * @var string|null - */ - protected $id; - /** - * @var string|null + * @var string[]|null */ - protected $code; + protected $autoload; /** - * @var string|null + * @var string[]|null */ - protected $label; + protected $packages; /** - * @var string|null + * @var string[]|null */ - protected $runtimeType; + protected $repositories; /** * @var string[]|null */ - protected $runtime; + protected $auths; /** - * @var string[]|null + * @var string|null */ - protected $autoload; + protected $id; /** - * @var string[]|null + * @var string|null */ - protected $packages; + protected $code; /** - * @var string[]|null + * @var string|null */ - protected $repositories; + protected $label; /** * @var string[]|null */ - protected $auths; + protected $runtime; /** - * @var string[]|null + * @var PipelineStepRead[]|null */ protected $steps; - public function getIsSoftDeleted(): ?bool + public function getCurrentVersion(): ?int { - return $this->isSoftDeleted; + return $this->currentVersion; } - public function setIsSoftDeleted(?bool $isSoftDeleted): self + public function setCurrentVersion(?int $currentVersion): self { - $this->isSoftDeleted = $isSoftDeleted; + $this->initialized['currentVersion'] = true; + $this->currentVersion = $currentVersion; return $this; } - public function getCompiledAt(): ?\DateTime + public function getIsSoftDeleted(): ?bool { - return $this->compiledAt; + return $this->isSoftDeleted; } - public function setCompiledAt(?\DateTime $compiledAt): self + public function setIsSoftDeleted(?bool $isSoftDeleted): self { - $this->compiledAt = $compiledAt; + $this->initialized['isSoftDeleted'] = true; + $this->isSoftDeleted = $isSoftDeleted; return $this; } - public function getId(): ?string + public function getCompiledAt(): ?\DateTime { - return $this->id; + return $this->compiledAt; } - public function setId(?string $id): self + public function setCompiledAt(?\DateTime $compiledAt): self { - $this->id = $id; + $this->initialized['compiledAt'] = true; + $this->compiledAt = $compiledAt; return $this; } - public function getCode(): ?string + /** + * @return string[]|null + */ + public function getAutoload(): ?array { - return $this->code; + return $this->autoload; } - public function setCode(?string $code): self + /** + * @param string[]|null $autoload + */ + public function setAutoload(?array $autoload): self { - $this->code = $code; + $this->initialized['autoload'] = true; + $this->autoload = $autoload; return $this; } - public function getLabel(): ?string + /** + * @return string[]|null + */ + public function getPackages(): ?array { - return $this->label; + return $this->packages; } - public function setLabel(?string $label): self + /** + * @param string[]|null $packages + */ + public function setPackages(?array $packages): self { - $this->label = $label; + $this->initialized['packages'] = true; + $this->packages = $packages; return $this; } - public function getRuntimeType(): ?string + /** + * @return string[]|null + */ + public function getRepositories(): ?array { - return $this->runtimeType; + return $this->repositories; } - public function setRuntimeType(?string $runtimeType): self + /** + * @param string[]|null $repositories + */ + public function setRepositories(?array $repositories): self { - $this->runtimeType = $runtimeType; + $this->initialized['repositories'] = true; + $this->repositories = $repositories; return $this; } @@ -136,71 +169,57 @@ public function setRuntimeType(?string $runtimeType): self /** * @return string[]|null */ - public function getRuntime(): ?array + public function getAuths(): ?array { - return $this->runtime; + return $this->auths; } /** - * @param string[]|null $runtime + * @param string[]|null $auths */ - public function setRuntime(?array $runtime): self + public function setAuths(?array $auths): self { - $this->runtime = $runtime; + $this->initialized['auths'] = true; + $this->auths = $auths; return $this; } - /** - * @return string[]|null - */ - public function getAutoload(): ?array + public function getId(): ?string { - return $this->autoload; + return $this->id; } - /** - * @param string[]|null $autoload - */ - public function setAutoload(?array $autoload): self + public function setId(?string $id): self { - $this->autoload = $autoload; + $this->initialized['id'] = true; + $this->id = $id; return $this; } - /** - * @return string[]|null - */ - public function getPackages(): ?array + public function getCode(): ?string { - return $this->packages; + return $this->code; } - /** - * @param string[]|null $packages - */ - public function setPackages(?array $packages): self + public function setCode(?string $code): self { - $this->packages = $packages; + $this->initialized['code'] = true; + $this->code = $code; return $this; } - /** - * @return string[]|null - */ - public function getRepositories(): ?array + public function getLabel(): ?string { - return $this->repositories; + return $this->label; } - /** - * @param string[]|null $repositories - */ - public function setRepositories(?array $repositories): self + public function setLabel(?string $label): self { - $this->repositories = $repositories; + $this->initialized['label'] = true; + $this->label = $label; return $this; } @@ -208,23 +227,24 @@ public function setRepositories(?array $repositories): self /** * @return string[]|null */ - public function getAuths(): ?array + public function getRuntime(): ?array { - return $this->auths; + return $this->runtime; } /** - * @param string[]|null $auths + * @param string[]|null $runtime */ - public function setAuths(?array $auths): self + public function setRuntime(?array $runtime): self { - $this->auths = $auths; + $this->initialized['runtime'] = true; + $this->runtime = $runtime; return $this; } /** - * @return string[]|null + * @return PipelineStepRead[]|null */ public function getSteps(): ?array { @@ -232,10 +252,11 @@ public function getSteps(): ?array } /** - * @param string[]|null $steps + * @param PipelineStepRead[]|null $steps */ public function setSteps(?array $steps): self { + $this->initialized['steps'] = true; $this->steps = $steps; return $this; diff --git a/src/Model/PipelineRemovePipelineComposerAuthCommandInput.php b/src/Model/PipelineRemovePipelineComposerAuthCommandInput.php index dabfd89f..73d01e78 100644 --- a/src/Model/PipelineRemovePipelineComposerAuthCommandInput.php +++ b/src/Model/PipelineRemovePipelineComposerAuthCommandInput.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineRemovePipelineComposerAuthCommandInput +class PipelineRemovePipelineComposerAuthCommandInput extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -24,6 +33,7 @@ public function getUrl(): ?string public function setUrl(?string $url): self { + $this->initialized['url'] = true; $this->url = $url; return $this; diff --git a/src/Model/PipelineRemovePipelineComposerAuthCommandInputJsonld.php b/src/Model/PipelineRemovePipelineComposerAuthCommandInputJsonld.php index 17e8b925..94381c24 100644 --- a/src/Model/PipelineRemovePipelineComposerAuthCommandInputJsonld.php +++ b/src/Model/PipelineRemovePipelineComposerAuthCommandInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineRemovePipelineComposerAuthCommandInputJsonld +class PipelineRemovePipelineComposerAuthCommandInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -37,8 +46,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -51,6 +64,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -63,6 +77,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -75,6 +90,7 @@ public function getUrl(): ?string public function setUrl(?string $url): self { + $this->initialized['url'] = true; $this->url = $url; return $this; diff --git a/src/Model/PipelineRemovePipelineComposerAuthCommandJsonldRead.php b/src/Model/PipelineRemovePipelineComposerAuthCommandJsonldRead.php index 85d5c1e0..26aff790 100644 --- a/src/Model/PipelineRemovePipelineComposerAuthCommandJsonldRead.php +++ b/src/Model/PipelineRemovePipelineComposerAuthCommandJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineRemovePipelineComposerAuthCommandJsonldRead +class PipelineRemovePipelineComposerAuthCommandJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/PipelineRemovePipelineComposerPSR4AutoloadCommandInput.php b/src/Model/PipelineRemovePipelineComposerPSR4AutoloadCommandInput.php index 838175a5..70ecdf04 100644 --- a/src/Model/PipelineRemovePipelineComposerPSR4AutoloadCommandInput.php +++ b/src/Model/PipelineRemovePipelineComposerPSR4AutoloadCommandInput.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineRemovePipelineComposerPSR4AutoloadCommandInput +class PipelineRemovePipelineComposerPSR4AutoloadCommandInput extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -24,6 +33,7 @@ public function getNamespace(): ?string public function setNamespace(?string $namespace): self { + $this->initialized['namespace'] = true; $this->namespace = $namespace; return $this; diff --git a/src/Model/PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonld.php b/src/Model/PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonld.php index 63da3731..36bc1551 100644 --- a/src/Model/PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonld.php +++ b/src/Model/PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonld +class PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -37,8 +46,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -51,6 +64,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -63,6 +77,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -75,6 +90,7 @@ public function getNamespace(): ?string public function setNamespace(?string $namespace): self { + $this->initialized['namespace'] = true; $this->namespace = $namespace; return $this; diff --git a/src/Model/PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldRead.php b/src/Model/PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldRead.php index bf7ea318..f89a67b8 100644 --- a/src/Model/PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldRead.php +++ b/src/Model/PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldRead +class PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/PipelineRemovePipelineComposerPackageCommandInput.php b/src/Model/PipelineRemovePipelineComposerPackageCommandInput.php index 6e047235..2caea2a2 100644 --- a/src/Model/PipelineRemovePipelineComposerPackageCommandInput.php +++ b/src/Model/PipelineRemovePipelineComposerPackageCommandInput.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineRemovePipelineComposerPackageCommandInput +class PipelineRemovePipelineComposerPackageCommandInput extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -24,6 +33,7 @@ public function getPackage(): ?string public function setPackage(?string $package): self { + $this->initialized['package'] = true; $this->package = $package; return $this; diff --git a/src/Model/PipelineRemovePipelineComposerPackageCommandInputJsonld.php b/src/Model/PipelineRemovePipelineComposerPackageCommandInputJsonld.php index d53046a4..46789c83 100644 --- a/src/Model/PipelineRemovePipelineComposerPackageCommandInputJsonld.php +++ b/src/Model/PipelineRemovePipelineComposerPackageCommandInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineRemovePipelineComposerPackageCommandInputJsonld +class PipelineRemovePipelineComposerPackageCommandInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -37,8 +46,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -51,6 +64,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -63,6 +77,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -75,6 +90,7 @@ public function getPackage(): ?string public function setPackage(?string $package): self { + $this->initialized['package'] = true; $this->package = $package; return $this; diff --git a/src/Model/PipelineRemovePipelineComposerPackageCommandJsonldRead.php b/src/Model/PipelineRemovePipelineComposerPackageCommandJsonldRead.php index f1de826b..57c0cbc4 100644 --- a/src/Model/PipelineRemovePipelineComposerPackageCommandJsonldRead.php +++ b/src/Model/PipelineRemovePipelineComposerPackageCommandJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineRemovePipelineComposerPackageCommandJsonldRead +class PipelineRemovePipelineComposerPackageCommandJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/PipelineRemovePipelineComposerRepositoryCommandInput.php b/src/Model/PipelineRemovePipelineComposerRepositoryCommandInput.php index f62188a5..876138a5 100644 --- a/src/Model/PipelineRemovePipelineComposerRepositoryCommandInput.php +++ b/src/Model/PipelineRemovePipelineComposerRepositoryCommandInput.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineRemovePipelineComposerRepositoryCommandInput +class PipelineRemovePipelineComposerRepositoryCommandInput extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -24,6 +33,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; diff --git a/src/Model/PipelineRemovePipelineComposerRepositoryCommandInputJsonld.php b/src/Model/PipelineRemovePipelineComposerRepositoryCommandInputJsonld.php index 743e27c2..64df7213 100644 --- a/src/Model/PipelineRemovePipelineComposerRepositoryCommandInputJsonld.php +++ b/src/Model/PipelineRemovePipelineComposerRepositoryCommandInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineRemovePipelineComposerRepositoryCommandInputJsonld +class PipelineRemovePipelineComposerRepositoryCommandInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -37,8 +46,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -51,6 +64,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -63,6 +77,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -75,6 +90,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; diff --git a/src/Model/PipelineRemovePipelineComposerRepositoryCommandJsonldRead.php b/src/Model/PipelineRemovePipelineComposerRepositoryCommandJsonldRead.php index f2084b82..a479aa74 100644 --- a/src/Model/PipelineRemovePipelineComposerRepositoryCommandJsonldRead.php +++ b/src/Model/PipelineRemovePipelineComposerRepositoryCommandJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineRemovePipelineComposerRepositoryCommandJsonldRead +class PipelineRemovePipelineComposerRepositoryCommandJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/PipelineRemovePipelineStepProbeCommandJsonldRead.php b/src/Model/PipelineRemovePipelineStepProbeCommandJsonldRead.php index 6034c7bd..a539a6e2 100644 --- a/src/Model/PipelineRemovePipelineStepProbeCommandJsonldRead.php +++ b/src/Model/PipelineRemovePipelineStepProbeCommandJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineRemovePipelineStepProbeCommandJsonldRead +class PipelineRemovePipelineStepProbeCommandJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/PipelineReorderPipelineStepsCommandInput.php b/src/Model/PipelineReorderPipelineStepsCommandInput.php index 1cf0a5da..8288ded7 100644 --- a/src/Model/PipelineReorderPipelineStepsCommandInput.php +++ b/src/Model/PipelineReorderPipelineStepsCommandInput.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineReorderPipelineStepsCommandInput +class PipelineReorderPipelineStepsCommandInput extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string[]|null */ @@ -30,6 +39,7 @@ public function getCodes(): ?array */ public function setCodes(?array $codes): self { + $this->initialized['codes'] = true; $this->codes = $codes; return $this; diff --git a/src/Model/PipelineReorderPipelineStepsCommandInputJsonld.php b/src/Model/PipelineReorderPipelineStepsCommandInputJsonld.php index 5ade501f..22765617 100644 --- a/src/Model/PipelineReorderPipelineStepsCommandInputJsonld.php +++ b/src/Model/PipelineReorderPipelineStepsCommandInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineReorderPipelineStepsCommandInputJsonld +class PipelineReorderPipelineStepsCommandInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -37,8 +46,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -51,6 +64,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -63,6 +77,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -81,6 +96,7 @@ public function getCodes(): ?array */ public function setCodes(?array $codes): self { + $this->initialized['codes'] = true; $this->codes = $codes; return $this; diff --git a/src/Model/PipelineReorderPipelineStepsCommandJsonldRead.php b/src/Model/PipelineReorderPipelineStepsCommandJsonldRead.php index b56dfda4..7097a17c 100644 --- a/src/Model/PipelineReorderPipelineStepsCommandJsonldRead.php +++ b/src/Model/PipelineReorderPipelineStepsCommandJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineReorderPipelineStepsCommandJsonldRead +class PipelineReorderPipelineStepsCommandJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/PipelineReplacePipelineStepCommandInput.php b/src/Model/PipelineReplacePipelineStepCommandInput.php index 9130d5dd..a7aec074 100644 --- a/src/Model/PipelineReplacePipelineStepCommandInput.php +++ b/src/Model/PipelineReplacePipelineStepCommandInput.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineReplacePipelineStepCommandInput +class PipelineReplacePipelineStepCommandInput extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -36,6 +45,7 @@ public function getCode(): ?string public function setCode(?string $code): self { + $this->initialized['code'] = true; $this->code = $code; return $this; @@ -48,6 +58,7 @@ public function getLabel(): ?string public function setLabel(?string $label): self { + $this->initialized['label'] = true; $this->label = $label; return $this; @@ -56,7 +67,7 @@ public function setLabel(?string $label): self /** * @return string[]|null */ - public function getConfiguration(): ?array + public function getConfiguration(): ?iterable { return $this->configuration; } @@ -64,8 +75,9 @@ public function getConfiguration(): ?array /** * @param string[]|null $configuration */ - public function setConfiguration(?array $configuration): self + public function setConfiguration(?iterable $configuration): self { + $this->initialized['configuration'] = true; $this->configuration = $configuration; return $this; @@ -84,6 +96,7 @@ public function getProbes(): ?array */ public function setProbes(?array $probes): self { + $this->initialized['probes'] = true; $this->probes = $probes; return $this; diff --git a/src/Model/PipelineReplacePipelineStepCommandInputJsonld.php b/src/Model/PipelineReplacePipelineStepCommandInputJsonld.php index 66f8d71d..599ec6ba 100644 --- a/src/Model/PipelineReplacePipelineStepCommandInputJsonld.php +++ b/src/Model/PipelineReplacePipelineStepCommandInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineReplacePipelineStepCommandInputJsonld +class PipelineReplacePipelineStepCommandInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -49,8 +58,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -63,6 +76,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -75,6 +89,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -87,6 +102,7 @@ public function getCode(): ?string public function setCode(?string $code): self { + $this->initialized['code'] = true; $this->code = $code; return $this; @@ -99,6 +115,7 @@ public function getLabel(): ?string public function setLabel(?string $label): self { + $this->initialized['label'] = true; $this->label = $label; return $this; @@ -107,7 +124,7 @@ public function setLabel(?string $label): self /** * @return string[]|null */ - public function getConfiguration(): ?array + public function getConfiguration(): ?iterable { return $this->configuration; } @@ -115,8 +132,9 @@ public function getConfiguration(): ?array /** * @param string[]|null $configuration */ - public function setConfiguration(?array $configuration): self + public function setConfiguration(?iterable $configuration): self { + $this->initialized['configuration'] = true; $this->configuration = $configuration; return $this; @@ -135,6 +153,7 @@ public function getProbes(): ?array */ public function setProbes(?array $probes): self { + $this->initialized['probes'] = true; $this->probes = $probes; return $this; diff --git a/src/Model/PipelineReplacePipelineStepCommandJsonldRead.php b/src/Model/PipelineReplacePipelineStepCommandJsonldRead.php index 4746604a..a3cdd0f6 100644 --- a/src/Model/PipelineReplacePipelineStepCommandJsonldRead.php +++ b/src/Model/PipelineReplacePipelineStepCommandJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineReplacePipelineStepCommandJsonldRead +class PipelineReplacePipelineStepCommandJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/PipelineStep.php b/src/Model/PipelineStep.php index 20b3fcbe..4ac89a28 100644 --- a/src/Model/PipelineStep.php +++ b/src/Model/PipelineStep.php @@ -10,20 +10,29 @@ namespace Gyroscops\Api\Model; -class PipelineStep +class PipelineStep extends \ArrayObject { /** - * @var string|null + * @var array */ - protected $id; + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ - protected $code; + protected $id; /** * @var int|null */ protected $order; + /** + * @var string|null + */ + protected $code; /** * @var string|null */ @@ -48,31 +57,34 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; } - public function getCode(): ?string + public function getOrder(): ?int { - return $this->code; + return $this->order; } - public function setCode(?string $code): self + public function setOrder(?int $order): self { - $this->code = $code; + $this->initialized['order'] = true; + $this->order = $order; return $this; } - public function getOrder(): ?int + public function getCode(): ?string { - return $this->order; + return $this->code; } - public function setOrder(?int $order): self + public function setCode(?string $code): self { - $this->order = $order; + $this->initialized['code'] = true; + $this->code = $code; return $this; } @@ -84,6 +96,7 @@ public function getLabel(): ?string public function setLabel(?string $label): self { + $this->initialized['label'] = true; $this->label = $label; return $this; @@ -96,6 +109,7 @@ public function getPipeline(): ?AbstractPipeline public function setPipeline(?AbstractPipeline $pipeline): self { + $this->initialized['pipeline'] = true; $this->pipeline = $pipeline; return $this; @@ -114,6 +128,7 @@ public function getProbes(): ?array */ public function setProbes(?array $probes): self { + $this->initialized['probes'] = true; $this->probes = $probes; return $this; @@ -132,6 +147,7 @@ public function getConfiguration(): ?array */ public function setConfiguration(?array $configuration): self { + $this->initialized['configuration'] = true; $this->configuration = $configuration; return $this; diff --git a/src/Model/PipelineStepJsonld.php b/src/Model/PipelineStepJsonld.php index 4fc495ab..868dbd72 100644 --- a/src/Model/PipelineStepJsonld.php +++ b/src/Model/PipelineStepJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineStepJsonld +class PipelineStepJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -28,14 +37,14 @@ class PipelineStepJsonld * @var string|null */ protected $id2; - /** - * @var string|null - */ - protected $code; /** * @var int|null */ protected $order; + /** + * @var string|null + */ + protected $code; /** * @var string|null */ @@ -60,6 +69,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -72,6 +82,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -85,8 +96,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -99,31 +114,34 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; } - public function getCode(): ?string + public function getOrder(): ?int { - return $this->code; + return $this->order; } - public function setCode(?string $code): self + public function setOrder(?int $order): self { - $this->code = $code; + $this->initialized['order'] = true; + $this->order = $order; return $this; } - public function getOrder(): ?int + public function getCode(): ?string { - return $this->order; + return $this->code; } - public function setOrder(?int $order): self + public function setCode(?string $code): self { - $this->order = $order; + $this->initialized['code'] = true; + $this->code = $code; return $this; } @@ -135,6 +153,7 @@ public function getLabel(): ?string public function setLabel(?string $label): self { + $this->initialized['label'] = true; $this->label = $label; return $this; @@ -147,6 +166,7 @@ public function getPipeline(): ?AbstractPipelineJsonld public function setPipeline(?AbstractPipelineJsonld $pipeline): self { + $this->initialized['pipeline'] = true; $this->pipeline = $pipeline; return $this; @@ -165,6 +185,7 @@ public function getProbes(): ?array */ public function setProbes(?array $probes): self { + $this->initialized['probes'] = true; $this->probes = $probes; return $this; @@ -183,6 +204,7 @@ public function getConfiguration(): ?array */ public function setConfiguration(?array $configuration): self { + $this->initialized['configuration'] = true; $this->configuration = $configuration; return $this; diff --git a/src/Model/PipelineStepJsonldRead.php b/src/Model/PipelineStepJsonldRead.php new file mode 100644 index 00000000..7653c188 --- /dev/null +++ b/src/Model/PipelineStepJsonldRead.php @@ -0,0 +1,138 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $code; + /** + * @var string|null + */ + protected $label; + /** + * @var string[]|null + */ + protected $configuration; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getCode(): ?string + { + return $this->code; + } + + public function setCode(?string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getLabel(): ?string + { + return $this->label; + } + + public function setLabel(?string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } + + /** + * @return string[]|null + */ + public function getConfiguration(): ?array + { + return $this->configuration; + } + + /** + * @param string[]|null $configuration + */ + public function setConfiguration(?array $configuration): self + { + $this->initialized['configuration'] = true; + $this->configuration = $configuration; + + return $this; + } +} diff --git a/src/Model/PipelineStepProbe.php b/src/Model/PipelineStepProbe.php index a1a72091..5e61f871 100644 --- a/src/Model/PipelineStepProbe.php +++ b/src/Model/PipelineStepProbe.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineStepProbe +class PipelineStepProbe extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -40,6 +49,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -52,6 +62,7 @@ public function getCode(): ?string public function setCode(?string $code): self { + $this->initialized['code'] = true; $this->code = $code; return $this; @@ -64,6 +75,7 @@ public function getOrder(): ?int public function setOrder(?int $order): self { + $this->initialized['order'] = true; $this->order = $order; return $this; @@ -76,6 +88,7 @@ public function getLabel(): ?string public function setLabel(?string $label): self { + $this->initialized['label'] = true; $this->label = $label; return $this; @@ -88,6 +101,7 @@ public function getStep(): ?string public function setStep(?string $step): self { + $this->initialized['step'] = true; $this->step = $step; return $this; diff --git a/src/Model/PipelineStepProbeJsonld.php b/src/Model/PipelineStepProbeJsonld.php index 03d0197a..7becfcff 100644 --- a/src/Model/PipelineStepProbeJsonld.php +++ b/src/Model/PipelineStepProbeJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PipelineStepProbeJsonld +class PipelineStepProbeJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -52,6 +61,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -64,6 +74,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -77,8 +88,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -91,6 +106,7 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; @@ -103,6 +119,7 @@ public function getCode(): ?string public function setCode(?string $code): self { + $this->initialized['code'] = true; $this->code = $code; return $this; @@ -115,6 +132,7 @@ public function getOrder(): ?int public function setOrder(?int $order): self { + $this->initialized['order'] = true; $this->order = $order; return $this; @@ -127,6 +145,7 @@ public function getLabel(): ?string public function setLabel(?string $label): self { + $this->initialized['label'] = true; $this->label = $label; return $this; @@ -139,6 +158,7 @@ public function getStep(): ?string public function setStep(?string $step): self { + $this->initialized['step'] = true; $this->step = $step; return $this; diff --git a/src/Model/PipelineStepRead.php b/src/Model/PipelineStepRead.php new file mode 100644 index 00000000..ddbf6e6f --- /dev/null +++ b/src/Model/PipelineStepRead.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string|null + */ + protected $code; + /** + * @var string|null + */ + protected $label; + /** + * @var string[]|null + */ + protected $configuration; + + public function getCode(): ?string + { + return $this->code; + } + + public function setCode(?string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getLabel(): ?string + { + return $this->label; + } + + public function setLabel(?string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } + + /** + * @return string[]|null + */ + public function getConfiguration(): ?array + { + return $this->configuration; + } + + /** + * @param string[]|null $configuration + */ + public function setConfiguration(?array $configuration): self + { + $this->initialized['configuration'] = true; + $this->configuration = $configuration; + + return $this; + } +} diff --git a/src/Model/Price.php b/src/Model/Price.php index 35652b56..f2da05f9 100644 --- a/src/Model/Price.php +++ b/src/Model/Price.php @@ -10,25 +10,117 @@ namespace Gyroscops\Api\Model; -class Price +class Price extends \ArrayObject { /** - * @var mixed|null + * @var array */ - protected $price; + protected $initialized = []; + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var Buyable|null + */ + protected $buyable; + /** + * @var SubscriptionType|null + */ + protected $type; + /** + * @var string|null + */ + protected $amount; + /** + * @var Money|null + */ + protected $price; /** - * @return mixed + * @var string|null */ - public function getPrice() + protected $currency; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getBuyable(): ?Buyable + { + return $this->buyable; + } + + public function setBuyable(?Buyable $buyable): self + { + $this->initialized['buyable'] = true; + $this->buyable = $buyable; + + return $this; + } + + public function getType(): ?SubscriptionType + { + return $this->type; + } + + public function setType(?SubscriptionType $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getAmount(): ?string + { + return $this->amount; + } + + public function setAmount(?string $amount): self + { + $this->initialized['amount'] = true; + $this->amount = $amount; + + return $this; + } + + public function getPrice(): ?Money { return $this->price; } - public function setPrice(mixed $price): self + public function setPrice(?Money $price): self { + $this->initialized['price'] = true; $this->price = $price; return $this; } + + public function getCurrency(): ?string + { + return $this->currency; + } + + public function setCurrency(?string $currency): self + { + $this->initialized['currency'] = true; + $this->currency = $currency; + + return $this; + } } diff --git a/src/Model/PriceJsonld.php b/src/Model/PriceJsonld.php index b54e7dd8..acfbf32f 100644 --- a/src/Model/PriceJsonld.php +++ b/src/Model/PriceJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class PriceJsonld +class PriceJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -25,9 +34,29 @@ class PriceJsonld */ protected $type; /** - * @var mixed|null + * @var string|null + */ + protected $id2; + /** + * @var BuyableJsonld|null + */ + protected $buyable; + /** + * @var SubscriptionTypeJsonld|null + */ + protected $type2; + /** + * @var string|null + */ + protected $amount; + /** + * @var MoneyJsonld|null */ protected $price; + /** + * @var string|null + */ + protected $currency; /** * @return mixed @@ -37,8 +66,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -51,6 +84,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -63,23 +97,87 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; } - /** - * @return mixed - */ - public function getPrice() + public function getId2(): ?string + { + return $this->id2; + } + + public function setId2(?string $id2): self + { + $this->initialized['id2'] = true; + $this->id2 = $id2; + + return $this; + } + + public function getBuyable(): ?BuyableJsonld + { + return $this->buyable; + } + + public function setBuyable(?BuyableJsonld $buyable): self + { + $this->initialized['buyable'] = true; + $this->buyable = $buyable; + + return $this; + } + + public function getType2(): ?SubscriptionTypeJsonld + { + return $this->type2; + } + + public function setType2(?SubscriptionTypeJsonld $type2): self + { + $this->initialized['type2'] = true; + $this->type2 = $type2; + + return $this; + } + + public function getAmount(): ?string + { + return $this->amount; + } + + public function setAmount(?string $amount): self + { + $this->initialized['amount'] = true; + $this->amount = $amount; + + return $this; + } + + public function getPrice(): ?MoneyJsonld { return $this->price; } - public function setPrice(mixed $price): self + public function setPrice(?MoneyJsonld $price): self { + $this->initialized['price'] = true; $this->price = $price; return $this; } + + public function getCurrency(): ?string + { + return $this->currency; + } + + public function setCurrency(?string $currency): self + { + $this->initialized['currency'] = true; + $this->currency = $currency; + + return $this; + } } diff --git a/src/Model/PriceJsonldRead.php b/src/Model/PriceJsonldRead.php new file mode 100644 index 00000000..411fa64b --- /dev/null +++ b/src/Model/PriceJsonldRead.php @@ -0,0 +1,132 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var SubscriptionTypeJsonldRead|null + */ + protected $type2; + /** + * @var string|null + */ + protected $amount; + /** + * @var string|null + */ + protected $currency; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getType2(): ?SubscriptionTypeJsonldRead + { + return $this->type2; + } + + public function setType2(?SubscriptionTypeJsonldRead $type2): self + { + $this->initialized['type2'] = true; + $this->type2 = $type2; + + return $this; + } + + public function getAmount(): ?string + { + return $this->amount; + } + + public function setAmount(?string $amount): self + { + $this->initialized['amount'] = true; + $this->amount = $amount; + + return $this; + } + + public function getCurrency(): ?string + { + return $this->currency; + } + + public function setCurrency(?string $currency): self + { + $this->initialized['currency'] = true; + $this->currency = $currency; + + return $this; + } +} diff --git a/src/Model/PriceRead.php b/src/Model/PriceRead.php new file mode 100644 index 00000000..bc276123 --- /dev/null +++ b/src/Model/PriceRead.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var mixed[]|null + */ + protected $type; + /** + * @var string|null + */ + protected $amount; + /** + * @var string|null + */ + protected $currency; + + /** + * @return mixed[]|null + */ + public function getType(): ?iterable + { + return $this->type; + } + + /** + * @param mixed[]|null $type + */ + public function setType(?iterable $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getAmount(): ?string + { + return $this->amount; + } + + public function setAmount(?string $amount): self + { + $this->initialized['amount'] = true; + $this->amount = $amount; + + return $this; + } + + public function getCurrency(): ?string + { + return $this->currency; + } + + public function setCurrency(?string $currency): self + { + $this->initialized['currency'] = true; + $this->currency = $currency; + + return $this; + } +} diff --git a/src/Model/Probe.php b/src/Model/Probe.php index 29e97464..171331d6 100644 --- a/src/Model/Probe.php +++ b/src/Model/Probe.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class Probe +class Probe extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -28,6 +37,7 @@ public function getCode(): ?string public function setCode(?string $code): self { + $this->initialized['code'] = true; $this->code = $code; return $this; @@ -40,6 +50,7 @@ public function getLabel(): ?string public function setLabel(?string $label): self { + $this->initialized['label'] = true; $this->label = $label; return $this; diff --git a/src/Model/ProbeJsonld.php b/src/Model/ProbeJsonld.php index 9e479938..c5cc90e3 100644 --- a/src/Model/ProbeJsonld.php +++ b/src/Model/ProbeJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ProbeJsonld +class ProbeJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -41,8 +50,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -55,6 +68,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -67,6 +81,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -79,6 +94,7 @@ public function getCode(): ?string public function setCode(?string $code): self { + $this->initialized['code'] = true; $this->code = $code; return $this; @@ -91,6 +107,7 @@ public function getLabel(): ?string public function setLabel(?string $label): self { + $this->initialized['label'] = true; $this->label = $label; return $this; diff --git a/src/Model/ReferralCodeJsonldReferralCodeRead.php b/src/Model/ReferralCodeJsonldReferralCodeRead.php index ea7954b3..afcb23fb 100644 --- a/src/Model/ReferralCodeJsonldReferralCodeRead.php +++ b/src/Model/ReferralCodeJsonldReferralCodeRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ReferralCodeJsonldReferralCodeRead +class ReferralCodeJsonldReferralCodeRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -48,6 +57,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -60,6 +70,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -73,8 +84,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -87,6 +102,7 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; @@ -99,6 +115,7 @@ public function getUser(): ?string public function setUser(?string $user): self { + $this->initialized['user'] = true; $this->user = $user; return $this; @@ -111,6 +128,7 @@ public function getCode(): ?string public function setCode(?string $code): self { + $this->initialized['code'] = true; $this->code = $code; return $this; @@ -129,6 +147,7 @@ public function getReferralRequests(): ?array */ public function setReferralRequests(?array $referralRequests): self { + $this->initialized['referralRequests'] = true; $this->referralRequests = $referralRequests; return $this; diff --git a/src/Model/ReferralCodeJsonldReferralCodeWrite.php b/src/Model/ReferralCodeJsonldReferralCodeWrite.php index c1146b46..af2055ce 100644 --- a/src/Model/ReferralCodeJsonldReferralCodeWrite.php +++ b/src/Model/ReferralCodeJsonldReferralCodeWrite.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ReferralCodeJsonldReferralCodeWrite +class ReferralCodeJsonldReferralCodeWrite extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -37,8 +46,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -51,6 +64,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -63,6 +77,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -75,6 +90,7 @@ public function getUser(): ?string public function setUser(?string $user): self { + $this->initialized['user'] = true; $this->user = $user; return $this; diff --git a/src/Model/ReferralCodeReferralCodeRead.php b/src/Model/ReferralCodeReferralCodeRead.php index 681c2cdd..d7f62901 100644 --- a/src/Model/ReferralCodeReferralCodeRead.php +++ b/src/Model/ReferralCodeReferralCodeRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ReferralCodeReferralCodeRead +class ReferralCodeReferralCodeRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -36,6 +45,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -48,6 +58,7 @@ public function getUser(): ?string public function setUser(?string $user): self { + $this->initialized['user'] = true; $this->user = $user; return $this; @@ -60,6 +71,7 @@ public function getCode(): ?string public function setCode(?string $code): self { + $this->initialized['code'] = true; $this->code = $code; return $this; @@ -78,6 +90,7 @@ public function getReferralRequests(): ?array */ public function setReferralRequests(?array $referralRequests): self { + $this->initialized['referralRequests'] = true; $this->referralRequests = $referralRequests; return $this; diff --git a/src/Model/ReferralCodeReferralCodeWrite.php b/src/Model/ReferralCodeReferralCodeWrite.php index 58e5714e..c0fe390f 100644 --- a/src/Model/ReferralCodeReferralCodeWrite.php +++ b/src/Model/ReferralCodeReferralCodeWrite.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ReferralCodeReferralCodeWrite +class ReferralCodeReferralCodeWrite extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -24,6 +33,7 @@ public function getUser(): ?string public function setUser(?string $user): self { + $this->initialized['user'] = true; $this->user = $user; return $this; diff --git a/src/Model/ReferralCodesGetLdjsonResponse200.php b/src/Model/ReferralCodesGetLdjsonResponse200.php new file mode 100644 index 00000000..cbbb8d51 --- /dev/null +++ b/src/Model/ReferralCodesGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var ReferralCodeJsonldReferralCodeRead[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var ReferralCodesGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var ReferralCodesGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return ReferralCodeJsonldReferralCodeRead[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param ReferralCodeJsonldReferralCodeRead[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?ReferralCodesGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?ReferralCodesGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?ReferralCodesGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?ReferralCodesGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/ReferralCodesGetLdjsonResponse200HydraSearch.php b/src/Model/ReferralCodesGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..8d54b2af --- /dev/null +++ b/src/Model/ReferralCodesGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var ReferralCodesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return ReferralCodesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param ReferralCodesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/ReferralCodesGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/ReferralCodesGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..f50e7bdf --- /dev/null +++ b/src/Model/ReferralCodesGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/ReferralCodesGetLdjsonResponse200HydraView.php b/src/Model/ReferralCodesGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..bcfd1d4d --- /dev/null +++ b/src/Model/ReferralCodesGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/ReferralCodesGetResponse200.php b/src/Model/ReferralCodesGetResponse200.php deleted file mode 100644 index 19d05a46..00000000 --- a/src/Model/ReferralCodesGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param ReferralCodeJsonldReferralCodeRead[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?ReferralCodesGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?ReferralCodesGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?ReferralCodesGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?ReferralCodesGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/ReferralCodesGetResponse200HydraSearch.php b/src/Model/ReferralCodesGetResponse200HydraSearch.php deleted file mode 100644 index 8d273aa8..00000000 --- a/src/Model/ReferralCodesGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return ReferralCodesGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param ReferralCodesGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/ReferralCodesGetResponse200HydraSearchHydraMappingItem.php b/src/Model/ReferralCodesGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index da3e006b..00000000 --- a/src/Model/ReferralCodesGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/ReferralCodesGetResponse200HydraView.php b/src/Model/ReferralCodesGetResponse200HydraView.php deleted file mode 100644 index adba17f3..00000000 --- a/src/Model/ReferralCodesGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/ReferralOnPremiseRequestsGetLdjsonResponse200.php b/src/Model/ReferralOnPremiseRequestsGetLdjsonResponse200.php new file mode 100644 index 00000000..419369fd --- /dev/null +++ b/src/Model/ReferralOnPremiseRequestsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var OnPremiseRequestJsonldOnPremiseRequestRead[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var ReferralOnPremiseRequestsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var ReferralOnPremiseRequestsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return OnPremiseRequestJsonldOnPremiseRequestRead[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param OnPremiseRequestJsonldOnPremiseRequestRead[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?ReferralOnPremiseRequestsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?ReferralOnPremiseRequestsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?ReferralOnPremiseRequestsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?ReferralOnPremiseRequestsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/ReferralOnPremiseRequestsGetLdjsonResponse200HydraSearch.php b/src/Model/ReferralOnPremiseRequestsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..8734447e --- /dev/null +++ b/src/Model/ReferralOnPremiseRequestsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var ReferralOnPremiseRequestsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return ReferralOnPremiseRequestsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param ReferralOnPremiseRequestsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/ReferralOnPremiseRequestsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/ReferralOnPremiseRequestsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..ecf7ff7c --- /dev/null +++ b/src/Model/ReferralOnPremiseRequestsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/ReferralOnPremiseRequestsGetLdjsonResponse200HydraView.php b/src/Model/ReferralOnPremiseRequestsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..4dcc8a4b --- /dev/null +++ b/src/Model/ReferralOnPremiseRequestsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/ReferralOnPremiseRequestsGetResponse200.php b/src/Model/ReferralOnPremiseRequestsGetResponse200.php deleted file mode 100644 index 9e030845..00000000 --- a/src/Model/ReferralOnPremiseRequestsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param OnPremiseRequestJsonldOnPremiseRequestRead[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?ReferralOnPremiseRequestsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?ReferralOnPremiseRequestsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?ReferralOnPremiseRequestsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?ReferralOnPremiseRequestsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/ReferralOnPremiseRequestsGetResponse200HydraSearch.php b/src/Model/ReferralOnPremiseRequestsGetResponse200HydraSearch.php deleted file mode 100644 index d6e229f6..00000000 --- a/src/Model/ReferralOnPremiseRequestsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return ReferralOnPremiseRequestsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param ReferralOnPremiseRequestsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/ReferralOnPremiseRequestsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/ReferralOnPremiseRequestsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 0bdde7c4..00000000 --- a/src/Model/ReferralOnPremiseRequestsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/ReferralOnPremiseRequestsGetResponse200HydraView.php b/src/Model/ReferralOnPremiseRequestsGetResponse200HydraView.php deleted file mode 100644 index cb0a103f..00000000 --- a/src/Model/ReferralOnPremiseRequestsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/ReferralRequestJsonldReferralRequestRead.php b/src/Model/ReferralRequestJsonldReferralRequestRead.php index bd5fd8d7..f2e0970b 100644 --- a/src/Model/ReferralRequestJsonldReferralRequestRead.php +++ b/src/Model/ReferralRequestJsonldReferralRequestRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ReferralRequestJsonldReferralRequestRead +class ReferralRequestJsonldReferralRequestRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -73,8 +82,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -87,6 +100,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -99,6 +113,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -111,6 +126,7 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; @@ -123,6 +139,7 @@ public function getEmail(): ?string public function setEmail(?string $email): self { + $this->initialized['email'] = true; $this->email = $email; return $this; @@ -135,6 +152,7 @@ public function getFirstName(): ?string public function setFirstName(?string $firstName): self { + $this->initialized['firstName'] = true; $this->firstName = $firstName; return $this; @@ -147,6 +165,7 @@ public function getLastName(): ?string public function setLastName(?string $lastName): self { + $this->initialized['lastName'] = true; $this->lastName = $lastName; return $this; @@ -159,6 +178,7 @@ public function getUserName(): ?string public function setUserName(?string $userName): self { + $this->initialized['userName'] = true; $this->userName = $userName; return $this; @@ -171,6 +191,7 @@ public function getCompanyName(): ?string public function setCompanyName(?string $companyName): self { + $this->initialized['companyName'] = true; $this->companyName = $companyName; return $this; @@ -183,6 +204,7 @@ public function getCreationDate(): ?\DateTime public function setCreationDate(?\DateTime $creationDate): self { + $this->initialized['creationDate'] = true; $this->creationDate = $creationDate; return $this; @@ -195,6 +217,7 @@ public function getReferralCode(): ?string public function setReferralCode(?string $referralCode): self { + $this->initialized['referralCode'] = true; $this->referralCode = $referralCode; return $this; @@ -207,6 +230,7 @@ public function getApprover(): ?string public function setApprover(?string $approver): self { + $this->initialized['approver'] = true; $this->approver = $approver; return $this; @@ -219,6 +243,7 @@ public function getStatus(): ?string public function setStatus(?string $status): self { + $this->initialized['status'] = true; $this->status = $status; return $this; diff --git a/src/Model/ReferralRequestReferralRequestInput.php b/src/Model/ReferralRequestReferralRequestInput.php index b3e95d03..d5d7a176 100644 --- a/src/Model/ReferralRequestReferralRequestInput.php +++ b/src/Model/ReferralRequestReferralRequestInput.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ReferralRequestReferralRequestInput +class ReferralRequestReferralRequestInput extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -44,6 +53,7 @@ public function getEmail(): ?string public function setEmail(?string $email): self { + $this->initialized['email'] = true; $this->email = $email; return $this; @@ -56,6 +66,7 @@ public function getFirstName(): ?string public function setFirstName(?string $firstName): self { + $this->initialized['firstName'] = true; $this->firstName = $firstName; return $this; @@ -68,6 +79,7 @@ public function getLastName(): ?string public function setLastName(?string $lastName): self { + $this->initialized['lastName'] = true; $this->lastName = $lastName; return $this; @@ -80,6 +92,7 @@ public function getUsername(): ?string public function setUsername(?string $username): self { + $this->initialized['username'] = true; $this->username = $username; return $this; @@ -92,6 +105,7 @@ public function getCompanyName(): ?string public function setCompanyName(?string $companyName): self { + $this->initialized['companyName'] = true; $this->companyName = $companyName; return $this; @@ -104,6 +118,7 @@ public function getReferralCode(): ?string public function setReferralCode(?string $referralCode): self { + $this->initialized['referralCode'] = true; $this->referralCode = $referralCode; return $this; diff --git a/src/Model/ReferralRequestReferralRequestInputJsonld.php b/src/Model/ReferralRequestReferralRequestInputJsonld.php index 5e00feb3..19ce1388 100644 --- a/src/Model/ReferralRequestReferralRequestInputJsonld.php +++ b/src/Model/ReferralRequestReferralRequestInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ReferralRequestReferralRequestInputJsonld +class ReferralRequestReferralRequestInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -57,8 +66,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -71,6 +84,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -83,6 +97,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -95,6 +110,7 @@ public function getEmail(): ?string public function setEmail(?string $email): self { + $this->initialized['email'] = true; $this->email = $email; return $this; @@ -107,6 +123,7 @@ public function getFirstName(): ?string public function setFirstName(?string $firstName): self { + $this->initialized['firstName'] = true; $this->firstName = $firstName; return $this; @@ -119,6 +136,7 @@ public function getLastName(): ?string public function setLastName(?string $lastName): self { + $this->initialized['lastName'] = true; $this->lastName = $lastName; return $this; @@ -131,6 +149,7 @@ public function getUsername(): ?string public function setUsername(?string $username): self { + $this->initialized['username'] = true; $this->username = $username; return $this; @@ -143,6 +162,7 @@ public function getCompanyName(): ?string public function setCompanyName(?string $companyName): self { + $this->initialized['companyName'] = true; $this->companyName = $companyName; return $this; @@ -155,6 +175,7 @@ public function getReferralCode(): ?string public function setReferralCode(?string $referralCode): self { + $this->initialized['referralCode'] = true; $this->referralCode = $referralCode; return $this; diff --git a/src/Model/ReferralRequestReferralRequestRead.php b/src/Model/ReferralRequestReferralRequestRead.php index da943d84..e651c242 100644 --- a/src/Model/ReferralRequestReferralRequestRead.php +++ b/src/Model/ReferralRequestReferralRequestRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ReferralRequestReferralRequestRead +class ReferralRequestReferralRequestRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -60,6 +69,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -72,6 +82,7 @@ public function getEmail(): ?string public function setEmail(?string $email): self { + $this->initialized['email'] = true; $this->email = $email; return $this; @@ -84,6 +95,7 @@ public function getFirstName(): ?string public function setFirstName(?string $firstName): self { + $this->initialized['firstName'] = true; $this->firstName = $firstName; return $this; @@ -96,6 +108,7 @@ public function getLastName(): ?string public function setLastName(?string $lastName): self { + $this->initialized['lastName'] = true; $this->lastName = $lastName; return $this; @@ -108,6 +121,7 @@ public function getUserName(): ?string public function setUserName(?string $userName): self { + $this->initialized['userName'] = true; $this->userName = $userName; return $this; @@ -120,6 +134,7 @@ public function getCompanyName(): ?string public function setCompanyName(?string $companyName): self { + $this->initialized['companyName'] = true; $this->companyName = $companyName; return $this; @@ -132,6 +147,7 @@ public function getCreationDate(): ?\DateTime public function setCreationDate(?\DateTime $creationDate): self { + $this->initialized['creationDate'] = true; $this->creationDate = $creationDate; return $this; @@ -144,6 +160,7 @@ public function getReferralCode(): ?string public function setReferralCode(?string $referralCode): self { + $this->initialized['referralCode'] = true; $this->referralCode = $referralCode; return $this; @@ -156,6 +173,7 @@ public function getApprover(): ?string public function setApprover(?string $approver): self { + $this->initialized['approver'] = true; $this->approver = $approver; return $this; @@ -168,6 +186,7 @@ public function getStatus(): ?string public function setStatus(?string $status): self { + $this->initialized['status'] = true; $this->status = $status; return $this; diff --git a/src/Model/ReferralRequestsGetLdjsonResponse200.php b/src/Model/ReferralRequestsGetLdjsonResponse200.php new file mode 100644 index 00000000..bc671e17 --- /dev/null +++ b/src/Model/ReferralRequestsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var ReferralRequestJsonldReferralRequestRead[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var ReferralRequestsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var ReferralRequestsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return ReferralRequestJsonldReferralRequestRead[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param ReferralRequestJsonldReferralRequestRead[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?ReferralRequestsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?ReferralRequestsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?ReferralRequestsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?ReferralRequestsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/ReferralRequestsGetLdjsonResponse200HydraSearch.php b/src/Model/ReferralRequestsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..98c9faef --- /dev/null +++ b/src/Model/ReferralRequestsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var ReferralRequestsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return ReferralRequestsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param ReferralRequestsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/ReferralRequestsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/ReferralRequestsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..871cfaaa --- /dev/null +++ b/src/Model/ReferralRequestsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/ReferralRequestsGetLdjsonResponse200HydraView.php b/src/Model/ReferralRequestsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..20c3e36a --- /dev/null +++ b/src/Model/ReferralRequestsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/ReferralRequestsGetResponse200.php b/src/Model/ReferralRequestsGetResponse200.php deleted file mode 100644 index 8c6b2ad3..00000000 --- a/src/Model/ReferralRequestsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param ReferralRequestJsonldReferralRequestRead[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?ReferralRequestsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?ReferralRequestsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?ReferralRequestsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?ReferralRequestsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/ReferralRequestsGetResponse200HydraSearch.php b/src/Model/ReferralRequestsGetResponse200HydraSearch.php deleted file mode 100644 index 16908c09..00000000 --- a/src/Model/ReferralRequestsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return ReferralRequestsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param ReferralRequestsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/ReferralRequestsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/ReferralRequestsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 18d228ee..00000000 --- a/src/Model/ReferralRequestsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/ReferralRequestsGetResponse200HydraView.php b/src/Model/ReferralRequestsGetResponse200HydraView.php deleted file mode 100644 index fe3fabae..00000000 --- a/src/Model/ReferralRequestsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/Region.php b/src/Model/Region.php new file mode 100644 index 00000000..c5de7831 --- /dev/null +++ b/src/Model/Region.php @@ -0,0 +1,132 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $provider; + /** + * @var string|null + */ + protected $datacenterName; + /** + * @var string|null + */ + protected $datacenterAddress; + /** + * @var AbstractCloudEngine|null + */ + protected $cloudEngine; + /** + * @var string[]|null + */ + protected $workspaces; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getProvider(): ?string + { + return $this->provider; + } + + public function setProvider(?string $provider): self + { + $this->initialized['provider'] = true; + $this->provider = $provider; + + return $this; + } + + public function getDatacenterName(): ?string + { + return $this->datacenterName; + } + + public function setDatacenterName(?string $datacenterName): self + { + $this->initialized['datacenterName'] = true; + $this->datacenterName = $datacenterName; + + return $this; + } + + public function getDatacenterAddress(): ?string + { + return $this->datacenterAddress; + } + + public function setDatacenterAddress(?string $datacenterAddress): self + { + $this->initialized['datacenterAddress'] = true; + $this->datacenterAddress = $datacenterAddress; + + return $this; + } + + public function getCloudEngine(): ?AbstractCloudEngine + { + return $this->cloudEngine; + } + + public function setCloudEngine(?AbstractCloudEngine $cloudEngine): self + { + $this->initialized['cloudEngine'] = true; + $this->cloudEngine = $cloudEngine; + + return $this; + } + + /** + * @return string[]|null + */ + public function getWorkspaces(): ?array + { + return $this->workspaces; + } + + /** + * @param string[]|null $workspaces + */ + public function setWorkspaces(?array $workspaces): self + { + $this->initialized['workspaces'] = true; + $this->workspaces = $workspaces; + + return $this; + } +} diff --git a/src/Model/RegionJsonld.php b/src/Model/RegionJsonld.php new file mode 100644 index 00000000..05c7b69c --- /dev/null +++ b/src/Model/RegionJsonld.php @@ -0,0 +1,189 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $id2; + /** + * @var string|null + */ + protected $provider; + /** + * @var string|null + */ + protected $datacenterName; + /** + * @var string|null + */ + protected $datacenterAddress; + /** + * @var AbstractCloudEngineJsonld|null + */ + protected $cloudEngine; + /** + * @var string[]|null + */ + protected $workspaces; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getId2(): ?string + { + return $this->id2; + } + + public function setId2(?string $id2): self + { + $this->initialized['id2'] = true; + $this->id2 = $id2; + + return $this; + } + + public function getProvider(): ?string + { + return $this->provider; + } + + public function setProvider(?string $provider): self + { + $this->initialized['provider'] = true; + $this->provider = $provider; + + return $this; + } + + public function getDatacenterName(): ?string + { + return $this->datacenterName; + } + + public function setDatacenterName(?string $datacenterName): self + { + $this->initialized['datacenterName'] = true; + $this->datacenterName = $datacenterName; + + return $this; + } + + public function getDatacenterAddress(): ?string + { + return $this->datacenterAddress; + } + + public function setDatacenterAddress(?string $datacenterAddress): self + { + $this->initialized['datacenterAddress'] = true; + $this->datacenterAddress = $datacenterAddress; + + return $this; + } + + public function getCloudEngine(): ?AbstractCloudEngineJsonld + { + return $this->cloudEngine; + } + + public function setCloudEngine(?AbstractCloudEngineJsonld $cloudEngine): self + { + $this->initialized['cloudEngine'] = true; + $this->cloudEngine = $cloudEngine; + + return $this; + } + + /** + * @return string[]|null + */ + public function getWorkspaces(): ?array + { + return $this->workspaces; + } + + /** + * @param string[]|null $workspaces + */ + public function setWorkspaces(?array $workspaces): self + { + $this->initialized['workspaces'] = true; + $this->workspaces = $workspaces; + + return $this; + } +} diff --git a/src/Model/RuntimeActionsGetLdjsonResponse200.php b/src/Model/RuntimeActionsGetLdjsonResponse200.php new file mode 100644 index 00000000..2c410c11 --- /dev/null +++ b/src/Model/RuntimeActionsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var ActionJsonldRead[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var RuntimeActionsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var RuntimeActionsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return ActionJsonldRead[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param ActionJsonldRead[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?RuntimeActionsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?RuntimeActionsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?RuntimeActionsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?RuntimeActionsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/RuntimeActionsGetLdjsonResponse200HydraSearch.php b/src/Model/RuntimeActionsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..fc7705a9 --- /dev/null +++ b/src/Model/RuntimeActionsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var RuntimeActionsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return RuntimeActionsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param RuntimeActionsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/RuntimeActionsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeActionsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..2813f1f5 --- /dev/null +++ b/src/Model/RuntimeActionsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/RuntimeActionsGetLdjsonResponse200HydraView.php b/src/Model/RuntimeActionsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..34ee7bc2 --- /dev/null +++ b/src/Model/RuntimeActionsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/RuntimeActionsGetResponse200.php b/src/Model/RuntimeActionsGetResponse200.php deleted file mode 100644 index 173bba79..00000000 --- a/src/Model/RuntimeActionsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param ActionJsonldRead[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?RuntimeActionsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?RuntimeActionsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?RuntimeActionsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?RuntimeActionsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/RuntimeActionsGetResponse200HydraSearch.php b/src/Model/RuntimeActionsGetResponse200HydraSearch.php deleted file mode 100644 index aacd2f47..00000000 --- a/src/Model/RuntimeActionsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return RuntimeActionsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param RuntimeActionsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/RuntimeActionsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeActionsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index db8ed744..00000000 --- a/src/Model/RuntimeActionsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/RuntimeActionsGetResponse200HydraView.php b/src/Model/RuntimeActionsGetResponse200HydraView.php deleted file mode 100644 index 1453a2a0..00000000 --- a/src/Model/RuntimeActionsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/RuntimeCompilationsGetLdjsonResponse200.php b/src/Model/RuntimeCompilationsGetLdjsonResponse200.php new file mode 100644 index 00000000..433badb1 --- /dev/null +++ b/src/Model/RuntimeCompilationsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var CompilationJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var RuntimeCompilationsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var RuntimeCompilationsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return CompilationJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param CompilationJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?RuntimeCompilationsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?RuntimeCompilationsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?RuntimeCompilationsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?RuntimeCompilationsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/RuntimeCompilationsGetLdjsonResponse200HydraSearch.php b/src/Model/RuntimeCompilationsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..e991268e --- /dev/null +++ b/src/Model/RuntimeCompilationsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var RuntimeCompilationsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return RuntimeCompilationsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param RuntimeCompilationsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/RuntimeCompilationsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeCompilationsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..187f706a --- /dev/null +++ b/src/Model/RuntimeCompilationsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/RuntimeCompilationsGetLdjsonResponse200HydraView.php b/src/Model/RuntimeCompilationsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..f79308d5 --- /dev/null +++ b/src/Model/RuntimeCompilationsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/RuntimeCompilationsGetResponse200.php b/src/Model/RuntimeCompilationsGetResponse200.php deleted file mode 100644 index e208b64a..00000000 --- a/src/Model/RuntimeCompilationsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param CompilationJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?RuntimeCompilationsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?RuntimeCompilationsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?RuntimeCompilationsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?RuntimeCompilationsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/RuntimeCompilationsGetResponse200HydraSearch.php b/src/Model/RuntimeCompilationsGetResponse200HydraSearch.php deleted file mode 100644 index 2c06160d..00000000 --- a/src/Model/RuntimeCompilationsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return RuntimeCompilationsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param RuntimeCompilationsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/RuntimeCompilationsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeCompilationsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 9ca436d5..00000000 --- a/src/Model/RuntimeCompilationsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/RuntimeCompilationsGetResponse200HydraView.php b/src/Model/RuntimeCompilationsGetResponse200HydraView.php deleted file mode 100644 index 5688a919..00000000 --- a/src/Model/RuntimeCompilationsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionExecutionPipelineIdStepsGetResponse200.php b/src/Model/RuntimeExecutionExecutionPipelineIdStepsGetResponse200.php deleted file mode 100644 index 1895d829..00000000 --- a/src/Model/RuntimeExecutionExecutionPipelineIdStepsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param ExecutionPipelineStepJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearch.php b/src/Model/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearch.php deleted file mode 100644 index 1c9cc154..00000000 --- a/src/Model/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 2ef335f8..00000000 --- a/src/Model/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraView.php b/src/Model/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraView.php deleted file mode 100644 index 635ce3f0..00000000 --- a/src/Model/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionExecutionPipelinesGetResponse200.php b/src/Model/RuntimeExecutionExecutionPipelinesGetResponse200.php deleted file mode 100644 index 25d1d82f..00000000 --- a/src/Model/RuntimeExecutionExecutionPipelinesGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param ExecutionPipelineJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?RuntimeExecutionExecutionPipelinesGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?RuntimeExecutionExecutionPipelinesGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?RuntimeExecutionExecutionPipelinesGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?RuntimeExecutionExecutionPipelinesGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionExecutionPipelinesGetResponse200HydraSearch.php b/src/Model/RuntimeExecutionExecutionPipelinesGetResponse200HydraSearch.php deleted file mode 100644 index 4b89c901..00000000 --- a/src/Model/RuntimeExecutionExecutionPipelinesGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index e70e6f36..00000000 --- a/src/Model/RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionExecutionPipelinesGetResponse200HydraView.php b/src/Model/RuntimeExecutionExecutionPipelinesGetResponse200HydraView.php deleted file mode 100644 index 16990bd7..00000000 --- a/src/Model/RuntimeExecutionExecutionPipelinesGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200.php b/src/Model/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200.php deleted file mode 100644 index 3b6f0741..00000000 --- a/src/Model/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param ExecutionWorkflowJobJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearch.php b/src/Model/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearch.php deleted file mode 100644 index 67f618c8..00000000 --- a/src/Model/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 9fd38e7a..00000000 --- a/src/Model/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraView.php b/src/Model/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraView.php deleted file mode 100644 index e4dfcfbf..00000000 --- a/src/Model/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionExecutionWorkflowsGetResponse200.php b/src/Model/RuntimeExecutionExecutionWorkflowsGetResponse200.php deleted file mode 100644 index 6a7e5303..00000000 --- a/src/Model/RuntimeExecutionExecutionWorkflowsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param ExecutionWorkflowJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?RuntimeExecutionExecutionWorkflowsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?RuntimeExecutionExecutionWorkflowsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearch.php b/src/Model/RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearch.php deleted file mode 100644 index 4b8efa90..00000000 --- a/src/Model/RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 8a8c838c..00000000 --- a/src/Model/RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionExecutionWorkflowsGetResponse200HydraView.php b/src/Model/RuntimeExecutionExecutionWorkflowsGetResponse200HydraView.php deleted file mode 100644 index 9a82604a..00000000 --- a/src/Model/RuntimeExecutionExecutionWorkflowsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionIdWorkflowJobsGetResponse200.php b/src/Model/RuntimeExecutionIdWorkflowJobsGetResponse200.php deleted file mode 100644 index ec86428b..00000000 --- a/src/Model/RuntimeExecutionIdWorkflowJobsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param ExecutionWorkflowJobJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?RuntimeExecutionIdWorkflowJobsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?RuntimeExecutionIdWorkflowJobsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearch.php b/src/Model/RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearch.php deleted file mode 100644 index a9b98661..00000000 --- a/src/Model/RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 51bf78b7..00000000 --- a/src/Model/RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionIdWorkflowJobsGetResponse200HydraView.php b/src/Model/RuntimeExecutionIdWorkflowJobsGetResponse200HydraView.php deleted file mode 100644 index 876b4d57..00000000 --- a/src/Model/RuntimeExecutionIdWorkflowJobsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionPipelineJobIdStepsGetResponse200.php b/src/Model/RuntimeExecutionPipelineJobIdStepsGetResponse200.php deleted file mode 100644 index 3b048a1f..00000000 --- a/src/Model/RuntimeExecutionPipelineJobIdStepsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param ExecutionPipelineStepJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?RuntimeExecutionPipelineJobIdStepsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?RuntimeExecutionPipelineJobIdStepsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearch.php b/src/Model/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearch.php deleted file mode 100644 index d7847bd0..00000000 --- a/src/Model/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index ba4ef4ea..00000000 --- a/src/Model/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraView.php b/src/Model/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraView.php deleted file mode 100644 index 9150acae..00000000 --- a/src/Model/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionPipelineJobsGetLdjsonResponse200.php b/src/Model/RuntimeExecutionPipelineJobsGetLdjsonResponse200.php new file mode 100644 index 00000000..fc9bf0df --- /dev/null +++ b/src/Model/RuntimeExecutionPipelineJobsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var ExecutionPipelineJobJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return ExecutionPipelineJobJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param ExecutionPipelineJobJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraSearch.php b/src/Model/RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..26554cb0 --- /dev/null +++ b/src/Model/RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..e2b1d1bc --- /dev/null +++ b/src/Model/RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraView.php b/src/Model/RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..2d161315 --- /dev/null +++ b/src/Model/RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionPipelineJobsGetResponse200.php b/src/Model/RuntimeExecutionPipelineJobsGetResponse200.php deleted file mode 100644 index 0efc86c6..00000000 --- a/src/Model/RuntimeExecutionPipelineJobsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param ExecutionPipelineJobJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?RuntimeExecutionPipelineJobsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?RuntimeExecutionPipelineJobsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?RuntimeExecutionPipelineJobsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?RuntimeExecutionPipelineJobsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionPipelineJobsGetResponse200HydraSearch.php b/src/Model/RuntimeExecutionPipelineJobsGetResponse200HydraSearch.php deleted file mode 100644 index 53c388d9..00000000 --- a/src/Model/RuntimeExecutionPipelineJobsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return RuntimeExecutionPipelineJobsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param RuntimeExecutionPipelineJobsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionPipelineJobsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeExecutionPipelineJobsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 3e730598..00000000 --- a/src/Model/RuntimeExecutionPipelineJobsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionPipelineJobsGetResponse200HydraView.php b/src/Model/RuntimeExecutionPipelineJobsGetResponse200HydraView.php deleted file mode 100644 index 6a8ffb0c..00000000 --- a/src/Model/RuntimeExecutionPipelineJobsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200.php b/src/Model/RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200.php new file mode 100644 index 00000000..e5d34879 --- /dev/null +++ b/src/Model/RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var ExecutionPipelineStepJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return ExecutionPipelineStepJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param ExecutionPipelineStepJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraSearch.php b/src/Model/RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..ef7fc66c --- /dev/null +++ b/src/Model/RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..d1371e9a --- /dev/null +++ b/src/Model/RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraView.php b/src/Model/RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..8a610583 --- /dev/null +++ b/src/Model/RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200.php b/src/Model/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200.php deleted file mode 100644 index 53bddddd..00000000 --- a/src/Model/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param ExecutionPipelineStepJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearch.php b/src/Model/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearch.php deleted file mode 100644 index 0275273e..00000000 --- a/src/Model/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 02400930..00000000 --- a/src/Model/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraView.php b/src/Model/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraView.php deleted file mode 100644 index df9c128e..00000000 --- a/src/Model/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200.php b/src/Model/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200.php deleted file mode 100644 index e986bed9..00000000 --- a/src/Model/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param ExecutionWorkflowJobJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearch.php b/src/Model/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearch.php deleted file mode 100644 index 1be9260b..00000000 --- a/src/Model/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 36ca6f61..00000000 --- a/src/Model/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraView.php b/src/Model/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraView.php deleted file mode 100644 index 0cf293e8..00000000 --- a/src/Model/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionsGetLdjsonResponse200.php b/src/Model/RuntimeExecutionsGetLdjsonResponse200.php new file mode 100644 index 00000000..c9558cb3 --- /dev/null +++ b/src/Model/RuntimeExecutionsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var ExecutionJsonldRead[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var RuntimeExecutionsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var RuntimeExecutionsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return ExecutionJsonldRead[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param ExecutionJsonldRead[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?RuntimeExecutionsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?RuntimeExecutionsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?RuntimeExecutionsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?RuntimeExecutionsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsGetLdjsonResponse200HydraSearch.php b/src/Model/RuntimeExecutionsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..1dc62b45 --- /dev/null +++ b/src/Model/RuntimeExecutionsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var RuntimeExecutionsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return RuntimeExecutionsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param RuntimeExecutionsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeExecutionsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..19daf76c --- /dev/null +++ b/src/Model/RuntimeExecutionsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsGetLdjsonResponse200HydraView.php b/src/Model/RuntimeExecutionsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..8ff0a2f6 --- /dev/null +++ b/src/Model/RuntimeExecutionsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsGetResponse200.php b/src/Model/RuntimeExecutionsGetResponse200.php deleted file mode 100644 index deb52d98..00000000 --- a/src/Model/RuntimeExecutionsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param ExecutionJsonldRead[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?RuntimeExecutionsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?RuntimeExecutionsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?RuntimeExecutionsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?RuntimeExecutionsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionsGetResponse200HydraSearch.php b/src/Model/RuntimeExecutionsGetResponse200HydraSearch.php deleted file mode 100644 index 56c0441e..00000000 --- a/src/Model/RuntimeExecutionsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return RuntimeExecutionsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param RuntimeExecutionsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeExecutionsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 9324b720..00000000 --- a/src/Model/RuntimeExecutionsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionsGetResponse200HydraView.php b/src/Model/RuntimeExecutionsGetResponse200HydraView.php deleted file mode 100644 index 8e2c9f77..00000000 --- a/src/Model/RuntimeExecutionsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200.php b/src/Model/RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200.php new file mode 100644 index 00000000..b5c2fd3d --- /dev/null +++ b/src/Model/RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var ExecutionWorkflowJobJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return ExecutionWorkflowJobJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param ExecutionWorkflowJobJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraSearch.php b/src/Model/RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..83718e4c --- /dev/null +++ b/src/Model/RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..30de5694 --- /dev/null +++ b/src/Model/RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraView.php b/src/Model/RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..dbafaab2 --- /dev/null +++ b/src/Model/RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsPipelinesGetLdjsonResponse200.php b/src/Model/RuntimeExecutionsPipelinesGetLdjsonResponse200.php new file mode 100644 index 00000000..60140688 --- /dev/null +++ b/src/Model/RuntimeExecutionsPipelinesGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var ExecutionPipelineJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var RuntimeExecutionsPipelinesGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var RuntimeExecutionsPipelinesGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return ExecutionPipelineJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param ExecutionPipelineJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?RuntimeExecutionsPipelinesGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?RuntimeExecutionsPipelinesGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?RuntimeExecutionsPipelinesGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?RuntimeExecutionsPipelinesGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsPipelinesGetLdjsonResponse200HydraSearch.php b/src/Model/RuntimeExecutionsPipelinesGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..b87ddd16 --- /dev/null +++ b/src/Model/RuntimeExecutionsPipelinesGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var RuntimeExecutionsPipelinesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return RuntimeExecutionsPipelinesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param RuntimeExecutionsPipelinesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsPipelinesGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeExecutionsPipelinesGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..1bfbc373 --- /dev/null +++ b/src/Model/RuntimeExecutionsPipelinesGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsPipelinesGetLdjsonResponse200HydraView.php b/src/Model/RuntimeExecutionsPipelinesGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..0cb9cb1b --- /dev/null +++ b/src/Model/RuntimeExecutionsPipelinesGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200.php b/src/Model/RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200.php new file mode 100644 index 00000000..2b5bab39 --- /dev/null +++ b/src/Model/RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var ExecutionPipelineStepJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return ExecutionPipelineStepJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param ExecutionPipelineStepJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraSearch.php b/src/Model/RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..0d2542a8 --- /dev/null +++ b/src/Model/RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..bb08a8ac --- /dev/null +++ b/src/Model/RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraView.php b/src/Model/RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..e9f690da --- /dev/null +++ b/src/Model/RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsWorkflowsGetLdjsonResponse200.php b/src/Model/RuntimeExecutionsWorkflowsGetLdjsonResponse200.php new file mode 100644 index 00000000..48a5733a --- /dev/null +++ b/src/Model/RuntimeExecutionsWorkflowsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var ExecutionWorkflowJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return ExecutionWorkflowJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param ExecutionWorkflowJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraSearch.php b/src/Model/RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..a4830707 --- /dev/null +++ b/src/Model/RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..f9d1701d --- /dev/null +++ b/src/Model/RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraView.php b/src/Model/RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..a0fac413 --- /dev/null +++ b/src/Model/RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200.php b/src/Model/RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200.php new file mode 100644 index 00000000..e987e906 --- /dev/null +++ b/src/Model/RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var ExecutionWorkflowJobJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return ExecutionWorkflowJobJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param ExecutionWorkflowJobJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraSearch.php b/src/Model/RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..4d66f90d --- /dev/null +++ b/src/Model/RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..465aaee9 --- /dev/null +++ b/src/Model/RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraView.php b/src/Model/RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..d095aecc --- /dev/null +++ b/src/Model/RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200.php b/src/Model/RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200.php new file mode 100644 index 00000000..e2c3ed05 --- /dev/null +++ b/src/Model/RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var ExecutionWorkflowJobJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return ExecutionWorkflowJobJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param ExecutionWorkflowJobJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraSearch.php b/src/Model/RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..e08777ab --- /dev/null +++ b/src/Model/RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..9aafc3de --- /dev/null +++ b/src/Model/RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraView.php b/src/Model/RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..8ffa2e57 --- /dev/null +++ b/src/Model/RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200.php b/src/Model/RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200.php new file mode 100644 index 00000000..b27b9603 --- /dev/null +++ b/src/Model/RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var ExecutionPipelineStepJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return ExecutionPipelineStepJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param ExecutionPipelineStepJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraSearch.php b/src/Model/RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..ab466e8b --- /dev/null +++ b/src/Model/RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..39bf2eee --- /dev/null +++ b/src/Model/RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraView.php b/src/Model/RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..6a1ef734 --- /dev/null +++ b/src/Model/RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/RuntimePipelineIdCompilationsGetResponse200.php b/src/Model/RuntimePipelineIdCompilationsGetResponse200.php deleted file mode 100644 index bc58c924..00000000 --- a/src/Model/RuntimePipelineIdCompilationsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param CompilationJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?RuntimePipelineIdCompilationsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?RuntimePipelineIdCompilationsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?RuntimePipelineIdCompilationsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?RuntimePipelineIdCompilationsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/RuntimePipelineIdCompilationsGetResponse200HydraSearch.php b/src/Model/RuntimePipelineIdCompilationsGetResponse200HydraSearch.php deleted file mode 100644 index 893bb538..00000000 --- a/src/Model/RuntimePipelineIdCompilationsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return RuntimePipelineIdCompilationsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param RuntimePipelineIdCompilationsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/RuntimePipelineIdCompilationsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimePipelineIdCompilationsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 6d883860..00000000 --- a/src/Model/RuntimePipelineIdCompilationsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/RuntimePipelineIdCompilationsGetResponse200HydraView.php b/src/Model/RuntimePipelineIdCompilationsGetResponse200HydraView.php deleted file mode 100644 index bc48a1b6..00000000 --- a/src/Model/RuntimePipelineIdCompilationsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/RuntimePipelineIdStepsGetResponse200.php b/src/Model/RuntimePipelineIdStepsGetResponse200.php deleted file mode 100644 index a76601e8..00000000 --- a/src/Model/RuntimePipelineIdStepsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param PipelineStepJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?RuntimePipelineIdStepsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?RuntimePipelineIdStepsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?RuntimePipelineIdStepsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?RuntimePipelineIdStepsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/RuntimePipelineIdStepsGetResponse200HydraSearch.php b/src/Model/RuntimePipelineIdStepsGetResponse200HydraSearch.php deleted file mode 100644 index de79e12b..00000000 --- a/src/Model/RuntimePipelineIdStepsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return RuntimePipelineIdStepsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param RuntimePipelineIdStepsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/RuntimePipelineIdStepsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimePipelineIdStepsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 553cf7b3..00000000 --- a/src/Model/RuntimePipelineIdStepsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/RuntimePipelineIdStepsGetResponse200HydraView.php b/src/Model/RuntimePipelineIdStepsGetResponse200HydraView.php deleted file mode 100644 index 92e63a06..00000000 --- a/src/Model/RuntimePipelineIdStepsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/RuntimePipelineStepIdProbesGetResponse200.php b/src/Model/RuntimePipelineStepIdProbesGetResponse200.php deleted file mode 100644 index 8a88d99a..00000000 --- a/src/Model/RuntimePipelineStepIdProbesGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param PipelineStepProbeJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?RuntimePipelineStepIdProbesGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?RuntimePipelineStepIdProbesGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?RuntimePipelineStepIdProbesGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?RuntimePipelineStepIdProbesGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/RuntimePipelineStepIdProbesGetResponse200HydraSearch.php b/src/Model/RuntimePipelineStepIdProbesGetResponse200HydraSearch.php deleted file mode 100644 index aeb12251..00000000 --- a/src/Model/RuntimePipelineStepIdProbesGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return RuntimePipelineStepIdProbesGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param RuntimePipelineStepIdProbesGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/RuntimePipelineStepIdProbesGetResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimePipelineStepIdProbesGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 353af00c..00000000 --- a/src/Model/RuntimePipelineStepIdProbesGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/RuntimePipelineStepIdProbesGetResponse200HydraView.php b/src/Model/RuntimePipelineStepIdProbesGetResponse200HydraView.php deleted file mode 100644 index 4bd953c6..00000000 --- a/src/Model/RuntimePipelineStepIdProbesGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/RuntimePipelineStepProbesGetLdjsonResponse200.php b/src/Model/RuntimePipelineStepProbesGetLdjsonResponse200.php new file mode 100644 index 00000000..fdf3b79f --- /dev/null +++ b/src/Model/RuntimePipelineStepProbesGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var PipelineStepProbeJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var RuntimePipelineStepProbesGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var RuntimePipelineStepProbesGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return PipelineStepProbeJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param PipelineStepProbeJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?RuntimePipelineStepProbesGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?RuntimePipelineStepProbesGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?RuntimePipelineStepProbesGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?RuntimePipelineStepProbesGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/RuntimePipelineStepProbesGetLdjsonResponse200HydraSearch.php b/src/Model/RuntimePipelineStepProbesGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..2e8f9e3b --- /dev/null +++ b/src/Model/RuntimePipelineStepProbesGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var RuntimePipelineStepProbesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return RuntimePipelineStepProbesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param RuntimePipelineStepProbesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/RuntimePipelineStepProbesGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimePipelineStepProbesGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..51897ee8 --- /dev/null +++ b/src/Model/RuntimePipelineStepProbesGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/RuntimePipelineStepProbesGetLdjsonResponse200HydraView.php b/src/Model/RuntimePipelineStepProbesGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..bdca9226 --- /dev/null +++ b/src/Model/RuntimePipelineStepProbesGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/RuntimePipelineStepProbesGetResponse200.php b/src/Model/RuntimePipelineStepProbesGetResponse200.php deleted file mode 100644 index 820921c0..00000000 --- a/src/Model/RuntimePipelineStepProbesGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param PipelineStepProbeJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?RuntimePipelineStepProbesGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?RuntimePipelineStepProbesGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?RuntimePipelineStepProbesGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?RuntimePipelineStepProbesGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/RuntimePipelineStepProbesGetResponse200HydraSearch.php b/src/Model/RuntimePipelineStepProbesGetResponse200HydraSearch.php deleted file mode 100644 index 1e97b35f..00000000 --- a/src/Model/RuntimePipelineStepProbesGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return RuntimePipelineStepProbesGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param RuntimePipelineStepProbesGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/RuntimePipelineStepProbesGetResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimePipelineStepProbesGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 1f0a14c3..00000000 --- a/src/Model/RuntimePipelineStepProbesGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/RuntimePipelineStepProbesGetResponse200HydraView.php b/src/Model/RuntimePipelineStepProbesGetResponse200HydraView.php deleted file mode 100644 index 1fc7731f..00000000 --- a/src/Model/RuntimePipelineStepProbesGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/RuntimePipelineStepsGetLdjsonResponse200.php b/src/Model/RuntimePipelineStepsGetLdjsonResponse200.php new file mode 100644 index 00000000..e116a5d6 --- /dev/null +++ b/src/Model/RuntimePipelineStepsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var PipelineStepJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var RuntimePipelineStepsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var RuntimePipelineStepsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return PipelineStepJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param PipelineStepJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?RuntimePipelineStepsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?RuntimePipelineStepsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?RuntimePipelineStepsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?RuntimePipelineStepsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/RuntimePipelineStepsGetLdjsonResponse200HydraSearch.php b/src/Model/RuntimePipelineStepsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..7017f436 --- /dev/null +++ b/src/Model/RuntimePipelineStepsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var RuntimePipelineStepsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return RuntimePipelineStepsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param RuntimePipelineStepsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/RuntimePipelineStepsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimePipelineStepsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..04a84706 --- /dev/null +++ b/src/Model/RuntimePipelineStepsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/RuntimePipelineStepsGetLdjsonResponse200HydraView.php b/src/Model/RuntimePipelineStepsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..6d235bdd --- /dev/null +++ b/src/Model/RuntimePipelineStepsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/RuntimePipelineStepsGetResponse200.php b/src/Model/RuntimePipelineStepsGetResponse200.php deleted file mode 100644 index 862cc0e5..00000000 --- a/src/Model/RuntimePipelineStepsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param PipelineStepJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?RuntimePipelineStepsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?RuntimePipelineStepsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?RuntimePipelineStepsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?RuntimePipelineStepsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/RuntimePipelineStepsGetResponse200HydraSearch.php b/src/Model/RuntimePipelineStepsGetResponse200HydraSearch.php deleted file mode 100644 index 5f227b24..00000000 --- a/src/Model/RuntimePipelineStepsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return RuntimePipelineStepsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param RuntimePipelineStepsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/RuntimePipelineStepsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimePipelineStepsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 955d8601..00000000 --- a/src/Model/RuntimePipelineStepsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/RuntimePipelineStepsGetResponse200HydraView.php b/src/Model/RuntimePipelineStepsGetResponse200HydraView.php deleted file mode 100644 index fb0a1f59..00000000 --- a/src/Model/RuntimePipelineStepsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/RuntimePipelinesGetLdjsonResponse200.php b/src/Model/RuntimePipelinesGetLdjsonResponse200.php new file mode 100644 index 00000000..c9aef9ad --- /dev/null +++ b/src/Model/RuntimePipelinesGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var PipelineJsonldRead[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var RuntimePipelinesGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var RuntimePipelinesGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return PipelineJsonldRead[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param PipelineJsonldRead[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?RuntimePipelinesGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?RuntimePipelinesGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?RuntimePipelinesGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?RuntimePipelinesGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/RuntimePipelinesGetLdjsonResponse200HydraSearch.php b/src/Model/RuntimePipelinesGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..8cc82b9c --- /dev/null +++ b/src/Model/RuntimePipelinesGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var RuntimePipelinesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return RuntimePipelinesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param RuntimePipelinesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/RuntimePipelinesGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimePipelinesGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..a999d01f --- /dev/null +++ b/src/Model/RuntimePipelinesGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/RuntimePipelinesGetLdjsonResponse200HydraView.php b/src/Model/RuntimePipelinesGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..394ae79c --- /dev/null +++ b/src/Model/RuntimePipelinesGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/RuntimePipelinesGetResponse200.php b/src/Model/RuntimePipelinesGetResponse200.php deleted file mode 100644 index 403905c8..00000000 --- a/src/Model/RuntimePipelinesGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param PipelineJsonldRead[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?RuntimePipelinesGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?RuntimePipelinesGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?RuntimePipelinesGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?RuntimePipelinesGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/RuntimePipelinesGetResponse200HydraSearch.php b/src/Model/RuntimePipelinesGetResponse200HydraSearch.php deleted file mode 100644 index 6aa47947..00000000 --- a/src/Model/RuntimePipelinesGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return RuntimePipelinesGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param RuntimePipelinesGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/RuntimePipelinesGetResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimePipelinesGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index f4c0dc33..00000000 --- a/src/Model/RuntimePipelinesGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/RuntimePipelinesGetResponse200HydraView.php b/src/Model/RuntimePipelinesGetResponse200HydraView.php deleted file mode 100644 index 6da31974..00000000 --- a/src/Model/RuntimePipelinesGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/RuntimePipelinesIdCompilationsGetLdjsonResponse200.php b/src/Model/RuntimePipelinesIdCompilationsGetLdjsonResponse200.php new file mode 100644 index 00000000..7cbfb28c --- /dev/null +++ b/src/Model/RuntimePipelinesIdCompilationsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var CompilationJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return CompilationJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param CompilationJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraSearch.php b/src/Model/RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..193cd708 --- /dev/null +++ b/src/Model/RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..ec66ade1 --- /dev/null +++ b/src/Model/RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraView.php b/src/Model/RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..7327acbf --- /dev/null +++ b/src/Model/RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/RuntimePipelinesIdSchedulesGetLdjsonResponse200.php b/src/Model/RuntimePipelinesIdSchedulesGetLdjsonResponse200.php new file mode 100644 index 00000000..b8cc7667 --- /dev/null +++ b/src/Model/RuntimePipelinesIdSchedulesGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var ScheduleJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return ScheduleJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param ScheduleJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraSearch.php b/src/Model/RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..a1c4bbb0 --- /dev/null +++ b/src/Model/RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..c1694ae3 --- /dev/null +++ b/src/Model/RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraView.php b/src/Model/RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..c69b9f85 --- /dev/null +++ b/src/Model/RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/RuntimePipelinesIdStepsGetLdjsonResponse200.php b/src/Model/RuntimePipelinesIdStepsGetLdjsonResponse200.php new file mode 100644 index 00000000..2f804a50 --- /dev/null +++ b/src/Model/RuntimePipelinesIdStepsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var PipelineStepJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var RuntimePipelinesIdStepsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var RuntimePipelinesIdStepsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return PipelineStepJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param PipelineStepJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?RuntimePipelinesIdStepsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?RuntimePipelinesIdStepsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?RuntimePipelinesIdStepsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?RuntimePipelinesIdStepsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/RuntimePipelinesIdStepsGetLdjsonResponse200HydraSearch.php b/src/Model/RuntimePipelinesIdStepsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..d9300a14 --- /dev/null +++ b/src/Model/RuntimePipelinesIdStepsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var RuntimePipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return RuntimePipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param RuntimePipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/RuntimePipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimePipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..5c25512d --- /dev/null +++ b/src/Model/RuntimePipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/RuntimePipelinesIdStepsGetLdjsonResponse200HydraView.php b/src/Model/RuntimePipelinesIdStepsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..1fb2d0e6 --- /dev/null +++ b/src/Model/RuntimePipelinesIdStepsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/RuntimePipelinesStepsIdProbesGetLdjsonResponse200.php b/src/Model/RuntimePipelinesStepsIdProbesGetLdjsonResponse200.php new file mode 100644 index 00000000..01b924da --- /dev/null +++ b/src/Model/RuntimePipelinesStepsIdProbesGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var PipelineStepProbeJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return PipelineStepProbeJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param PipelineStepProbeJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraSearch.php b/src/Model/RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..c19a893a --- /dev/null +++ b/src/Model/RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..e75b85d7 --- /dev/null +++ b/src/Model/RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraView.php b/src/Model/RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..ab431819 --- /dev/null +++ b/src/Model/RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/RuntimeScheduleIdExecutionsGetResponse200.php b/src/Model/RuntimeScheduleIdExecutionsGetResponse200.php deleted file mode 100644 index cb9d34b0..00000000 --- a/src/Model/RuntimeScheduleIdExecutionsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param ExecutionJsonldRead[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?RuntimeScheduleIdExecutionsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?RuntimeScheduleIdExecutionsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?RuntimeScheduleIdExecutionsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?RuntimeScheduleIdExecutionsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/RuntimeScheduleIdExecutionsGetResponse200HydraSearch.php b/src/Model/RuntimeScheduleIdExecutionsGetResponse200HydraSearch.php deleted file mode 100644 index d4cd35fc..00000000 --- a/src/Model/RuntimeScheduleIdExecutionsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return RuntimeScheduleIdExecutionsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param RuntimeScheduleIdExecutionsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/RuntimeScheduleIdExecutionsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeScheduleIdExecutionsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 3b4a85d3..00000000 --- a/src/Model/RuntimeScheduleIdExecutionsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/RuntimeScheduleIdExecutionsGetResponse200HydraView.php b/src/Model/RuntimeScheduleIdExecutionsGetResponse200HydraView.php deleted file mode 100644 index a0fff939..00000000 --- a/src/Model/RuntimeScheduleIdExecutionsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/RuntimeScheduleIdWorkflowJobsGetResponse200.php b/src/Model/RuntimeScheduleIdWorkflowJobsGetResponse200.php deleted file mode 100644 index 0fa3592e..00000000 --- a/src/Model/RuntimeScheduleIdWorkflowJobsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param WorkflowJobJsonldRead[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?RuntimeScheduleIdWorkflowJobsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?RuntimeScheduleIdWorkflowJobsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearch.php b/src/Model/RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearch.php deleted file mode 100644 index 1aff5b3d..00000000 --- a/src/Model/RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 8859027f..00000000 --- a/src/Model/RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/RuntimeScheduleIdWorkflowJobsGetResponse200HydraView.php b/src/Model/RuntimeScheduleIdWorkflowJobsGetResponse200HydraView.php deleted file mode 100644 index 76760c21..00000000 --- a/src/Model/RuntimeScheduleIdWorkflowJobsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/RuntimeSchedulesGetLdjsonResponse200.php b/src/Model/RuntimeSchedulesGetLdjsonResponse200.php new file mode 100644 index 00000000..eb09aa8d --- /dev/null +++ b/src/Model/RuntimeSchedulesGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var ScheduleJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var RuntimeSchedulesGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var RuntimeSchedulesGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return ScheduleJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param ScheduleJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?RuntimeSchedulesGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?RuntimeSchedulesGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?RuntimeSchedulesGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?RuntimeSchedulesGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/RuntimeSchedulesGetLdjsonResponse200HydraSearch.php b/src/Model/RuntimeSchedulesGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..f7d9e0db --- /dev/null +++ b/src/Model/RuntimeSchedulesGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var RuntimeSchedulesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return RuntimeSchedulesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param RuntimeSchedulesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/RuntimeSchedulesGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeSchedulesGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..a4271ef4 --- /dev/null +++ b/src/Model/RuntimeSchedulesGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/RuntimeSchedulesGetLdjsonResponse200HydraView.php b/src/Model/RuntimeSchedulesGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..efda0267 --- /dev/null +++ b/src/Model/RuntimeSchedulesGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/RuntimeSchedulesGetResponse200.php b/src/Model/RuntimeSchedulesGetResponse200.php deleted file mode 100644 index 218fec43..00000000 --- a/src/Model/RuntimeSchedulesGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param ScheduleJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?RuntimeSchedulesGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?RuntimeSchedulesGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?RuntimeSchedulesGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?RuntimeSchedulesGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/RuntimeSchedulesGetResponse200HydraSearch.php b/src/Model/RuntimeSchedulesGetResponse200HydraSearch.php deleted file mode 100644 index 9f98e6c2..00000000 --- a/src/Model/RuntimeSchedulesGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return RuntimeSchedulesGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param RuntimeSchedulesGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/RuntimeSchedulesGetResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeSchedulesGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index cf2a5cba..00000000 --- a/src/Model/RuntimeSchedulesGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/RuntimeSchedulesGetResponse200HydraView.php b/src/Model/RuntimeSchedulesGetResponse200HydraView.php deleted file mode 100644 index 8b3f503b..00000000 --- a/src/Model/RuntimeSchedulesGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/RuntimeSchedulesIdExecutionsGetLdjsonResponse200.php b/src/Model/RuntimeSchedulesIdExecutionsGetLdjsonResponse200.php new file mode 100644 index 00000000..cd11826f --- /dev/null +++ b/src/Model/RuntimeSchedulesIdExecutionsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var ExecutionJsonldRead[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return ExecutionJsonldRead[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param ExecutionJsonldRead[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraSearch.php b/src/Model/RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..e2b939fa --- /dev/null +++ b/src/Model/RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..e210d61e --- /dev/null +++ b/src/Model/RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraView.php b/src/Model/RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..32e95ff0 --- /dev/null +++ b/src/Model/RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/RuntimeWorkflowIdJobsGetResponse200.php b/src/Model/RuntimeWorkflowIdJobsGetResponse200.php deleted file mode 100644 index 84407aee..00000000 --- a/src/Model/RuntimeWorkflowIdJobsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param WorkflowJobJsonldRead[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?RuntimeWorkflowIdJobsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?RuntimeWorkflowIdJobsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?RuntimeWorkflowIdJobsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?RuntimeWorkflowIdJobsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/RuntimeWorkflowIdJobsGetResponse200HydraSearch.php b/src/Model/RuntimeWorkflowIdJobsGetResponse200HydraSearch.php deleted file mode 100644 index bdddc27b..00000000 --- a/src/Model/RuntimeWorkflowIdJobsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return RuntimeWorkflowIdJobsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param RuntimeWorkflowIdJobsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/RuntimeWorkflowIdJobsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeWorkflowIdJobsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index 792b0be7..00000000 --- a/src/Model/RuntimeWorkflowIdJobsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/RuntimeWorkflowIdJobsGetResponse200HydraView.php b/src/Model/RuntimeWorkflowIdJobsGetResponse200HydraView.php deleted file mode 100644 index 6de82685..00000000 --- a/src/Model/RuntimeWorkflowIdJobsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/RuntimeWorkflowPipelinesGetResponse200.php b/src/Model/RuntimeWorkflowPipelinesGetResponse200.php deleted file mode 100644 index ec203a0c..00000000 --- a/src/Model/RuntimeWorkflowPipelinesGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param WorkflowJobPipelineJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?RuntimeWorkflowPipelinesGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?RuntimeWorkflowPipelinesGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?RuntimeWorkflowPipelinesGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?RuntimeWorkflowPipelinesGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/RuntimeWorkflowPipelinesGetResponse200HydraSearch.php b/src/Model/RuntimeWorkflowPipelinesGetResponse200HydraSearch.php deleted file mode 100644 index ee5f140a..00000000 --- a/src/Model/RuntimeWorkflowPipelinesGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return RuntimeWorkflowPipelinesGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param RuntimeWorkflowPipelinesGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/RuntimeWorkflowPipelinesGetResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeWorkflowPipelinesGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index db0ace16..00000000 --- a/src/Model/RuntimeWorkflowPipelinesGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/RuntimeWorkflowPipelinesGetResponse200HydraView.php b/src/Model/RuntimeWorkflowPipelinesGetResponse200HydraView.php deleted file mode 100644 index 0a3a5090..00000000 --- a/src/Model/RuntimeWorkflowPipelinesGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200.php b/src/Model/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200.php deleted file mode 100644 index 934c7bd0..00000000 --- a/src/Model/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param PipelineStepJsonld[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearch.php b/src/Model/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearch.php deleted file mode 100644 index 75e08471..00000000 --- a/src/Model/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index ec6bfcd3..00000000 --- a/src/Model/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraView.php b/src/Model/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraView.php deleted file mode 100644 index bbb7d095..00000000 --- a/src/Model/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/RuntimeWorkflowsGetLdjsonResponse200.php b/src/Model/RuntimeWorkflowsGetLdjsonResponse200.php new file mode 100644 index 00000000..d96d83d9 --- /dev/null +++ b/src/Model/RuntimeWorkflowsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var WorkflowJsonldRead[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var RuntimeWorkflowsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var RuntimeWorkflowsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return WorkflowJsonldRead[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param WorkflowJsonldRead[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?RuntimeWorkflowsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?RuntimeWorkflowsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?RuntimeWorkflowsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?RuntimeWorkflowsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/RuntimeWorkflowsGetLdjsonResponse200HydraSearch.php b/src/Model/RuntimeWorkflowsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..92131b3b --- /dev/null +++ b/src/Model/RuntimeWorkflowsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var RuntimeWorkflowsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return RuntimeWorkflowsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param RuntimeWorkflowsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/RuntimeWorkflowsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeWorkflowsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..ae50de23 --- /dev/null +++ b/src/Model/RuntimeWorkflowsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/RuntimeWorkflowsGetLdjsonResponse200HydraView.php b/src/Model/RuntimeWorkflowsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..55e00ffa --- /dev/null +++ b/src/Model/RuntimeWorkflowsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/RuntimeWorkflowsGetResponse200.php b/src/Model/RuntimeWorkflowsGetResponse200.php deleted file mode 100644 index f51ab668..00000000 --- a/src/Model/RuntimeWorkflowsGetResponse200.php +++ /dev/null @@ -1,85 +0,0 @@ -hydraMember; - } - - /** - * @param WorkflowJsonldRead[]|null $hydraMember - */ - public function setHydraMember(?array $hydraMember): self - { - $this->hydraMember = $hydraMember; - - return $this; - } - - public function getHydraTotalItems(): ?int - { - return $this->hydraTotalItems; - } - - public function setHydraTotalItems(?int $hydraTotalItems): self - { - $this->hydraTotalItems = $hydraTotalItems; - - return $this; - } - - public function getHydraView(): ?RuntimeWorkflowsGetResponse200HydraView - { - return $this->hydraView; - } - - public function setHydraView(?RuntimeWorkflowsGetResponse200HydraView $hydraView): self - { - $this->hydraView = $hydraView; - - return $this; - } - - public function getHydraSearch(): ?RuntimeWorkflowsGetResponse200HydraSearch - { - return $this->hydraSearch; - } - - public function setHydraSearch(?RuntimeWorkflowsGetResponse200HydraSearch $hydraSearch): self - { - $this->hydraSearch = $hydraSearch; - - return $this; - } -} diff --git a/src/Model/RuntimeWorkflowsGetResponse200HydraSearch.php b/src/Model/RuntimeWorkflowsGetResponse200HydraSearch.php deleted file mode 100644 index f74bd8c7..00000000 --- a/src/Model/RuntimeWorkflowsGetResponse200HydraSearch.php +++ /dev/null @@ -1,85 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraTemplate(): ?string - { - return $this->hydraTemplate; - } - - public function setHydraTemplate(?string $hydraTemplate): self - { - $this->hydraTemplate = $hydraTemplate; - - return $this; - } - - public function getHydraVariableRepresentation(): ?string - { - return $this->hydraVariableRepresentation; - } - - public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self - { - $this->hydraVariableRepresentation = $hydraVariableRepresentation; - - return $this; - } - - /** - * @return RuntimeWorkflowsGetResponse200HydraSearchHydraMappingItem[]|null - */ - public function getHydraMapping(): ?array - { - return $this->hydraMapping; - } - - /** - * @param RuntimeWorkflowsGetResponse200HydraSearchHydraMappingItem[]|null $hydraMapping - */ - public function setHydraMapping(?array $hydraMapping): self - { - $this->hydraMapping = $hydraMapping; - - return $this; - } -} diff --git a/src/Model/RuntimeWorkflowsGetResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeWorkflowsGetResponse200HydraSearchHydraMappingItem.php deleted file mode 100644 index e8fb3c08..00000000 --- a/src/Model/RuntimeWorkflowsGetResponse200HydraSearchHydraMappingItem.php +++ /dev/null @@ -1,79 +0,0 @@ -type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getVariable(): ?string - { - return $this->variable; - } - - public function setVariable(?string $variable): self - { - $this->variable = $variable; - - return $this; - } - - public function getProperty(): ?string - { - return $this->property; - } - - public function setProperty(?string $property): self - { - $this->property = $property; - - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): self - { - $this->required = $required; - - return $this; - } -} diff --git a/src/Model/RuntimeWorkflowsGetResponse200HydraView.php b/src/Model/RuntimeWorkflowsGetResponse200HydraView.php deleted file mode 100644 index 321f8565..00000000 --- a/src/Model/RuntimeWorkflowsGetResponse200HydraView.php +++ /dev/null @@ -1,111 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getHydraFirst(): ?string - { - return $this->hydraFirst; - } - - public function setHydraFirst(?string $hydraFirst): self - { - $this->hydraFirst = $hydraFirst; - - return $this; - } - - public function getHydraLast(): ?string - { - return $this->hydraLast; - } - - public function setHydraLast(?string $hydraLast): self - { - $this->hydraLast = $hydraLast; - - return $this; - } - - public function getHydraPrevious(): ?string - { - return $this->hydraPrevious; - } - - public function setHydraPrevious(?string $hydraPrevious): self - { - $this->hydraPrevious = $hydraPrevious; - - return $this; - } - - public function getHydraNext(): ?string - { - return $this->hydraNext; - } - - public function setHydraNext(?string $hydraNext): self - { - $this->hydraNext = $hydraNext; - - return $this; - } -} diff --git a/src/Model/RuntimeWorkflowsIdCompilationsGetLdjsonResponse200.php b/src/Model/RuntimeWorkflowsIdCompilationsGetLdjsonResponse200.php new file mode 100644 index 00000000..42397fe4 --- /dev/null +++ b/src/Model/RuntimeWorkflowsIdCompilationsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var CompilationJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return CompilationJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param CompilationJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraSearch.php b/src/Model/RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..ef8bc4b0 --- /dev/null +++ b/src/Model/RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..c555b690 --- /dev/null +++ b/src/Model/RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraView.php b/src/Model/RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..9326b847 --- /dev/null +++ b/src/Model/RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/RuntimeWorkflowsIdJobsGetLdjsonResponse200.php b/src/Model/RuntimeWorkflowsIdJobsGetLdjsonResponse200.php new file mode 100644 index 00000000..c2f4b772 --- /dev/null +++ b/src/Model/RuntimeWorkflowsIdJobsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var WorkflowJobJsonldRead[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return WorkflowJobJsonldRead[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param WorkflowJobJsonldRead[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraSearch.php b/src/Model/RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..e8742199 --- /dev/null +++ b/src/Model/RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..39411948 --- /dev/null +++ b/src/Model/RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraView.php b/src/Model/RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..03eda450 --- /dev/null +++ b/src/Model/RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/RuntimeWorkflowsIdSchedulesGetLdjsonResponse200.php b/src/Model/RuntimeWorkflowsIdSchedulesGetLdjsonResponse200.php new file mode 100644 index 00000000..a8f6c32a --- /dev/null +++ b/src/Model/RuntimeWorkflowsIdSchedulesGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var ScheduleJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return ScheduleJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param ScheduleJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraSearch.php b/src/Model/RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..471ed91b --- /dev/null +++ b/src/Model/RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..a4a3fe9f --- /dev/null +++ b/src/Model/RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraView.php b/src/Model/RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..419c6c03 --- /dev/null +++ b/src/Model/RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/RuntimeWorkflowsPipelinesGetLdjsonResponse200.php b/src/Model/RuntimeWorkflowsPipelinesGetLdjsonResponse200.php new file mode 100644 index 00000000..84c6e739 --- /dev/null +++ b/src/Model/RuntimeWorkflowsPipelinesGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var WorkflowJobPipelineJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return WorkflowJobPipelineJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param WorkflowJobPipelineJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraSearch.php b/src/Model/RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..d60ddeb0 --- /dev/null +++ b/src/Model/RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..0dcf23d9 --- /dev/null +++ b/src/Model/RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraView.php b/src/Model/RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..07d11124 --- /dev/null +++ b/src/Model/RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200.php b/src/Model/RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200.php new file mode 100644 index 00000000..510e9cb7 --- /dev/null +++ b/src/Model/RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var PipelineStepJsonld[]|null + */ + protected $hydraMember; + /** + * @var int|null + */ + protected $hydraTotalItems; + /** + * @var RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraView|null + */ + protected $hydraView; + /** + * @var RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraSearch|null + */ + protected $hydraSearch; + + /** + * @return PipelineStepJsonld[]|null + */ + public function getHydraMember(): ?array + { + return $this->hydraMember; + } + + /** + * @param PipelineStepJsonld[]|null $hydraMember + */ + public function setHydraMember(?array $hydraMember): self + { + $this->initialized['hydraMember'] = true; + $this->hydraMember = $hydraMember; + + return $this; + } + + public function getHydraTotalItems(): ?int + { + return $this->hydraTotalItems; + } + + public function setHydraTotalItems(?int $hydraTotalItems): self + { + $this->initialized['hydraTotalItems'] = true; + $this->hydraTotalItems = $hydraTotalItems; + + return $this; + } + + public function getHydraView(): ?RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraView + { + return $this->hydraView; + } + + public function setHydraView(?RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraView $hydraView): self + { + $this->initialized['hydraView'] = true; + $this->hydraView = $hydraView; + + return $this; + } + + public function getHydraSearch(): ?RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraSearch + { + return $this->hydraSearch; + } + + public function setHydraSearch(?RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraSearch $hydraSearch): self + { + $this->initialized['hydraSearch'] = true; + $this->hydraSearch = $hydraSearch; + + return $this; + } +} diff --git a/src/Model/RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraSearch.php b/src/Model/RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraSearch.php new file mode 100644 index 00000000..cb42bd51 --- /dev/null +++ b/src/Model/RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraSearch.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraTemplate; + /** + * @var string|null + */ + protected $hydraVariableRepresentation; + /** + * @var RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + protected $hydraMapping; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraTemplate(): ?string + { + return $this->hydraTemplate; + } + + public function setHydraTemplate(?string $hydraTemplate): self + { + $this->initialized['hydraTemplate'] = true; + $this->hydraTemplate = $hydraTemplate; + + return $this; + } + + public function getHydraVariableRepresentation(): ?string + { + return $this->hydraVariableRepresentation; + } + + public function setHydraVariableRepresentation(?string $hydraVariableRepresentation): self + { + $this->initialized['hydraVariableRepresentation'] = true; + $this->hydraVariableRepresentation = $hydraVariableRepresentation; + + return $this; + } + + /** + * @return RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null + */ + public function getHydraMapping(): ?array + { + return $this->hydraMapping; + } + + /** + * @param RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem[]|null $hydraMapping + */ + public function setHydraMapping(?array $hydraMapping): self + { + $this->initialized['hydraMapping'] = true; + $this->hydraMapping = $hydraMapping; + + return $this; + } +} diff --git a/src/Model/RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem.php b/src/Model/RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem.php new file mode 100644 index 00000000..b9679842 --- /dev/null +++ b/src/Model/RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $variable; + /** + * @var string|null + */ + protected $property; + /** + * @var bool|null + */ + protected $required; + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getVariable(): ?string + { + return $this->variable; + } + + public function setVariable(?string $variable): self + { + $this->initialized['variable'] = true; + $this->variable = $variable; + + return $this; + } + + public function getProperty(): ?string + { + return $this->property; + } + + public function setProperty(?string $property): self + { + $this->initialized['property'] = true; + $this->property = $property; + + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): self + { + $this->initialized['required'] = true; + $this->required = $required; + + return $this; + } +} diff --git a/src/Model/RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraView.php b/src/Model/RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraView.php new file mode 100644 index 00000000..084a3405 --- /dev/null +++ b/src/Model/RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraView.php @@ -0,0 +1,126 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $hydraFirst; + /** + * @var string|null + */ + protected $hydraLast; + /** + * @var string|null + */ + protected $hydraPrevious; + /** + * @var string|null + */ + protected $hydraNext; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getHydraFirst(): ?string + { + return $this->hydraFirst; + } + + public function setHydraFirst(?string $hydraFirst): self + { + $this->initialized['hydraFirst'] = true; + $this->hydraFirst = $hydraFirst; + + return $this; + } + + public function getHydraLast(): ?string + { + return $this->hydraLast; + } + + public function setHydraLast(?string $hydraLast): self + { + $this->initialized['hydraLast'] = true; + $this->hydraLast = $hydraLast; + + return $this; + } + + public function getHydraPrevious(): ?string + { + return $this->hydraPrevious; + } + + public function setHydraPrevious(?string $hydraPrevious): self + { + $this->initialized['hydraPrevious'] = true; + $this->hydraPrevious = $hydraPrevious; + + return $this; + } + + public function getHydraNext(): ?string + { + return $this->hydraNext; + } + + public function setHydraNext(?string $hydraNext): self + { + $this->initialized['hydraNext'] = true; + $this->hydraNext = $hydraNext; + + return $this; + } +} diff --git a/src/Model/Schedule.php b/src/Model/Schedule.php deleted file mode 100644 index 6587e24a..00000000 --- a/src/Model/Schedule.php +++ /dev/null @@ -1,213 +0,0 @@ -id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getStartAt(): ?\DateTime - { - return $this->startAt; - } - - public function setStartAt(?\DateTime $startAt): self - { - $this->startAt = $startAt; - - return $this; - } - - public function getInterval(): ?string - { - return $this->interval; - } - - public function setInterval(?string $interval): self - { - $this->interval = $interval; - - return $this; - } - - public function getEndAt(): ?\DateTime - { - return $this->endAt; - } - - public function setEndAt(?\DateTime $endAt): self - { - $this->endAt = $endAt; - - return $this; - } - - public function getRecurrences(): ?int - { - return $this->recurrences; - } - - public function setRecurrences(?int $recurrences): self - { - $this->recurrences = $recurrences; - - return $this; - } - - /** - * @return string[]|null - */ - public function getExecutions(): ?array - { - return $this->executions; - } - - /** - * @param string[]|null $executions - */ - public function setExecutions(?array $executions): self - { - $this->executions = $executions; - - return $this; - } - - public function getPipeline(): ?string - { - return $this->pipeline; - } - - public function setPipeline(?string $pipeline): self - { - $this->pipeline = $pipeline; - - return $this; - } - - public function getWorkflow(): ?string - { - return $this->workflow; - } - - public function setWorkflow(?string $workflow): self - { - $this->workflow = $workflow; - - return $this; - } - - public function getOwner(): ?string - { - return $this->owner; - } - - public function setOwner(?string $owner): self - { - $this->owner = $owner; - - return $this; - } - - public function getWorkspace(): ?string - { - return $this->workspace; - } - - public function setWorkspace(?string $workspace): self - { - $this->workspace = $workspace; - - return $this; - } - - public function getOrganization(): ?string - { - return $this->organization; - } - - public function setOrganization(?string $organization): self - { - $this->organization = $organization; - - return $this; - } -} diff --git a/src/Model/ScheduleDeclarePipelineScheduleCommandInput.php b/src/Model/ScheduleDeclarePipelineScheduleCommandInput.php deleted file mode 100644 index 58b29001..00000000 --- a/src/Model/ScheduleDeclarePipelineScheduleCommandInput.php +++ /dev/null @@ -1,127 +0,0 @@ -pipeline; - } - - public function setPipeline(?string $pipeline): self - { - $this->pipeline = $pipeline; - - return $this; - } - - public function getType(): ?int - { - return $this->type; - } - - public function setType(?int $type): self - { - $this->type = $type; - - return $this; - } - - public function getDate(): ?\DateTime - { - return $this->date; - } - - public function setDate(?\DateTime $date): self - { - $this->date = $date; - - return $this; - } - - public function getStart(): ?\DateTime - { - return $this->start; - } - - public function setStart(?\DateTime $start): self - { - $this->start = $start; - - return $this; - } - - public function getInterval(): ?string - { - return $this->interval; - } - - public function setInterval(?string $interval): self - { - $this->interval = $interval; - - return $this; - } - - public function getRecurrences(): ?int - { - return $this->recurrences; - } - - public function setRecurrences(?int $recurrences): self - { - $this->recurrences = $recurrences; - - return $this; - } - - public function getEnd(): ?\DateTime - { - return $this->end; - } - - public function setEnd(?\DateTime $end): self - { - $this->end = $end; - - return $this; - } -} diff --git a/src/Model/ScheduleDeclarePipelineScheduleCommandInputJsonld.php b/src/Model/ScheduleDeclarePipelineScheduleCommandInputJsonld.php deleted file mode 100644 index 903b3fb5..00000000 --- a/src/Model/ScheduleDeclarePipelineScheduleCommandInputJsonld.php +++ /dev/null @@ -1,178 +0,0 @@ -context; - } - - public function setContext(mixed $context): self - { - $this->context = $context; - - return $this; - } - - public function getId(): ?string - { - return $this->id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getPipeline(): ?string - { - return $this->pipeline; - } - - public function setPipeline(?string $pipeline): self - { - $this->pipeline = $pipeline; - - return $this; - } - - public function getType2(): ?int - { - return $this->type2; - } - - public function setType2(?int $type2): self - { - $this->type2 = $type2; - - return $this; - } - - public function getDate(): ?\DateTime - { - return $this->date; - } - - public function setDate(?\DateTime $date): self - { - $this->date = $date; - - return $this; - } - - public function getStart(): ?\DateTime - { - return $this->start; - } - - public function setStart(?\DateTime $start): self - { - $this->start = $start; - - return $this; - } - - public function getInterval(): ?string - { - return $this->interval; - } - - public function setInterval(?string $interval): self - { - $this->interval = $interval; - - return $this; - } - - public function getRecurrences(): ?int - { - return $this->recurrences; - } - - public function setRecurrences(?int $recurrences): self - { - $this->recurrences = $recurrences; - - return $this; - } - - public function getEnd(): ?\DateTime - { - return $this->end; - } - - public function setEnd(?\DateTime $end): self - { - $this->end = $end; - - return $this; - } -} diff --git a/src/Model/ScheduleJsonld.php b/src/Model/ScheduleJsonld.php index 66d55153..48f1b4ec 100644 --- a/src/Model/ScheduleJsonld.php +++ b/src/Model/ScheduleJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class ScheduleJsonld +class ScheduleJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -24,54 +33,6 @@ class ScheduleJsonld * @var mixed|null */ protected $context; - /** - * @var string|null - */ - protected $id2; - /** - * @var string|null - */ - protected $type2 = 'once'; - /** - * @var \DateTime|null - */ - protected $startAt; - /** - * @var string|null - */ - protected $interval; - /** - * @var \DateTime|null - */ - protected $endAt; - /** - * @var int|null - */ - protected $recurrences; - /** - * @var string[]|null - */ - protected $executions; - /** - * @var string|null - */ - protected $pipeline; - /** - * @var string|null - */ - protected $workflow; - /** - * @var string|null - */ - protected $owner; - /** - * @var string|null - */ - protected $workspace; - /** - * @var string|null - */ - protected $organization; public function getId(): ?string { @@ -80,6 +41,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -92,6 +54,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -105,159 +68,13 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self - { - $this->context = $context; - - return $this; - } - - public function getId2(): ?string - { - return $this->id2; - } - - public function setId2(?string $id2): self - { - $this->id2 = $id2; - - return $this; - } - - public function getType2(): ?string - { - return $this->type2; - } - - public function setType2(?string $type2): self - { - $this->type2 = $type2; - - return $this; - } - - public function getStartAt(): ?\DateTime - { - return $this->startAt; - } - - public function setStartAt(?\DateTime $startAt): self - { - $this->startAt = $startAt; - - return $this; - } - - public function getInterval(): ?string - { - return $this->interval; - } - - public function setInterval(?string $interval): self - { - $this->interval = $interval; - - return $this; - } - - public function getEndAt(): ?\DateTime - { - return $this->endAt; - } - - public function setEndAt(?\DateTime $endAt): self - { - $this->endAt = $endAt; - - return $this; - } - - public function getRecurrences(): ?int - { - return $this->recurrences; - } - - public function setRecurrences(?int $recurrences): self - { - $this->recurrences = $recurrences; - - return $this; - } - /** - * @return string[]|null + * @param mixed $context */ - public function getExecutions(): ?array - { - return $this->executions; - } - - /** - * @param string[]|null $executions - */ - public function setExecutions(?array $executions): self - { - $this->executions = $executions; - - return $this; - } - - public function getPipeline(): ?string - { - return $this->pipeline; - } - - public function setPipeline(?string $pipeline): self - { - $this->pipeline = $pipeline; - - return $this; - } - - public function getWorkflow(): ?string - { - return $this->workflow; - } - - public function setWorkflow(?string $workflow): self - { - $this->workflow = $workflow; - - return $this; - } - - public function getOwner(): ?string - { - return $this->owner; - } - - public function setOwner(?string $owner): self + public function setContext($context): self { - $this->owner = $owner; - - return $this; - } - - public function getWorkspace(): ?string - { - return $this->workspace; - } - - public function setWorkspace(?string $workspace): self - { - $this->workspace = $workspace; - - return $this; - } - - public function getOrganization(): ?string - { - return $this->organization; - } - - public function setOrganization(?string $organization): self - { - $this->organization = $organization; + $this->initialized['context'] = true; + $this->context = $context; return $this; } diff --git a/src/Model/ScheduleScheduleCommandInterfaceJsonld.php b/src/Model/ScheduleScheduleCommandInterfaceJsonld.php deleted file mode 100644 index fe734931..00000000 --- a/src/Model/ScheduleScheduleCommandInterfaceJsonld.php +++ /dev/null @@ -1,66 +0,0 @@ -context; - } - - public function setContext(mixed $context): self - { - $this->context = $context; - - return $this; - } - - public function getId(): ?string - { - return $this->id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } -} diff --git a/src/Model/Secret.php b/src/Model/Secret.php index a6e4d335..8a41ba4e 100644 --- a/src/Model/Secret.php +++ b/src/Model/Secret.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class Secret +class Secret extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -40,10 +49,6 @@ class Secret * @var string[]|null */ protected $contents; - /** - * @var mixed|null - */ - protected $iterator; public function getId(): ?string { @@ -52,6 +57,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -64,6 +70,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -76,6 +83,7 @@ public function getSlug(): ?string public function setSlug(?string $slug): self { + $this->initialized['slug'] = true; $this->slug = $slug; return $this; @@ -88,6 +96,7 @@ public function getDescription(): ?string public function setDescription(?string $description): self { + $this->initialized['description'] = true; $this->description = $description; return $this; @@ -100,6 +109,7 @@ public function getOrganization(): ?string public function setOrganization(?string $organization): self { + $this->initialized['organization'] = true; $this->organization = $organization; return $this; @@ -112,6 +122,7 @@ public function getWorkspace(): ?string public function setWorkspace(?string $workspace): self { + $this->initialized['workspace'] = true; $this->workspace = $workspace; return $this; @@ -130,23 +141,9 @@ public function getContents(): ?iterable */ public function setContents(?iterable $contents): self { + $this->initialized['contents'] = true; $this->contents = $contents; return $this; } - - /** - * @return mixed - */ - public function getIterator() - { - return $this->iterator; - } - - public function setIterator(mixed $iterator): self - { - $this->iterator = $iterator; - - return $this; - } } diff --git a/src/Model/SecretChangeSecretValueInput.php b/src/Model/SecretChangeSecretValueInput.php index b9d664a8..cf958410 100644 --- a/src/Model/SecretChangeSecretValueInput.php +++ b/src/Model/SecretChangeSecretValueInput.php @@ -10,46 +10,24 @@ namespace Gyroscops\Api\Model; -class SecretChangeSecretValueInput +class SecretChangeSecretValueInput extends \ArrayObject { /** - * @var mixed|null + * @var array */ - protected $id; - /** - * @var string[]|null - */ - protected $contents; - /** - * @var mixed|null - */ - protected $organization; - /** - * @var mixed|null - */ - protected $workspace; - /** - * @var mixed|null - */ - protected $iterator; + protected $initialized = []; - /** - * @return mixed - */ - public function getId() + public function isInitialized($property): bool { - return $this->id; - } - - public function setId(mixed $id): self - { - $this->id = $id; - - return $this; + return array_key_exists($property, $this->initialized); } + /** + * @var mixed[][]|null + */ + protected $contents; /** - * @return string[]|null + * @return mixed[][]|null */ public function getContents(): ?iterable { @@ -57,57 +35,13 @@ public function getContents(): ?iterable } /** - * @param string[]|null $contents + * @param mixed[][]|null $contents */ public function setContents(?iterable $contents): self { + $this->initialized['contents'] = true; $this->contents = $contents; return $this; } - - /** - * @return mixed - */ - public function getOrganization() - { - return $this->organization; - } - - public function setOrganization(mixed $organization): self - { - $this->organization = $organization; - - return $this; - } - - /** - * @return mixed - */ - public function getWorkspace() - { - return $this->workspace; - } - - public function setWorkspace(mixed $workspace): self - { - $this->workspace = $workspace; - - return $this; - } - - /** - * @return mixed - */ - public function getIterator() - { - return $this->iterator; - } - - public function setIterator(mixed $iterator): self - { - $this->iterator = $iterator; - - return $this; - } } diff --git a/src/Model/SecretChangeSecretValueInputJsonld.php b/src/Model/SecretChangeSecretValueInputJsonld.php index 91fbf228..49201b51 100644 --- a/src/Model/SecretChangeSecretValueInputJsonld.php +++ b/src/Model/SecretChangeSecretValueInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class SecretChangeSecretValueInputJsonld +class SecretChangeSecretValueInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -25,25 +34,9 @@ class SecretChangeSecretValueInputJsonld */ protected $type; /** - * @var mixed|null - */ - protected $id2; - /** - * @var string[]|null + * @var OpaqueInterfaceJsonld[]|null */ protected $contents; - /** - * @var mixed|null - */ - protected $organization; - /** - * @var mixed|null - */ - protected $workspace; - /** - * @var TraversableJsonld|null - */ - protected $iterator; /** * @return mixed @@ -53,8 +46,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -67,6 +64,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -79,28 +77,14 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; } /** - * @return mixed - */ - public function getId2() - { - return $this->id2; - } - - public function setId2(mixed $id2): self - { - $this->id2 = $id2; - - return $this; - } - - /** - * @return string[]|null + * @return OpaqueInterfaceJsonld[]|null */ public function getContents(): ?iterable { @@ -108,54 +92,13 @@ public function getContents(): ?iterable } /** - * @param string[]|null $contents + * @param OpaqueInterfaceJsonld[]|null $contents */ public function setContents(?iterable $contents): self { + $this->initialized['contents'] = true; $this->contents = $contents; return $this; } - - /** - * @return mixed - */ - public function getOrganization() - { - return $this->organization; - } - - public function setOrganization(mixed $organization): self - { - $this->organization = $organization; - - return $this; - } - - /** - * @return mixed - */ - public function getWorkspace() - { - return $this->workspace; - } - - public function setWorkspace(mixed $workspace): self - { - $this->workspace = $workspace; - - return $this; - } - - public function getIterator(): ?TraversableJsonld - { - return $this->iterator; - } - - public function setIterator(?TraversableJsonld $iterator): self - { - $this->iterator = $iterator; - - return $this; - } } diff --git a/src/Model/SecretCreateSecretInput.php b/src/Model/SecretCreateSecretInput.php index a0a1a939..27b4bc41 100644 --- a/src/Model/SecretCreateSecretInput.php +++ b/src/Model/SecretCreateSecretInput.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class SecretCreateSecretInput +class SecretCreateSecretInput extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -24,18 +33,6 @@ class SecretCreateSecretInput * @var string[]|null */ protected $contents; - /** - * @var mixed|null - */ - protected $organization; - /** - * @var mixed|null - */ - protected $workspace; - /** - * @var mixed|null - */ - protected $iterator; public function getName(): ?string { @@ -44,6 +41,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -56,6 +54,7 @@ public function getDescription(): ?string public function setDescription(?string $description): self { + $this->initialized['description'] = true; $this->description = $description; return $this; @@ -74,53 +73,9 @@ public function getContents(): ?iterable */ public function setContents(?iterable $contents): self { + $this->initialized['contents'] = true; $this->contents = $contents; return $this; } - - /** - * @return mixed - */ - public function getOrganization() - { - return $this->organization; - } - - public function setOrganization(mixed $organization): self - { - $this->organization = $organization; - - return $this; - } - - /** - * @return mixed - */ - public function getWorkspace() - { - return $this->workspace; - } - - public function setWorkspace(mixed $workspace): self - { - $this->workspace = $workspace; - - return $this; - } - - /** - * @return mixed - */ - public function getIterator() - { - return $this->iterator; - } - - public function setIterator(mixed $iterator): self - { - $this->iterator = $iterator; - - return $this; - } } diff --git a/src/Model/SecretCreateSecretInputJsonld.php b/src/Model/SecretCreateSecretInputJsonld.php index e80a6977..73384d75 100644 --- a/src/Model/SecretCreateSecretInputJsonld.php +++ b/src/Model/SecretCreateSecretInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class SecretCreateSecretInputJsonld +class SecretCreateSecretInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -36,18 +45,6 @@ class SecretCreateSecretInputJsonld * @var string[]|null */ protected $contents; - /** - * @var mixed|null - */ - protected $organization; - /** - * @var mixed|null - */ - protected $workspace; - /** - * @var TraversableJsonld|null - */ - protected $iterator; /** * @return mixed @@ -57,8 +54,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -83,6 +85,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -95,6 +98,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -107,6 +111,7 @@ public function getDescription(): ?string public function setDescription(?string $description): self { + $this->initialized['description'] = true; $this->description = $description; return $this; @@ -125,50 +130,9 @@ public function getContents(): ?iterable */ public function setContents(?iterable $contents): self { + $this->initialized['contents'] = true; $this->contents = $contents; return $this; } - - /** - * @return mixed - */ - public function getOrganization() - { - return $this->organization; - } - - public function setOrganization(mixed $organization): self - { - $this->organization = $organization; - - return $this; - } - - /** - * @return mixed - */ - public function getWorkspace() - { - return $this->workspace; - } - - public function setWorkspace(mixed $workspace): self - { - $this->workspace = $workspace; - - return $this; - } - - public function getIterator(): ?TraversableJsonld - { - return $this->iterator; - } - - public function setIterator(?TraversableJsonld $iterator): self - { - $this->iterator = $iterator; - - return $this; - } } diff --git a/src/Model/SecretEdit.php b/src/Model/SecretEdit.php index 02709cb3..1c7f98b6 100644 --- a/src/Model/SecretEdit.php +++ b/src/Model/SecretEdit.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class SecretEdit +class SecretEdit extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -28,6 +37,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -40,6 +50,7 @@ public function getDescription(): ?string public function setDescription(?string $description): self { + $this->initialized['description'] = true; $this->description = $description; return $this; diff --git a/src/Model/SecretIdJsonld.php b/src/Model/SecretIdJsonld.php deleted file mode 100644 index 5e431939..00000000 --- a/src/Model/SecretIdJsonld.php +++ /dev/null @@ -1,66 +0,0 @@ -context; - } - - public function setContext(mixed $context): self - { - $this->context = $context; - - return $this; - } - - public function getId(): ?string - { - return $this->id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } -} diff --git a/src/Model/SecretJsonld.php b/src/Model/SecretJsonld.php index a54f5289..2b6b08c8 100644 --- a/src/Model/SecretJsonld.php +++ b/src/Model/SecretJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class SecretJsonld +class SecretJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -52,10 +61,6 @@ class SecretJsonld * @var string[]|null */ protected $contents; - /** - * @var TraversableJsonld|null - */ - protected $iterator; /** * @return mixed @@ -65,8 +70,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -79,6 +88,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -91,6 +101,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -103,6 +114,7 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; @@ -115,6 +127,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -127,6 +140,7 @@ public function getSlug(): ?string public function setSlug(?string $slug): self { + $this->initialized['slug'] = true; $this->slug = $slug; return $this; @@ -139,6 +153,7 @@ public function getDescription(): ?string public function setDescription(?string $description): self { + $this->initialized['description'] = true; $this->description = $description; return $this; @@ -151,6 +166,7 @@ public function getOrganization(): ?string public function setOrganization(?string $organization): self { + $this->initialized['organization'] = true; $this->organization = $organization; return $this; @@ -163,6 +179,7 @@ public function getWorkspace(): ?string public function setWorkspace(?string $workspace): self { + $this->initialized['workspace'] = true; $this->workspace = $workspace; return $this; @@ -181,20 +198,9 @@ public function getContents(): ?iterable */ public function setContents(?iterable $contents): self { + $this->initialized['contents'] = true; $this->contents = $contents; return $this; } - - public function getIterator(): ?TraversableJsonld - { - return $this->iterator; - } - - public function setIterator(?TraversableJsonld $iterator): self - { - $this->iterator = $iterator; - - return $this; - } } diff --git a/src/Model/SecretJsonldEdit.php b/src/Model/SecretJsonldEdit.php index 10a595e8..d42bb0ed 100644 --- a/src/Model/SecretJsonldEdit.php +++ b/src/Model/SecretJsonldEdit.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class SecretJsonldEdit +class SecretJsonldEdit extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -41,8 +50,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -55,6 +68,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -67,6 +81,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -79,6 +94,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -91,6 +107,7 @@ public function getDescription(): ?string public function setDescription(?string $description): self { + $this->initialized['description'] = true; $this->description = $description; return $this; diff --git a/src/Model/SecretJsonldRead.php b/src/Model/SecretJsonldRead.php index 0283d3ed..f92b3bf0 100644 --- a/src/Model/SecretJsonldRead.php +++ b/src/Model/SecretJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class SecretJsonldRead +class SecretJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -37,13 +46,17 @@ class SecretJsonldRead */ protected $description; /** - * @var string[]|null + * @var string|null */ - protected $contents; + protected $organization; + /** + * @var string|null + */ + protected $workspace; /** - * @var TraversableJsonldRead|null + * @var string[]|null */ - protected $iterator; + protected $contents; /** * @return mixed @@ -53,8 +66,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -67,6 +84,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -79,6 +97,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -91,6 +110,7 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; @@ -103,6 +123,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -115,11 +136,38 @@ public function getDescription(): ?string public function setDescription(?string $description): self { + $this->initialized['description'] = true; $this->description = $description; return $this; } + public function getOrganization(): ?string + { + return $this->organization; + } + + public function setOrganization(?string $organization): self + { + $this->initialized['organization'] = true; + $this->organization = $organization; + + return $this; + } + + public function getWorkspace(): ?string + { + return $this->workspace; + } + + public function setWorkspace(?string $workspace): self + { + $this->initialized['workspace'] = true; + $this->workspace = $workspace; + + return $this; + } + /** * @return string[]|null */ @@ -133,20 +181,9 @@ public function getContents(): ?iterable */ public function setContents(?iterable $contents): self { + $this->initialized['contents'] = true; $this->contents = $contents; return $this; } - - public function getIterator(): ?TraversableJsonldRead - { - return $this->iterator; - } - - public function setIterator(?TraversableJsonldRead $iterator): self - { - $this->iterator = $iterator; - - return $this; - } } diff --git a/src/Model/SecretRead.php b/src/Model/SecretRead.php index b6af008b..45801eef 100644 --- a/src/Model/SecretRead.php +++ b/src/Model/SecretRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class SecretRead +class SecretRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -25,13 +34,17 @@ class SecretRead */ protected $description; /** - * @var string[]|null + * @var string|null */ - protected $contents; + protected $organization; + /** + * @var string|null + */ + protected $workspace; /** - * @var mixed|null + * @var string[]|null */ - protected $iterator; + protected $contents; public function getId(): ?string { @@ -40,6 +53,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -52,6 +66,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -64,40 +79,53 @@ public function getDescription(): ?string public function setDescription(?string $description): self { + $this->initialized['description'] = true; $this->description = $description; return $this; } - /** - * @return string[]|null - */ - public function getContents(): ?iterable + public function getOrganization(): ?string { - return $this->contents; + return $this->organization; } - /** - * @param string[]|null $contents - */ - public function setContents(?iterable $contents): self + public function setOrganization(?string $organization): self { - $this->contents = $contents; + $this->initialized['organization'] = true; + $this->organization = $organization; + + return $this; + } + + public function getWorkspace(): ?string + { + return $this->workspace; + } + + public function setWorkspace(?string $workspace): self + { + $this->initialized['workspace'] = true; + $this->workspace = $workspace; return $this; } /** - * @return mixed + * @return string[]|null */ - public function getIterator() + public function getContents(): ?iterable { - return $this->iterator; + return $this->contents; } - public function setIterator(mixed $iterator): self + /** + * @param string[]|null $contents + */ + public function setContents(?iterable $contents): self { - $this->iterator = $iterator; + $this->initialized['contents'] = true; + $this->contents = $contents; return $this; } diff --git a/src/Model/SecretRemoveSecretValueInput.php b/src/Model/SecretRemoveSecretValueInput.php index e5e6b5d8..6df8fffb 100644 --- a/src/Model/SecretRemoveSecretValueInput.php +++ b/src/Model/SecretRemoveSecretValueInput.php @@ -10,43 +10,21 @@ namespace Gyroscops\Api\Model; -class SecretRemoveSecretValueInput +class SecretRemoveSecretValueInput extends \ArrayObject { /** - * @var mixed|null + * @var array */ - protected $id; + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string[]|null */ protected $contents; - /** - * @var mixed|null - */ - protected $organization; - /** - * @var mixed|null - */ - protected $workspace; - /** - * @var mixed|null - */ - protected $iterator; - - /** - * @return mixed - */ - public function getId() - { - return $this->id; - } - - public function setId(mixed $id): self - { - $this->id = $id; - - return $this; - } /** * @return string[]|null @@ -61,53 +39,9 @@ public function getContents(): ?array */ public function setContents(?array $contents): self { + $this->initialized['contents'] = true; $this->contents = $contents; return $this; } - - /** - * @return mixed - */ - public function getOrganization() - { - return $this->organization; - } - - public function setOrganization(mixed $organization): self - { - $this->organization = $organization; - - return $this; - } - - /** - * @return mixed - */ - public function getWorkspace() - { - return $this->workspace; - } - - public function setWorkspace(mixed $workspace): self - { - $this->workspace = $workspace; - - return $this; - } - - /** - * @return mixed - */ - public function getIterator() - { - return $this->iterator; - } - - public function setIterator(mixed $iterator): self - { - $this->iterator = $iterator; - - return $this; - } } diff --git a/src/Model/SecretRemoveSecretValueInputJsonld.php b/src/Model/SecretRemoveSecretValueInputJsonld.php index 1e99a492..355694b0 100644 --- a/src/Model/SecretRemoveSecretValueInputJsonld.php +++ b/src/Model/SecretRemoveSecretValueInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class SecretRemoveSecretValueInputJsonld +class SecretRemoveSecretValueInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -24,26 +33,10 @@ class SecretRemoveSecretValueInputJsonld * @var string|null */ protected $type; - /** - * @var mixed|null - */ - protected $id2; /** * @var string[]|null */ protected $contents; - /** - * @var mixed|null - */ - protected $organization; - /** - * @var mixed|null - */ - protected $workspace; - /** - * @var TraversableJsonld|null - */ - protected $iterator; /** * @return mixed @@ -53,8 +46,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -67,6 +64,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -79,26 +77,12 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; } - /** - * @return mixed - */ - public function getId2() - { - return $this->id2; - } - - public function setId2(mixed $id2): self - { - $this->id2 = $id2; - - return $this; - } - /** * @return string[]|null */ @@ -112,50 +96,9 @@ public function getContents(): ?array */ public function setContents(?array $contents): self { + $this->initialized['contents'] = true; $this->contents = $contents; return $this; } - - /** - * @return mixed - */ - public function getOrganization() - { - return $this->organization; - } - - public function setOrganization(mixed $organization): self - { - $this->organization = $organization; - - return $this; - } - - /** - * @return mixed - */ - public function getWorkspace() - { - return $this->workspace; - } - - public function setWorkspace(mixed $workspace): self - { - $this->workspace = $workspace; - - return $this; - } - - public function getIterator(): ?TraversableJsonld - { - return $this->iterator; - } - - public function setIterator(?TraversableJsonld $iterator): self - { - $this->iterator = $iterator; - - return $this; - } } diff --git a/src/Model/Step.php b/src/Model/Step.php new file mode 100644 index 00000000..b46255d4 --- /dev/null +++ b/src/Model/Step.php @@ -0,0 +1,104 @@ +initialized); + } + /** + * @var string[]|null + */ + protected $configuration; + /** + * @var string|null + */ + protected $code; + /** + * @var string|null + */ + protected $label; + /** + * @var Probe[]|null + */ + protected $probes; + + /** + * @return string[]|null + */ + public function getConfiguration(): ?iterable + { + return $this->configuration; + } + + /** + * @param string[]|null $configuration + */ + public function setConfiguration(?iterable $configuration): self + { + $this->initialized['configuration'] = true; + $this->configuration = $configuration; + + return $this; + } + + public function getCode(): ?string + { + return $this->code; + } + + public function setCode(?string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getLabel(): ?string + { + return $this->label; + } + + public function setLabel(?string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } + + /** + * @return Probe[]|null + */ + public function getProbes(): ?array + { + return $this->probes; + } + + /** + * @param Probe[]|null $probes + */ + public function setProbes(?array $probes): self + { + $this->initialized['probes'] = true; + $this->probes = $probes; + + return $this; + } +} diff --git a/src/Model/StepInput.php b/src/Model/StepInput.php deleted file mode 100644 index f4be6445..00000000 --- a/src/Model/StepInput.php +++ /dev/null @@ -1,91 +0,0 @@ -code; - } - - public function setCode(?string $code): self - { - $this->code = $code; - - return $this; - } - - public function getLabel(): ?string - { - return $this->label; - } - - public function setLabel(?string $label): self - { - $this->label = $label; - - return $this; - } - - /** - * @return string[][]|null - */ - public function getConfiguration(): ?iterable - { - return $this->configuration; - } - - /** - * @param string[][]|null $configuration - */ - public function setConfiguration(?iterable $configuration): self - { - $this->configuration = $configuration; - - return $this; - } - - /** - * @return Probe[]|null - */ - public function getProbes(): ?array - { - return $this->probes; - } - - /** - * @param Probe[]|null $probes - */ - public function setProbes(?array $probes): self - { - $this->probes = $probes; - - return $this; - } -} diff --git a/src/Model/StepInputJsonld.php b/src/Model/StepInputJsonld.php deleted file mode 100644 index f1e2f274..00000000 --- a/src/Model/StepInputJsonld.php +++ /dev/null @@ -1,142 +0,0 @@ -context; - } - - public function setContext(mixed $context): self - { - $this->context = $context; - - return $this; - } - - public function getId(): ?string - { - return $this->id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getCode(): ?string - { - return $this->code; - } - - public function setCode(?string $code): self - { - $this->code = $code; - - return $this; - } - - public function getLabel(): ?string - { - return $this->label; - } - - public function setLabel(?string $label): self - { - $this->label = $label; - - return $this; - } - - /** - * @return string[][]|null - */ - public function getConfiguration(): ?iterable - { - return $this->configuration; - } - - /** - * @param string[][]|null $configuration - */ - public function setConfiguration(?iterable $configuration): self - { - $this->configuration = $configuration; - - return $this; - } - - /** - * @return ProbeJsonld[]|null - */ - public function getProbes(): ?array - { - return $this->probes; - } - - /** - * @param ProbeJsonld[]|null $probes - */ - public function setProbes(?array $probes): self - { - $this->probes = $probes; - - return $this; - } -} diff --git a/src/Model/StepJsonld.php b/src/Model/StepJsonld.php new file mode 100644 index 00000000..40c5538d --- /dev/null +++ b/src/Model/StepJsonld.php @@ -0,0 +1,161 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string[]|null + */ + protected $configuration; + /** + * @var string|null + */ + protected $code; + /** + * @var string|null + */ + protected $label; + /** + * @var ProbeJsonld[]|null + */ + protected $probes; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + /** + * @return string[]|null + */ + public function getConfiguration(): ?iterable + { + return $this->configuration; + } + + /** + * @param string[]|null $configuration + */ + public function setConfiguration(?iterable $configuration): self + { + $this->initialized['configuration'] = true; + $this->configuration = $configuration; + + return $this; + } + + public function getCode(): ?string + { + return $this->code; + } + + public function setCode(?string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getLabel(): ?string + { + return $this->label; + } + + public function setLabel(?string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } + + /** + * @return ProbeJsonld[]|null + */ + public function getProbes(): ?array + { + return $this->probes; + } + + /** + * @param ProbeJsonld[]|null $probes + */ + public function setProbes(?array $probes): self + { + $this->initialized['probes'] = true; + $this->probes = $probes; + + return $this; + } +} diff --git a/src/Model/Subscription.php b/src/Model/Subscription.php index e5b1dc6d..e0395e52 100644 --- a/src/Model/Subscription.php +++ b/src/Model/Subscription.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class Subscription +class Subscription extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -44,6 +53,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -56,6 +66,7 @@ public function getOrganization(): ?string public function setOrganization(?string $organization): self { + $this->initialized['organization'] = true; $this->organization = $organization; return $this; @@ -68,6 +79,7 @@ public function getOffer(): ?string public function setOffer(?string $offer): self { + $this->initialized['offer'] = true; $this->offer = $offer; return $this; @@ -86,6 +98,7 @@ public function getOptions(): ?array */ public function setOptions(?array $options): self { + $this->initialized['options'] = true; $this->options = $options; return $this; @@ -98,6 +111,7 @@ public function getCost(): ?Price public function setCost(?Price $cost): self { + $this->initialized['cost'] = true; $this->cost = $cost; return $this; @@ -116,6 +130,7 @@ public function getPeriods(): ?iterable */ public function setPeriods(?iterable $periods): self { + $this->initialized['periods'] = true; $this->periods = $periods; return $this; diff --git a/src/Model/SubscriptionJsonld.php b/src/Model/SubscriptionJsonld.php index 887ad1fd..817e98a8 100644 --- a/src/Model/SubscriptionJsonld.php +++ b/src/Model/SubscriptionJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class SubscriptionJsonld +class SubscriptionJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -57,8 +66,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -71,6 +84,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -83,6 +97,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -95,6 +110,7 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; @@ -107,6 +123,7 @@ public function getOrganization(): ?string public function setOrganization(?string $organization): self { + $this->initialized['organization'] = true; $this->organization = $organization; return $this; @@ -119,6 +136,7 @@ public function getOffer(): ?string public function setOffer(?string $offer): self { + $this->initialized['offer'] = true; $this->offer = $offer; return $this; @@ -137,6 +155,7 @@ public function getOptions(): ?array */ public function setOptions(?array $options): self { + $this->initialized['options'] = true; $this->options = $options; return $this; @@ -149,6 +168,7 @@ public function getCost(): ?PriceJsonld public function setCost(?PriceJsonld $cost): self { + $this->initialized['cost'] = true; $this->cost = $cost; return $this; @@ -167,6 +187,7 @@ public function getPeriods(): ?iterable */ public function setPeriods(?iterable $periods): self { + $this->initialized['periods'] = true; $this->periods = $periods; return $this; diff --git a/src/Model/SubscriptionOfferJsonldRead.php b/src/Model/SubscriptionOfferJsonldRead.php new file mode 100644 index 00000000..8ac24f79 --- /dev/null +++ b/src/Model/SubscriptionOfferJsonldRead.php @@ -0,0 +1,314 @@ +initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var mixed|null + */ + protected $context; + /** + * @var ColorJsonldRead|null + */ + protected $color; + /** + * @var int|null + */ + protected $colorDepth; + /** + * @var string|null + */ + protected $sku; + /** + * @var string|null + */ + protected $name; + /** + * @var string|null + */ + protected $slug; + /** + * @var string|null + */ + protected $shortDescription; + /** + * @var string|null + */ + protected $description; + /** + * @var string[]|null + */ + protected $features; + /** + * @var PriceJsonldRead[]|null + */ + protected $priceList; + /** + * @var int|null + */ + protected $rank; + /** + * @var bool|null + */ + protected $active; + /** + * @var \DateTime|null + */ + protected $activeFrom; + /** + * @var \DateTime|null + */ + protected $activeUntil; + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getColor(): ?ColorJsonldRead + { + return $this->color; + } + + public function setColor(?ColorJsonldRead $color): self + { + $this->initialized['color'] = true; + $this->color = $color; + + return $this; + } + + public function getColorDepth(): ?int + { + return $this->colorDepth; + } + + public function setColorDepth(?int $colorDepth): self + { + $this->initialized['colorDepth'] = true; + $this->colorDepth = $colorDepth; + + return $this; + } + + public function getSku(): ?string + { + return $this->sku; + } + + public function setSku(?string $sku): self + { + $this->initialized['sku'] = true; + $this->sku = $sku; + + return $this; + } + + public function getName(): ?string + { + return $this->name; + } + + public function setName(?string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getSlug(): ?string + { + return $this->slug; + } + + public function setSlug(?string $slug): self + { + $this->initialized['slug'] = true; + $this->slug = $slug; + + return $this; + } + + public function getShortDescription(): ?string + { + return $this->shortDescription; + } + + public function setShortDescription(?string $shortDescription): self + { + $this->initialized['shortDescription'] = true; + $this->shortDescription = $shortDescription; + + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return string[]|null + */ + public function getFeatures(): ?array + { + return $this->features; + } + + /** + * @param string[]|null $features + */ + public function setFeatures(?array $features): self + { + $this->initialized['features'] = true; + $this->features = $features; + + return $this; + } + + /** + * @return PriceJsonldRead[]|null + */ + public function getPriceList(): ?array + { + return $this->priceList; + } + + /** + * @param PriceJsonldRead[]|null $priceList + */ + public function setPriceList(?array $priceList): self + { + $this->initialized['priceList'] = true; + $this->priceList = $priceList; + + return $this; + } + + public function getRank(): ?int + { + return $this->rank; + } + + public function setRank(?int $rank): self + { + $this->initialized['rank'] = true; + $this->rank = $rank; + + return $this; + } + + public function getActive(): ?bool + { + return $this->active; + } + + public function setActive(?bool $active): self + { + $this->initialized['active'] = true; + $this->active = $active; + + return $this; + } + + public function getActiveFrom(): ?\DateTime + { + return $this->activeFrom; + } + + public function setActiveFrom(?\DateTime $activeFrom): self + { + $this->initialized['activeFrom'] = true; + $this->activeFrom = $activeFrom; + + return $this; + } + + public function getActiveUntil(): ?\DateTime + { + return $this->activeUntil; + } + + public function setActiveUntil(?\DateTime $activeUntil): self + { + $this->initialized['activeUntil'] = true; + $this->activeUntil = $activeUntil; + + return $this; + } +} diff --git a/src/Model/SubscriptionOfferJsonldWrite.php b/src/Model/SubscriptionOfferJsonldWrite.php new file mode 100644 index 00000000..0383af5b --- /dev/null +++ b/src/Model/SubscriptionOfferJsonldWrite.php @@ -0,0 +1,149 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var int|null + */ + protected $rank; + /** + * @var bool|null + */ + protected $active; + /** + * @var \DateTime|null + */ + protected $activeFrom; + /** + * @var \DateTime|null + */ + protected $activeUntil; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getRank(): ?int + { + return $this->rank; + } + + public function setRank(?int $rank): self + { + $this->initialized['rank'] = true; + $this->rank = $rank; + + return $this; + } + + public function getActive(): ?bool + { + return $this->active; + } + + public function setActive(?bool $active): self + { + $this->initialized['active'] = true; + $this->active = $active; + + return $this; + } + + public function getActiveFrom(): ?\DateTime + { + return $this->activeFrom; + } + + public function setActiveFrom(?\DateTime $activeFrom): self + { + $this->initialized['activeFrom'] = true; + $this->activeFrom = $activeFrom; + + return $this; + } + + public function getActiveUntil(): ?\DateTime + { + return $this->activeUntil; + } + + public function setActiveUntil(?\DateTime $activeUntil): self + { + $this->initialized['activeUntil'] = true; + $this->activeUntil = $activeUntil; + + return $this; + } +} diff --git a/src/Model/SubscriptionOfferRead.php b/src/Model/SubscriptionOfferRead.php new file mode 100644 index 00000000..c195b3b2 --- /dev/null +++ b/src/Model/SubscriptionOfferRead.php @@ -0,0 +1,263 @@ +initialized); + } + /** + * @var mixed[]|null + */ + protected $color; + /** + * @var int|null + */ + protected $colorDepth; + /** + * @var string|null + */ + protected $sku; + /** + * @var string|null + */ + protected $name; + /** + * @var string|null + */ + protected $slug; + /** + * @var string|null + */ + protected $shortDescription; + /** + * @var string|null + */ + protected $description; + /** + * @var string[]|null + */ + protected $features; + /** + * @var PriceRead[]|null + */ + protected $priceList; + /** + * @var int|null + */ + protected $rank; + /** + * @var bool|null + */ + protected $active; + /** + * @var \DateTime|null + */ + protected $activeFrom; + /** + * @var \DateTime|null + */ + protected $activeUntil; + + /** + * @return mixed[]|null + */ + public function getColor(): ?iterable + { + return $this->color; + } + + /** + * @param mixed[]|null $color + */ + public function setColor(?iterable $color): self + { + $this->initialized['color'] = true; + $this->color = $color; + + return $this; + } + + public function getColorDepth(): ?int + { + return $this->colorDepth; + } + + public function setColorDepth(?int $colorDepth): self + { + $this->initialized['colorDepth'] = true; + $this->colorDepth = $colorDepth; + + return $this; + } + + public function getSku(): ?string + { + return $this->sku; + } + + public function setSku(?string $sku): self + { + $this->initialized['sku'] = true; + $this->sku = $sku; + + return $this; + } + + public function getName(): ?string + { + return $this->name; + } + + public function setName(?string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getSlug(): ?string + { + return $this->slug; + } + + public function setSlug(?string $slug): self + { + $this->initialized['slug'] = true; + $this->slug = $slug; + + return $this; + } + + public function getShortDescription(): ?string + { + return $this->shortDescription; + } + + public function setShortDescription(?string $shortDescription): self + { + $this->initialized['shortDescription'] = true; + $this->shortDescription = $shortDescription; + + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return string[]|null + */ + public function getFeatures(): ?array + { + return $this->features; + } + + /** + * @param string[]|null $features + */ + public function setFeatures(?array $features): self + { + $this->initialized['features'] = true; + $this->features = $features; + + return $this; + } + + /** + * @return PriceRead[]|null + */ + public function getPriceList(): ?array + { + return $this->priceList; + } + + /** + * @param PriceRead[]|null $priceList + */ + public function setPriceList(?array $priceList): self + { + $this->initialized['priceList'] = true; + $this->priceList = $priceList; + + return $this; + } + + public function getRank(): ?int + { + return $this->rank; + } + + public function setRank(?int $rank): self + { + $this->initialized['rank'] = true; + $this->rank = $rank; + + return $this; + } + + public function getActive(): ?bool + { + return $this->active; + } + + public function setActive(?bool $active): self + { + $this->initialized['active'] = true; + $this->active = $active; + + return $this; + } + + public function getActiveFrom(): ?\DateTime + { + return $this->activeFrom; + } + + public function setActiveFrom(?\DateTime $activeFrom): self + { + $this->initialized['activeFrom'] = true; + $this->activeFrom = $activeFrom; + + return $this; + } + + public function getActiveUntil(): ?\DateTime + { + return $this->activeUntil; + } + + public function setActiveUntil(?\DateTime $activeUntil): self + { + $this->initialized['activeUntil'] = true; + $this->activeUntil = $activeUntil; + + return $this; + } +} diff --git a/src/Model/SubscriptionOfferWrite.php b/src/Model/SubscriptionOfferWrite.php new file mode 100644 index 00000000..96a4607a --- /dev/null +++ b/src/Model/SubscriptionOfferWrite.php @@ -0,0 +1,92 @@ +initialized); + } + /** + * @var int|null + */ + protected $rank; + /** + * @var bool|null + */ + protected $active; + /** + * @var \DateTime|null + */ + protected $activeFrom; + /** + * @var \DateTime|null + */ + protected $activeUntil; + + public function getRank(): ?int + { + return $this->rank; + } + + public function setRank(?int $rank): self + { + $this->initialized['rank'] = true; + $this->rank = $rank; + + return $this; + } + + public function getActive(): ?bool + { + return $this->active; + } + + public function setActive(?bool $active): self + { + $this->initialized['active'] = true; + $this->active = $active; + + return $this; + } + + public function getActiveFrom(): ?\DateTime + { + return $this->activeFrom; + } + + public function setActiveFrom(?\DateTime $activeFrom): self + { + $this->initialized['activeFrom'] = true; + $this->activeFrom = $activeFrom; + + return $this; + } + + public function getActiveUntil(): ?\DateTime + { + return $this->activeUntil; + } + + public function setActiveUntil(?\DateTime $activeUntil): self + { + $this->initialized['activeUntil'] = true; + $this->activeUntil = $activeUntil; + + return $this; + } +} diff --git a/src/Model/SubscriptionOption.php b/src/Model/SubscriptionOption.php index bacbfc48..5a91d483 100644 --- a/src/Model/SubscriptionOption.php +++ b/src/Model/SubscriptionOption.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class SubscriptionOption +class SubscriptionOption extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -36,6 +45,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -48,6 +58,7 @@ public function getSubscription(): ?string public function setSubscription(?string $subscription): self { + $this->initialized['subscription'] = true; $this->subscription = $subscription; return $this; @@ -60,6 +71,7 @@ public function getOption(): ?string public function setOption(?string $option): self { + $this->initialized['option'] = true; $this->option = $option; return $this; @@ -72,6 +84,7 @@ public function getPrice(): ?Price public function setPrice(?Price $price): self { + $this->initialized['price'] = true; $this->price = $price; return $this; diff --git a/src/Model/SubscriptionOptionJsonld.php b/src/Model/SubscriptionOptionJsonld.php index bbf7b7d2..0e706db6 100644 --- a/src/Model/SubscriptionOptionJsonld.php +++ b/src/Model/SubscriptionOptionJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class SubscriptionOptionJsonld +class SubscriptionOptionJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -44,6 +53,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -56,6 +66,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -68,6 +79,7 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; @@ -80,6 +92,7 @@ public function getSubscription(): ?string public function setSubscription(?string $subscription): self { + $this->initialized['subscription'] = true; $this->subscription = $subscription; return $this; @@ -92,6 +105,7 @@ public function getOption(): ?string public function setOption(?string $option): self { + $this->initialized['option'] = true; $this->option = $option; return $this; @@ -104,6 +118,7 @@ public function getPrice(): ?PriceJsonld public function setPrice(?PriceJsonld $price): self { + $this->initialized['price'] = true; $this->price = $price; return $this; diff --git a/src/Model/SubscriptionType.php b/src/Model/SubscriptionType.php new file mode 100644 index 00000000..ef921777 --- /dev/null +++ b/src/Model/SubscriptionType.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string|null + */ + protected $name; + /** + * @var string|null + */ + protected $value; + + public function getName(): ?string + { + return $this->name; + } + + public function setName(?string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getValue(): ?string + { + return $this->value; + } + + public function setValue(?string $value): self + { + $this->initialized['value'] = true; + $this->value = $value; + + return $this; + } +} diff --git a/src/Model/SubscriptionTypeJsonld.php b/src/Model/SubscriptionTypeJsonld.php new file mode 100644 index 00000000..d1ed6d1b --- /dev/null +++ b/src/Model/SubscriptionTypeJsonld.php @@ -0,0 +1,115 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $name; + /** + * @var string|null + */ + protected $value; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getName(): ?string + { + return $this->name; + } + + public function setName(?string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getValue(): ?string + { + return $this->value; + } + + public function setValue(?string $value): self + { + $this->initialized['value'] = true; + $this->value = $value; + + return $this; + } +} diff --git a/src/Model/SubscriptionTypeJsonldRead.php b/src/Model/SubscriptionTypeJsonldRead.php new file mode 100644 index 00000000..1e376b51 --- /dev/null +++ b/src/Model/SubscriptionTypeJsonldRead.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } +} diff --git a/src/Model/Token.php b/src/Model/Token.php index c23ad23f..7a988e90 100644 --- a/src/Model/Token.php +++ b/src/Model/Token.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class Token +class Token extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -24,6 +33,7 @@ public function getToken(): ?string public function setToken(?string $token): self { + $this->initialized['token'] = true; $this->token = $token; return $this; diff --git a/src/Model/TraversableJsonld.php b/src/Model/TraversableJsonld.php index b2027dc6..cae043cc 100644 --- a/src/Model/TraversableJsonld.php +++ b/src/Model/TraversableJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class TraversableJsonld +class TraversableJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/TraversableJsonldRead.php b/src/Model/TraversableJsonldRead.php deleted file mode 100644 index aab6af0f..00000000 --- a/src/Model/TraversableJsonldRead.php +++ /dev/null @@ -1,66 +0,0 @@ -context; - } - - public function setContext(mixed $context): self - { - $this->context = $context; - - return $this; - } - - public function getId(): ?string - { - return $this->id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } -} diff --git a/src/Model/UpdateList.php b/src/Model/UpdateList.php deleted file mode 100644 index e2f4eb49..00000000 --- a/src/Model/UpdateList.php +++ /dev/null @@ -1,34 +0,0 @@ -iterator; - } - - public function setIterator(mixed $iterator): self - { - $this->iterator = $iterator; - - return $this; - } -} diff --git a/src/Model/UpdateListJsonld.php b/src/Model/UpdateListJsonld.php deleted file mode 100644 index 6975e9ce..00000000 --- a/src/Model/UpdateListJsonld.php +++ /dev/null @@ -1,82 +0,0 @@ -context; - } - - public function setContext(mixed $context): self - { - $this->context = $context; - - return $this; - } - - public function getId(): ?string - { - return $this->id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } - - public function getIterator(): ?TraversableJsonld - { - return $this->iterator; - } - - public function setIterator(?TraversableJsonld $iterator): self - { - $this->iterator = $iterator; - - return $this; - } -} diff --git a/src/Model/User.php b/src/Model/User.php index 17f06731..6d8acf2b 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class User +class User extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -76,10 +85,18 @@ class User * @var string[]|null */ protected $acceptedReferralRequests; + /** + * @var string[]|null + */ + protected $akeneoLinkedAccounts; /** * @var string|null */ protected $userIdentifier; + /** + * @var string|null + */ + protected $fullName; /** * @var string|null */ @@ -96,6 +113,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -108,6 +126,7 @@ public function getFirstName(): ?string public function setFirstName(?string $firstName): self { + $this->initialized['firstName'] = true; $this->firstName = $firstName; return $this; @@ -120,6 +139,7 @@ public function getLastName(): ?string public function setLastName(?string $lastName): self { + $this->initialized['lastName'] = true; $this->lastName = $lastName; return $this; @@ -132,6 +152,7 @@ public function getUsername(): ?string public function setUsername(?string $username): self { + $this->initialized['username'] = true; $this->username = $username; return $this; @@ -144,6 +165,7 @@ public function getEmail(): ?string public function setEmail(?string $email): self { + $this->initialized['email'] = true; $this->email = $email; return $this; @@ -156,6 +178,7 @@ public function getPassword(): ?string public function setPassword(?string $password): self { + $this->initialized['password'] = true; $this->password = $password; return $this; @@ -168,6 +191,7 @@ public function getEnabled(): ?bool public function setEnabled(?bool $enabled): self { + $this->initialized['enabled'] = true; $this->enabled = $enabled; return $this; @@ -186,6 +210,7 @@ public function getRoles(): ?array */ public function setRoles(?array $roles): self { + $this->initialized['roles'] = true; $this->roles = $roles; return $this; @@ -204,6 +229,7 @@ public function getAuthorizations(): ?array */ public function setAuthorizations(?array $authorizations): self { + $this->initialized['authorizations'] = true; $this->authorizations = $authorizations; return $this; @@ -216,6 +242,7 @@ public function getOrganization(): ?string public function setOrganization(?string $organization): self { + $this->initialized['organization'] = true; $this->organization = $organization; return $this; @@ -234,6 +261,7 @@ public function getAdditionalOrganizations(): ?array */ public function setAdditionalOrganizations(?array $additionalOrganizations): self { + $this->initialized['additionalOrganizations'] = true; $this->additionalOrganizations = $additionalOrganizations; return $this; @@ -252,6 +280,7 @@ public function getWorkspaces(): ?array */ public function setWorkspaces(?array $workspaces): self { + $this->initialized['workspaces'] = true; $this->workspaces = $workspaces; return $this; @@ -264,6 +293,7 @@ public function getCurrentWorkspace(): ?string public function setCurrentWorkspace(?string $currentWorkspace): self { + $this->initialized['currentWorkspace'] = true; $this->currentWorkspace = $currentWorkspace; return $this; @@ -276,6 +306,7 @@ public function getCurrentOrganization(): ?string public function setCurrentOrganization(?string $currentOrganization): self { + $this->initialized['currentOrganization'] = true; $this->currentOrganization = $currentOrganization; return $this; @@ -294,6 +325,7 @@ public function getReferralCodes(): ?array */ public function setReferralCodes(?array $referralCodes): self { + $this->initialized['referralCodes'] = true; $this->referralCodes = $referralCodes; return $this; @@ -312,11 +344,31 @@ public function getAcceptedReferralRequests(): ?array */ public function setAcceptedReferralRequests(?array $acceptedReferralRequests): self { + $this->initialized['acceptedReferralRequests'] = true; $this->acceptedReferralRequests = $acceptedReferralRequests; return $this; } + /** + * @return string[]|null + */ + public function getAkeneoLinkedAccounts(): ?array + { + return $this->akeneoLinkedAccounts; + } + + /** + * @param string[]|null $akeneoLinkedAccounts + */ + public function setAkeneoLinkedAccounts(?array $akeneoLinkedAccounts): self + { + $this->initialized['akeneoLinkedAccounts'] = true; + $this->akeneoLinkedAccounts = $akeneoLinkedAccounts; + + return $this; + } + public function getUserIdentifier(): ?string { return $this->userIdentifier; @@ -324,11 +376,25 @@ public function getUserIdentifier(): ?string public function setUserIdentifier(?string $userIdentifier): self { + $this->initialized['userIdentifier'] = true; $this->userIdentifier = $userIdentifier; return $this; } + public function getFullName(): ?string + { + return $this->fullName; + } + + public function setFullName(?string $fullName): self + { + $this->initialized['fullName'] = true; + $this->fullName = $fullName; + + return $this; + } + public function getSalt(): ?string { return $this->salt; @@ -336,6 +402,7 @@ public function getSalt(): ?string public function setSalt(?string $salt): self { + $this->initialized['salt'] = true; $this->salt = $salt; return $this; @@ -354,6 +421,7 @@ public function getWorkspace(): ?array */ public function setWorkspace(?array $workspace): self { + $this->initialized['workspace'] = true; $this->workspace = $workspace; return $this; diff --git a/src/Model/UserAuthorization.php b/src/Model/UserAuthorization.php index c166793a..b869feab 100644 --- a/src/Model/UserAuthorization.php +++ b/src/Model/UserAuthorization.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class UserAuthorization +class UserAuthorization extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -44,6 +53,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -56,6 +66,7 @@ public function getUser(): ?string public function setUser(?string $user): self { + $this->initialized['user'] = true; $this->user = $user; return $this; @@ -68,6 +79,7 @@ public function getWorkspace(): ?string public function setWorkspace(?string $workspace): self { + $this->initialized['workspace'] = true; $this->workspace = $workspace; return $this; @@ -80,6 +92,7 @@ public function getOrganization(): ?string public function setOrganization(?string $organization): self { + $this->initialized['organization'] = true; $this->organization = $organization; return $this; @@ -92,6 +105,7 @@ public function getResource(): ?string public function setResource(?string $resource): self { + $this->initialized['resource'] = true; $this->resource = $resource; return $this; @@ -110,6 +124,7 @@ public function getAuthorizations(): ?array */ public function setAuthorizations(?array $authorizations): self { + $this->initialized['authorizations'] = true; $this->authorizations = $authorizations; return $this; diff --git a/src/Model/UserAuthorizationJsonld.php b/src/Model/UserAuthorizationJsonld.php index 9cef75d2..c182fe26 100644 --- a/src/Model/UserAuthorizationJsonld.php +++ b/src/Model/UserAuthorizationJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class UserAuthorizationJsonld +class UserAuthorizationJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -56,6 +65,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -68,6 +78,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -81,8 +92,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -95,6 +110,7 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; @@ -107,6 +123,7 @@ public function getUser(): ?string public function setUser(?string $user): self { + $this->initialized['user'] = true; $this->user = $user; return $this; @@ -119,6 +136,7 @@ public function getWorkspace(): ?string public function setWorkspace(?string $workspace): self { + $this->initialized['workspace'] = true; $this->workspace = $workspace; return $this; @@ -131,6 +149,7 @@ public function getOrganization(): ?string public function setOrganization(?string $organization): self { + $this->initialized['organization'] = true; $this->organization = $organization; return $this; @@ -143,6 +162,7 @@ public function getResource(): ?string public function setResource(?string $resource): self { + $this->initialized['resource'] = true; $this->resource = $resource; return $this; @@ -161,6 +181,7 @@ public function getAuthorizations(): ?array */ public function setAuthorizations(?array $authorizations): self { + $this->initialized['authorizations'] = true; $this->authorizations = $authorizations; return $this; diff --git a/src/Model/UserId.php b/src/Model/UserId.php new file mode 100644 index 00000000..a3db8dc5 --- /dev/null +++ b/src/Model/UserId.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var bool|null + */ + protected $nil; + + public function getNil(): ?bool + { + return $this->nil; + } + + public function setNil(?bool $nil): self + { + $this->initialized['nil'] = true; + $this->nil = $nil; + + return $this; + } +} diff --git a/src/Model/UserIdJsonld.php b/src/Model/UserIdJsonld.php new file mode 100644 index 00000000..245144d3 --- /dev/null +++ b/src/Model/UserIdJsonld.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var bool|null + */ + protected $nil; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getNil(): ?bool + { + return $this->nil; + } + + public function setNil(?bool $nil): self + { + $this->initialized['nil'] = true; + $this->nil = $nil; + + return $this; + } +} diff --git a/src/Model/UserJsonld.php b/src/Model/UserJsonld.php index d3dd374e..1f1da7a3 100644 --- a/src/Model/UserJsonld.php +++ b/src/Model/UserJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class UserJsonld +class UserJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -88,10 +97,18 @@ class UserJsonld * @var string[]|null */ protected $acceptedReferralRequests; + /** + * @var string[]|null + */ + protected $akeneoLinkedAccounts; /** * @var string|null */ protected $userIdentifier; + /** + * @var string|null + */ + protected $fullName; /** * @var string|null */ @@ -109,8 +126,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -123,6 +144,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -135,6 +157,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -147,6 +170,7 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; @@ -159,6 +183,7 @@ public function getFirstName(): ?string public function setFirstName(?string $firstName): self { + $this->initialized['firstName'] = true; $this->firstName = $firstName; return $this; @@ -171,6 +196,7 @@ public function getLastName(): ?string public function setLastName(?string $lastName): self { + $this->initialized['lastName'] = true; $this->lastName = $lastName; return $this; @@ -183,6 +209,7 @@ public function getUsername(): ?string public function setUsername(?string $username): self { + $this->initialized['username'] = true; $this->username = $username; return $this; @@ -195,6 +222,7 @@ public function getEmail(): ?string public function setEmail(?string $email): self { + $this->initialized['email'] = true; $this->email = $email; return $this; @@ -207,6 +235,7 @@ public function getPassword(): ?string public function setPassword(?string $password): self { + $this->initialized['password'] = true; $this->password = $password; return $this; @@ -219,6 +248,7 @@ public function getEnabled(): ?bool public function setEnabled(?bool $enabled): self { + $this->initialized['enabled'] = true; $this->enabled = $enabled; return $this; @@ -237,6 +267,7 @@ public function getRoles(): ?array */ public function setRoles(?array $roles): self { + $this->initialized['roles'] = true; $this->roles = $roles; return $this; @@ -255,6 +286,7 @@ public function getAuthorizations(): ?array */ public function setAuthorizations(?array $authorizations): self { + $this->initialized['authorizations'] = true; $this->authorizations = $authorizations; return $this; @@ -267,6 +299,7 @@ public function getOrganization(): ?string public function setOrganization(?string $organization): self { + $this->initialized['organization'] = true; $this->organization = $organization; return $this; @@ -285,6 +318,7 @@ public function getAdditionalOrganizations(): ?array */ public function setAdditionalOrganizations(?array $additionalOrganizations): self { + $this->initialized['additionalOrganizations'] = true; $this->additionalOrganizations = $additionalOrganizations; return $this; @@ -303,6 +337,7 @@ public function getWorkspaces(): ?array */ public function setWorkspaces(?array $workspaces): self { + $this->initialized['workspaces'] = true; $this->workspaces = $workspaces; return $this; @@ -315,6 +350,7 @@ public function getCurrentWorkspace(): ?string public function setCurrentWorkspace(?string $currentWorkspace): self { + $this->initialized['currentWorkspace'] = true; $this->currentWorkspace = $currentWorkspace; return $this; @@ -327,6 +363,7 @@ public function getCurrentOrganization(): ?string public function setCurrentOrganization(?string $currentOrganization): self { + $this->initialized['currentOrganization'] = true; $this->currentOrganization = $currentOrganization; return $this; @@ -345,6 +382,7 @@ public function getReferralCodes(): ?array */ public function setReferralCodes(?array $referralCodes): self { + $this->initialized['referralCodes'] = true; $this->referralCodes = $referralCodes; return $this; @@ -363,11 +401,31 @@ public function getAcceptedReferralRequests(): ?array */ public function setAcceptedReferralRequests(?array $acceptedReferralRequests): self { + $this->initialized['acceptedReferralRequests'] = true; $this->acceptedReferralRequests = $acceptedReferralRequests; return $this; } + /** + * @return string[]|null + */ + public function getAkeneoLinkedAccounts(): ?array + { + return $this->akeneoLinkedAccounts; + } + + /** + * @param string[]|null $akeneoLinkedAccounts + */ + public function setAkeneoLinkedAccounts(?array $akeneoLinkedAccounts): self + { + $this->initialized['akeneoLinkedAccounts'] = true; + $this->akeneoLinkedAccounts = $akeneoLinkedAccounts; + + return $this; + } + public function getUserIdentifier(): ?string { return $this->userIdentifier; @@ -375,11 +433,25 @@ public function getUserIdentifier(): ?string public function setUserIdentifier(?string $userIdentifier): self { + $this->initialized['userIdentifier'] = true; $this->userIdentifier = $userIdentifier; return $this; } + public function getFullName(): ?string + { + return $this->fullName; + } + + public function setFullName(?string $fullName): self + { + $this->initialized['fullName'] = true; + $this->fullName = $fullName; + + return $this; + } + public function getSalt(): ?string { return $this->salt; @@ -387,6 +459,7 @@ public function getSalt(): ?string public function setSalt(?string $salt): self { + $this->initialized['salt'] = true; $this->salt = $salt; return $this; @@ -405,6 +478,7 @@ public function getWorkspace(): ?array */ public function setWorkspace(?array $workspace): self { + $this->initialized['workspace'] = true; $this->workspace = $workspace; return $this; diff --git a/src/Model/UserUserChangePasswordInput.php b/src/Model/UserUserChangePasswordInput.php index 58b32f0a..cda5c4f2 100644 --- a/src/Model/UserUserChangePasswordInput.php +++ b/src/Model/UserUserChangePasswordInput.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class UserUserChangePasswordInput +class UserUserChangePasswordInput extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -32,6 +41,7 @@ public function getCurrentPassword(): ?string public function setCurrentPassword(?string $currentPassword): self { + $this->initialized['currentPassword'] = true; $this->currentPassword = $currentPassword; return $this; @@ -44,6 +54,7 @@ public function getNewPassword(): ?string public function setNewPassword(?string $newPassword): self { + $this->initialized['newPassword'] = true; $this->newPassword = $newPassword; return $this; @@ -56,6 +67,7 @@ public function getConfirmPassword(): ?string public function setConfirmPassword(?string $confirmPassword): self { + $this->initialized['confirmPassword'] = true; $this->confirmPassword = $confirmPassword; return $this; diff --git a/src/Model/VariableFromConfigurationInput.php b/src/Model/VariableFromConfigurationInput.php index 26f870fa..ef903066 100644 --- a/src/Model/VariableFromConfigurationInput.php +++ b/src/Model/VariableFromConfigurationInput.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class VariableFromConfigurationInput +class VariableFromConfigurationInput extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -28,6 +37,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -40,6 +50,7 @@ public function getFrom(): ?string public function setFrom(?string $from): self { + $this->initialized['from'] = true; $this->from = $from; return $this; diff --git a/src/Model/VariableFromConfigurationInputJsonld.php b/src/Model/VariableFromConfigurationInputJsonld.php index 9404aff0..bb3a6ac6 100644 --- a/src/Model/VariableFromConfigurationInputJsonld.php +++ b/src/Model/VariableFromConfigurationInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class VariableFromConfigurationInputJsonld +class VariableFromConfigurationInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -41,8 +50,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -55,6 +68,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -67,6 +81,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -79,6 +94,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -91,6 +107,7 @@ public function getFrom(): ?string public function setFrom(?string $from): self { + $this->initialized['from'] = true; $this->from = $from; return $this; diff --git a/src/Model/VariableFromConfigurationJsonldRead.php b/src/Model/VariableFromConfigurationJsonldRead.php index fc3bc3ab..ceaf4b73 100644 --- a/src/Model/VariableFromConfigurationJsonldRead.php +++ b/src/Model/VariableFromConfigurationJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class VariableFromConfigurationJsonldRead +class VariableFromConfigurationJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -25,7 +34,7 @@ class VariableFromConfigurationJsonldRead */ protected $type; /** - * @var mixed|null + * @var ConfigurationJsonldRead|null */ protected $configuration; /** @@ -33,7 +42,7 @@ class VariableFromConfigurationJsonldRead */ protected $item; /** - * @var mixed|null + * @var EnvironmentJsonldRead|null */ protected $environment; /** @@ -49,8 +58,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -63,6 +76,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -75,21 +89,20 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; } - /** - * @return mixed - */ - public function getConfiguration() + public function getConfiguration(): ?ConfigurationJsonldRead { return $this->configuration; } - public function setConfiguration(mixed $configuration): self + public function setConfiguration(?ConfigurationJsonldRead $configuration): self { + $this->initialized['configuration'] = true; $this->configuration = $configuration; return $this; @@ -102,21 +115,20 @@ public function getItem(): ?string public function setItem(?string $item): self { + $this->initialized['item'] = true; $this->item = $item; return $this; } - /** - * @return mixed - */ - public function getEnvironment() + public function getEnvironment(): ?EnvironmentJsonldRead { return $this->environment; } - public function setEnvironment(mixed $environment): self + public function setEnvironment(?EnvironmentJsonldRead $environment): self { + $this->initialized['environment'] = true; $this->environment = $environment; return $this; @@ -129,6 +141,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; diff --git a/src/Model/VariableFromConfigurationJsonldWrite.php b/src/Model/VariableFromConfigurationJsonldWrite.php index 62b952c7..b432aad0 100644 --- a/src/Model/VariableFromConfigurationJsonldWrite.php +++ b/src/Model/VariableFromConfigurationJsonldWrite.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class VariableFromConfigurationJsonldWrite +class VariableFromConfigurationJsonldWrite extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/VariableFromConfigurationRead.php b/src/Model/VariableFromConfigurationRead.php index 0b1df2c5..cfa88733 100644 --- a/src/Model/VariableFromConfigurationRead.php +++ b/src/Model/VariableFromConfigurationRead.php @@ -10,10 +10,19 @@ namespace Gyroscops\Api\Model; -class VariableFromConfigurationRead +class VariableFromConfigurationRead extends \ArrayObject { /** - * @var mixed|null + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } + /** + * @var ConfigurationRead|null */ protected $configuration; /** @@ -21,7 +30,7 @@ class VariableFromConfigurationRead */ protected $item; /** - * @var mixed|null + * @var EnvironmentRead|null */ protected $environment; /** @@ -29,16 +38,14 @@ class VariableFromConfigurationRead */ protected $name; - /** - * @return mixed - */ - public function getConfiguration() + public function getConfiguration(): ?ConfigurationRead { return $this->configuration; } - public function setConfiguration(mixed $configuration): self + public function setConfiguration(?ConfigurationRead $configuration): self { + $this->initialized['configuration'] = true; $this->configuration = $configuration; return $this; @@ -51,21 +58,20 @@ public function getItem(): ?string public function setItem(?string $item): self { + $this->initialized['item'] = true; $this->item = $item; return $this; } - /** - * @return mixed - */ - public function getEnvironment() + public function getEnvironment(): ?EnvironmentRead { return $this->environment; } - public function setEnvironment(mixed $environment): self + public function setEnvironment(?EnvironmentRead $environment): self { + $this->initialized['environment'] = true; $this->environment = $environment; return $this; @@ -78,6 +84,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; diff --git a/src/Model/VariableFromConstantInput.php b/src/Model/VariableFromConstantInput.php index acb1622f..89bf9661 100644 --- a/src/Model/VariableFromConstantInput.php +++ b/src/Model/VariableFromConstantInput.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class VariableFromConstantInput +class VariableFromConstantInput extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -28,6 +37,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -40,6 +50,7 @@ public function getValue(): ?string public function setValue(?string $value): self { + $this->initialized['value'] = true; $this->value = $value; return $this; diff --git a/src/Model/VariableFromConstantInputJsonld.php b/src/Model/VariableFromConstantInputJsonld.php index ee47bf2a..1330b90f 100644 --- a/src/Model/VariableFromConstantInputJsonld.php +++ b/src/Model/VariableFromConstantInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class VariableFromConstantInputJsonld +class VariableFromConstantInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -41,8 +50,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -55,6 +68,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -67,6 +81,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -79,6 +94,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -91,6 +107,7 @@ public function getValue(): ?string public function setValue(?string $value): self { + $this->initialized['value'] = true; $this->value = $value; return $this; diff --git a/src/Model/VariableFromConstantJsonldRead.php b/src/Model/VariableFromConstantJsonldRead.php index 7839c91f..5b1ec1aa 100644 --- a/src/Model/VariableFromConstantJsonldRead.php +++ b/src/Model/VariableFromConstantJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class VariableFromConstantJsonldRead +class VariableFromConstantJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -29,7 +38,7 @@ class VariableFromConstantJsonldRead */ protected $value; /** - * @var mixed|null + * @var EnvironmentJsonldRead|null */ protected $environment; /** @@ -45,8 +54,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -59,6 +72,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -71,6 +85,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -83,21 +98,20 @@ public function getValue(): ?string public function setValue(?string $value): self { + $this->initialized['value'] = true; $this->value = $value; return $this; } - /** - * @return mixed - */ - public function getEnvironment() + public function getEnvironment(): ?EnvironmentJsonldRead { return $this->environment; } - public function setEnvironment(mixed $environment): self + public function setEnvironment(?EnvironmentJsonldRead $environment): self { + $this->initialized['environment'] = true; $this->environment = $environment; return $this; @@ -110,6 +124,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; diff --git a/src/Model/VariableFromConstantJsonldWrite.php b/src/Model/VariableFromConstantJsonldWrite.php index ba8dddce..a2cd4add 100644 --- a/src/Model/VariableFromConstantJsonldWrite.php +++ b/src/Model/VariableFromConstantJsonldWrite.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class VariableFromConstantJsonldWrite +class VariableFromConstantJsonldWrite extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/VariableFromConstantRead.php b/src/Model/VariableFromConstantRead.php index 31768e69..2646b630 100644 --- a/src/Model/VariableFromConstantRead.php +++ b/src/Model/VariableFromConstantRead.php @@ -10,14 +10,23 @@ namespace Gyroscops\Api\Model; -class VariableFromConstantRead +class VariableFromConstantRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ protected $value; /** - * @var mixed|null + * @var EnvironmentRead|null */ protected $environment; /** @@ -32,21 +41,20 @@ public function getValue(): ?string public function setValue(?string $value): self { + $this->initialized['value'] = true; $this->value = $value; return $this; } - /** - * @return mixed - */ - public function getEnvironment() + public function getEnvironment(): ?EnvironmentRead { return $this->environment; } - public function setEnvironment(mixed $environment): self + public function setEnvironment(?EnvironmentRead $environment): self { + $this->initialized['environment'] = true; $this->environment = $environment; return $this; @@ -59,6 +67,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; diff --git a/src/Model/VariableFromSecretInput.php b/src/Model/VariableFromSecretInput.php index 0d4447d7..f83c660b 100644 --- a/src/Model/VariableFromSecretInput.php +++ b/src/Model/VariableFromSecretInput.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class VariableFromSecretInput +class VariableFromSecretInput extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -28,6 +37,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -40,6 +50,7 @@ public function getFrom(): ?string public function setFrom(?string $from): self { + $this->initialized['from'] = true; $this->from = $from; return $this; diff --git a/src/Model/VariableFromSecretInputJsonld.php b/src/Model/VariableFromSecretInputJsonld.php index 161e4ae9..17bd9b47 100644 --- a/src/Model/VariableFromSecretInputJsonld.php +++ b/src/Model/VariableFromSecretInputJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class VariableFromSecretInputJsonld +class VariableFromSecretInputJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -41,8 +50,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -55,6 +68,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -67,6 +81,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -79,6 +94,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -91,6 +107,7 @@ public function getFrom(): ?string public function setFrom(?string $from): self { + $this->initialized['from'] = true; $this->from = $from; return $this; diff --git a/src/Model/VariableFromSecretJsonldRead.php b/src/Model/VariableFromSecretJsonldRead.php index 5fd4f086..00110281 100644 --- a/src/Model/VariableFromSecretJsonldRead.php +++ b/src/Model/VariableFromSecretJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class VariableFromSecretJsonldRead +class VariableFromSecretJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -25,7 +34,7 @@ class VariableFromSecretJsonldRead */ protected $type; /** - * @var mixed|null + * @var SecretJsonldRead|null */ protected $secret; /** @@ -33,7 +42,7 @@ class VariableFromSecretJsonldRead */ protected $item; /** - * @var mixed|null + * @var EnvironmentJsonldRead|null */ protected $environment; /** @@ -49,8 +58,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -63,6 +76,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -75,21 +89,20 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; } - /** - * @return mixed - */ - public function getSecret() + public function getSecret(): ?SecretJsonldRead { return $this->secret; } - public function setSecret(mixed $secret): self + public function setSecret(?SecretJsonldRead $secret): self { + $this->initialized['secret'] = true; $this->secret = $secret; return $this; @@ -102,21 +115,20 @@ public function getItem(): ?string public function setItem(?string $item): self { + $this->initialized['item'] = true; $this->item = $item; return $this; } - /** - * @return mixed - */ - public function getEnvironment() + public function getEnvironment(): ?EnvironmentJsonldRead { return $this->environment; } - public function setEnvironment(mixed $environment): self + public function setEnvironment(?EnvironmentJsonldRead $environment): self { + $this->initialized['environment'] = true; $this->environment = $environment; return $this; @@ -129,6 +141,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; diff --git a/src/Model/VariableFromSecretJsonldWrite.php b/src/Model/VariableFromSecretJsonldWrite.php index c1201268..82707dc7 100644 --- a/src/Model/VariableFromSecretJsonldWrite.php +++ b/src/Model/VariableFromSecretJsonldWrite.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class VariableFromSecretJsonldWrite +class VariableFromSecretJsonldWrite extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -33,8 +42,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -47,6 +60,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -59,6 +73,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; diff --git a/src/Model/VariableFromSecretRead.php b/src/Model/VariableFromSecretRead.php index 3ab0727e..7841eb1f 100644 --- a/src/Model/VariableFromSecretRead.php +++ b/src/Model/VariableFromSecretRead.php @@ -10,10 +10,19 @@ namespace Gyroscops\Api\Model; -class VariableFromSecretRead +class VariableFromSecretRead extends \ArrayObject { /** - * @var mixed|null + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } + /** + * @var SecretRead|null */ protected $secret; /** @@ -21,7 +30,7 @@ class VariableFromSecretRead */ protected $item; /** - * @var mixed|null + * @var EnvironmentRead|null */ protected $environment; /** @@ -29,16 +38,14 @@ class VariableFromSecretRead */ protected $name; - /** - * @return mixed - */ - public function getSecret() + public function getSecret(): ?SecretRead { return $this->secret; } - public function setSecret(mixed $secret): self + public function setSecret(?SecretRead $secret): self { + $this->initialized['secret'] = true; $this->secret = $secret; return $this; @@ -51,21 +58,20 @@ public function getItem(): ?string public function setItem(?string $item): self { + $this->initialized['item'] = true; $this->item = $item; return $this; } - /** - * @return mixed - */ - public function getEnvironment() + public function getEnvironment(): ?EnvironmentRead { return $this->environment; } - public function setEnvironment(mixed $environment): self + public function setEnvironment(?EnvironmentRead $environment): self { + $this->initialized['environment'] = true; $this->environment = $environment; return $this; @@ -78,6 +84,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; diff --git a/src/Model/VariableJsonldRead.php b/src/Model/VariableJsonldRead.php index f2067392..74fd7369 100644 --- a/src/Model/VariableJsonldRead.php +++ b/src/Model/VariableJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class VariableJsonldRead +class VariableJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -21,7 +30,7 @@ class VariableJsonldRead */ protected $type; /** - * @var mixed|null + * @var EnvironmentJsonldRead|null */ protected $environment; /** @@ -36,6 +45,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -48,21 +58,20 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; } - /** - * @return mixed - */ - public function getEnvironment() + public function getEnvironment(): ?EnvironmentJsonldRead { return $this->environment; } - public function setEnvironment(mixed $environment): self + public function setEnvironment(?EnvironmentJsonldRead $environment): self { + $this->initialized['environment'] = true; $this->environment = $environment; return $this; @@ -75,6 +84,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; diff --git a/src/Model/VariableRead.php b/src/Model/VariableRead.php index 1d542f3c..09aa0152 100644 --- a/src/Model/VariableRead.php +++ b/src/Model/VariableRead.php @@ -10,10 +10,19 @@ namespace Gyroscops\Api\Model; -class VariableRead +class VariableRead extends \ArrayObject { /** - * @var mixed|null + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } + /** + * @var EnvironmentRead|null */ protected $environment; /** @@ -21,16 +30,14 @@ class VariableRead */ protected $name; - /** - * @return mixed - */ - public function getEnvironment() + public function getEnvironment(): ?EnvironmentRead { return $this->environment; } - public function setEnvironment(mixed $environment): self + public function setEnvironment(?EnvironmentRead $environment): self { + $this->initialized['environment'] = true; $this->environment = $environment; return $this; @@ -43,6 +50,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; diff --git a/src/Model/WorkflowCompileWorkflowCommandInputJsonld.php b/src/Model/WorkflowCompileWorkflowCommandInputJsonld.php new file mode 100644 index 00000000..03441ee7 --- /dev/null +++ b/src/Model/WorkflowCompileWorkflowCommandInputJsonld.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } +} diff --git a/src/Model/WorkflowCompileWorkflowCommandJsonldRead.php b/src/Model/WorkflowCompileWorkflowCommandJsonldRead.php new file mode 100644 index 00000000..bfc83daf --- /dev/null +++ b/src/Model/WorkflowCompileWorkflowCommandJsonldRead.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } +} diff --git a/src/Model/WorkflowDeclareWorkflowCommandInput.php b/src/Model/WorkflowDeclareWorkflowCommandInput.php new file mode 100644 index 00000000..4c08ef17 --- /dev/null +++ b/src/Model/WorkflowDeclareWorkflowCommandInput.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var Job[]|null + */ + protected $jobs; + /** + * @var Composer|null + */ + protected $composer; + /** + * @var string|null + */ + protected $code; + /** + * @var string|null + */ + protected $label; + + /** + * @return Job[]|null + */ + public function getJobs(): ?array + { + return $this->jobs; + } + + /** + * @param Job[]|null $jobs + */ + public function setJobs(?array $jobs): self + { + $this->initialized['jobs'] = true; + $this->jobs = $jobs; + + return $this; + } + + public function getComposer(): ?Composer + { + return $this->composer; + } + + public function setComposer(?Composer $composer): self + { + $this->initialized['composer'] = true; + $this->composer = $composer; + + return $this; + } + + public function getCode(): ?string + { + return $this->code; + } + + public function setCode(?string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getLabel(): ?string + { + return $this->label; + } + + public function setLabel(?string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } +} diff --git a/src/Model/WorkflowDeclareWorkflowCommandInputJsonld.php b/src/Model/WorkflowDeclareWorkflowCommandInputJsonld.php new file mode 100644 index 00000000..ee5a8d26 --- /dev/null +++ b/src/Model/WorkflowDeclareWorkflowCommandInputJsonld.php @@ -0,0 +1,155 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var JobJsonld[]|null + */ + protected $jobs; + /** + * @var ComposerJsonld|null + */ + protected $composer; + /** + * @var string|null + */ + protected $code; + /** + * @var string|null + */ + protected $label; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + /** + * @return JobJsonld[]|null + */ + public function getJobs(): ?array + { + return $this->jobs; + } + + /** + * @param JobJsonld[]|null $jobs + */ + public function setJobs(?array $jobs): self + { + $this->initialized['jobs'] = true; + $this->jobs = $jobs; + + return $this; + } + + public function getComposer(): ?ComposerJsonld + { + return $this->composer; + } + + public function setComposer(?ComposerJsonld $composer): self + { + $this->initialized['composer'] = true; + $this->composer = $composer; + + return $this; + } + + public function getCode(): ?string + { + return $this->code; + } + + public function setCode(?string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getLabel(): ?string + { + return $this->label; + } + + public function setLabel(?string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } +} diff --git a/src/Model/WorkflowDeclareWorkflowCommandJsonldRead.php b/src/Model/WorkflowDeclareWorkflowCommandJsonldRead.php new file mode 100644 index 00000000..c7276d42 --- /dev/null +++ b/src/Model/WorkflowDeclareWorkflowCommandJsonldRead.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } +} diff --git a/src/Model/WorkflowDeclareWorkflowScheduleCrontabCommandInput.php b/src/Model/WorkflowDeclareWorkflowScheduleCrontabCommandInput.php new file mode 100644 index 00000000..1a82c128 --- /dev/null +++ b/src/Model/WorkflowDeclareWorkflowScheduleCrontabCommandInput.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string|null + */ + protected $crontab; + /** + * @var string|null + */ + protected $environment; + + public function getCrontab(): ?string + { + return $this->crontab; + } + + public function setCrontab(?string $crontab): self + { + $this->initialized['crontab'] = true; + $this->crontab = $crontab; + + return $this; + } + + public function getEnvironment(): ?string + { + return $this->environment; + } + + public function setEnvironment(?string $environment): self + { + $this->initialized['environment'] = true; + $this->environment = $environment; + + return $this; + } +} diff --git a/src/Model/WorkflowDeclareWorkflowScheduleCrontabCommandInputJsonld.php b/src/Model/WorkflowDeclareWorkflowScheduleCrontabCommandInputJsonld.php new file mode 100644 index 00000000..ba792712 --- /dev/null +++ b/src/Model/WorkflowDeclareWorkflowScheduleCrontabCommandInputJsonld.php @@ -0,0 +1,115 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $crontab; + /** + * @var string|null + */ + protected $environment; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getCrontab(): ?string + { + return $this->crontab; + } + + public function setCrontab(?string $crontab): self + { + $this->initialized['crontab'] = true; + $this->crontab = $crontab; + + return $this; + } + + public function getEnvironment(): ?string + { + return $this->environment; + } + + public function setEnvironment(?string $environment): self + { + $this->initialized['environment'] = true; + $this->environment = $environment; + + return $this; + } +} diff --git a/src/Model/WorkflowDeclareWorkflowScheduleCrontabCommandJsonldRead.php b/src/Model/WorkflowDeclareWorkflowScheduleCrontabCommandJsonldRead.php new file mode 100644 index 00000000..42beffbe --- /dev/null +++ b/src/Model/WorkflowDeclareWorkflowScheduleCrontabCommandJsonldRead.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } +} diff --git a/src/Model/WorkflowDeclareWorkflowScheduleImmediateCommandInput.php b/src/Model/WorkflowDeclareWorkflowScheduleImmediateCommandInput.php new file mode 100644 index 00000000..45bb704f --- /dev/null +++ b/src/Model/WorkflowDeclareWorkflowScheduleImmediateCommandInput.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string|null + */ + protected $environment; + + public function getEnvironment(): ?string + { + return $this->environment; + } + + public function setEnvironment(?string $environment): self + { + $this->initialized['environment'] = true; + $this->environment = $environment; + + return $this; + } +} diff --git a/src/Model/WorkflowDeclareWorkflowScheduleImmediateCommandInputJsonld.php b/src/Model/WorkflowDeclareWorkflowScheduleImmediateCommandInputJsonld.php new file mode 100644 index 00000000..5e1a0af7 --- /dev/null +++ b/src/Model/WorkflowDeclareWorkflowScheduleImmediateCommandInputJsonld.php @@ -0,0 +1,98 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + /** + * @var string|null + */ + protected $environment; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } + + public function getEnvironment(): ?string + { + return $this->environment; + } + + public function setEnvironment(?string $environment): self + { + $this->initialized['environment'] = true; + $this->environment = $environment; + + return $this; + } +} diff --git a/src/Model/WorkflowDeclareWorkflowScheduleImmediateCommandJsonldRead.php b/src/Model/WorkflowDeclareWorkflowScheduleImmediateCommandJsonldRead.php new file mode 100644 index 00000000..c87a70d4 --- /dev/null +++ b/src/Model/WorkflowDeclareWorkflowScheduleImmediateCommandJsonldRead.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } +} diff --git a/src/Model/WorkflowJobAction.php b/src/Model/WorkflowJobAction.php index bbcefe83..aaab1f96 100644 --- a/src/Model/WorkflowJobAction.php +++ b/src/Model/WorkflowJobAction.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class WorkflowJobAction +class WorkflowJobAction extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -20,6 +29,18 @@ class WorkflowJobAction * @var string|null */ protected $id; + /** + * @var string|null + */ + protected $code; + /** + * @var string|null + */ + protected $label; + /** + * @var string[]|null + */ + protected $configuration; public function getJob(): ?string { @@ -28,6 +49,7 @@ public function getJob(): ?string public function setJob(?string $job): self { + $this->initialized['job'] = true; $this->job = $job; return $this; @@ -40,8 +62,54 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; } + + public function getCode(): ?string + { + return $this->code; + } + + public function setCode(?string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getLabel(): ?string + { + return $this->label; + } + + public function setLabel(?string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } + + /** + * @return string[]|null + */ + public function getConfiguration(): ?array + { + return $this->configuration; + } + + /** + * @param string[]|null $configuration + */ + public function setConfiguration(?array $configuration): self + { + $this->initialized['configuration'] = true; + $this->configuration = $configuration; + + return $this; + } } diff --git a/src/Model/WorkflowJobActionJsonld.php b/src/Model/WorkflowJobActionJsonld.php index 2a8889a8..7059145c 100644 --- a/src/Model/WorkflowJobActionJsonld.php +++ b/src/Model/WorkflowJobActionJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class WorkflowJobActionJsonld +class WorkflowJobActionJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -32,6 +41,18 @@ class WorkflowJobActionJsonld * @var string|null */ protected $id2; + /** + * @var string|null + */ + protected $code; + /** + * @var string|null + */ + protected $label; + /** + * @var string[]|null + */ + protected $configuration; /** * @return mixed @@ -41,8 +62,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -55,6 +80,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -67,6 +93,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -79,6 +106,7 @@ public function getJob(): ?string public function setJob(?string $job): self { + $this->initialized['job'] = true; $this->job = $job; return $this; @@ -91,8 +119,54 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; } + + public function getCode(): ?string + { + return $this->code; + } + + public function setCode(?string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getLabel(): ?string + { + return $this->label; + } + + public function setLabel(?string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } + + /** + * @return string[]|null + */ + public function getConfiguration(): ?array + { + return $this->configuration; + } + + /** + * @param string[]|null $configuration + */ + public function setConfiguration(?array $configuration): self + { + $this->initialized['configuration'] = true; + $this->configuration = $configuration; + + return $this; + } } diff --git a/src/Model/WorkflowJobActionJsonldRead.php b/src/Model/WorkflowJobActionJsonldRead.php index 4f757eab..9f20d676 100644 --- a/src/Model/WorkflowJobActionJsonldRead.php +++ b/src/Model/WorkflowJobActionJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class WorkflowJobActionJsonldRead +class WorkflowJobActionJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -28,6 +37,18 @@ class WorkflowJobActionJsonldRead * @var string|null */ protected $id2; + /** + * @var string|null + */ + protected $code; + /** + * @var string|null + */ + protected $label; + /** + * @var string[]|null + */ + protected $configuration; /** * @return mixed @@ -37,8 +58,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -51,6 +76,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -63,6 +89,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -75,8 +102,54 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; } + + public function getCode(): ?string + { + return $this->code; + } + + public function setCode(?string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getLabel(): ?string + { + return $this->label; + } + + public function setLabel(?string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } + + /** + * @return string[]|null + */ + public function getConfiguration(): ?array + { + return $this->configuration; + } + + /** + * @param string[]|null $configuration + */ + public function setConfiguration(?array $configuration): self + { + $this->initialized['configuration'] = true; + $this->configuration = $configuration; + + return $this; + } } diff --git a/src/Model/WorkflowJobActionRead.php b/src/Model/WorkflowJobActionRead.php index 63054a18..1e535add 100644 --- a/src/Model/WorkflowJobActionRead.php +++ b/src/Model/WorkflowJobActionRead.php @@ -10,12 +10,33 @@ namespace Gyroscops\Api\Model; -class WorkflowJobActionRead +class WorkflowJobActionRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ protected $id; + /** + * @var string|null + */ + protected $code; + /** + * @var string|null + */ + protected $label; + /** + * @var string[]|null + */ + protected $configuration; public function getId(): ?string { @@ -24,8 +45,54 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; } + + public function getCode(): ?string + { + return $this->code; + } + + public function setCode(?string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getLabel(): ?string + { + return $this->label; + } + + public function setLabel(?string $label): self + { + $this->initialized['label'] = true; + $this->label = $label; + + return $this; + } + + /** + * @return string[]|null + */ + public function getConfiguration(): ?array + { + return $this->configuration; + } + + /** + * @param string[]|null $configuration + */ + public function setConfiguration(?array $configuration): self + { + $this->initialized['configuration'] = true; + $this->configuration = $configuration; + + return $this; + } } diff --git a/src/Model/WorkflowJobJsonldRead.php b/src/Model/WorkflowJobJsonldRead.php index b8c0f5ff..335b68ec 100644 --- a/src/Model/WorkflowJobJsonldRead.php +++ b/src/Model/WorkflowJobJsonldRead.php @@ -10,8 +10,21 @@ namespace Gyroscops\Api\Model; -class WorkflowJobJsonldRead +class WorkflowJobJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } + /** + * @var mixed|null + */ + protected $context; /** * @var string|null */ @@ -21,22 +34,41 @@ class WorkflowJobJsonldRead */ protected $type; /** - * @var mixed|null + * @var string|null */ - protected $context; + protected $id2; /** - * @var mixed|null + * @var WorkflowJsonldRead|null */ protected $workflow; /** - * @var mixed|null + * @var WorkflowJobPipelineJsonldRead|null */ protected $pipeline; /** - * @var mixed|null + * @var WorkflowJobActionJsonldRead|null */ protected $action; + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + public function getId(): ?string { return $this->id; @@ -44,6 +76,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -56,66 +89,59 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; } - /** - * @return mixed - */ - public function getContext() + public function getId2(): ?string { - return $this->context; + return $this->id2; } - public function setContext(mixed $context): self + public function setId2(?string $id2): self { - $this->context = $context; + $this->initialized['id2'] = true; + $this->id2 = $id2; return $this; } - /** - * @return mixed - */ - public function getWorkflow() + public function getWorkflow(): ?WorkflowJsonldRead { return $this->workflow; } - public function setWorkflow(mixed $workflow): self + public function setWorkflow(?WorkflowJsonldRead $workflow): self { + $this->initialized['workflow'] = true; $this->workflow = $workflow; return $this; } - /** - * @return mixed - */ - public function getPipeline() + public function getPipeline(): ?WorkflowJobPipelineJsonldRead { return $this->pipeline; } - public function setPipeline(mixed $pipeline): self + public function setPipeline(?WorkflowJobPipelineJsonldRead $pipeline): self { + $this->initialized['pipeline'] = true; $this->pipeline = $pipeline; return $this; } - /** - * @return mixed - */ - public function getAction() + public function getAction(): ?WorkflowJobActionJsonldRead { return $this->action; } - public function setAction(mixed $action): self + public function setAction(?WorkflowJobActionJsonldRead $action): self { + $this->initialized['action'] = true; $this->action = $action; return $this; diff --git a/src/Model/WorkflowJobPipeline.php b/src/Model/WorkflowJobPipeline.php index 1a76d675..258db2cb 100644 --- a/src/Model/WorkflowJobPipeline.php +++ b/src/Model/WorkflowJobPipeline.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class WorkflowJobPipeline +class WorkflowJobPipeline extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -28,30 +37,10 @@ class WorkflowJobPipeline * @var string|null */ protected $label; - /** - * @var string|null - */ - protected $runtimeType; /** * @var string[]|null */ protected $runtime; - /** - * @var string[]|null - */ - protected $autoload; - /** - * @var string[]|null - */ - protected $packages; - /** - * @var string[]|null - */ - protected $repositories; - /** - * @var string[]|null - */ - protected $auths; /** * @var string[]|null */ @@ -64,6 +53,7 @@ public function getJob(): ?string public function setJob(?string $job): self { + $this->initialized['job'] = true; $this->job = $job; return $this; @@ -76,6 +66,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -88,6 +79,7 @@ public function getCode(): ?string public function setCode(?string $code): self { + $this->initialized['code'] = true; $this->code = $code; return $this; @@ -100,23 +92,12 @@ public function getLabel(): ?string public function setLabel(?string $label): self { + $this->initialized['label'] = true; $this->label = $label; return $this; } - public function getRuntimeType(): ?string - { - return $this->runtimeType; - } - - public function setRuntimeType(?string $runtimeType): self - { - $this->runtimeType = $runtimeType; - - return $this; - } - /** * @return string[]|null */ @@ -130,83 +111,12 @@ public function getRuntime(): ?array */ public function setRuntime(?array $runtime): self { + $this->initialized['runtime'] = true; $this->runtime = $runtime; return $this; } - /** - * @return string[]|null - */ - public function getAutoload(): ?array - { - return $this->autoload; - } - - /** - * @param string[]|null $autoload - */ - public function setAutoload(?array $autoload): self - { - $this->autoload = $autoload; - - return $this; - } - - /** - * @return string[]|null - */ - public function getPackages(): ?array - { - return $this->packages; - } - - /** - * @param string[]|null $packages - */ - public function setPackages(?array $packages): self - { - $this->packages = $packages; - - return $this; - } - - /** - * @return string[]|null - */ - public function getRepositories(): ?array - { - return $this->repositories; - } - - /** - * @param string[]|null $repositories - */ - public function setRepositories(?array $repositories): self - { - $this->repositories = $repositories; - - return $this; - } - - /** - * @return string[]|null - */ - public function getAuths(): ?array - { - return $this->auths; - } - - /** - * @param string[]|null $auths - */ - public function setAuths(?array $auths): self - { - $this->auths = $auths; - - return $this; - } - /** * @return string[]|null */ @@ -220,6 +130,7 @@ public function getSteps(): ?array */ public function setSteps(?array $steps): self { + $this->initialized['steps'] = true; $this->steps = $steps; return $this; diff --git a/src/Model/WorkflowJobPipelineJsonld.php b/src/Model/WorkflowJobPipelineJsonld.php index 21ea9f78..d9f0dc1f 100644 --- a/src/Model/WorkflowJobPipelineJsonld.php +++ b/src/Model/WorkflowJobPipelineJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class WorkflowJobPipelineJsonld +class WorkflowJobPipelineJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -40,30 +49,10 @@ class WorkflowJobPipelineJsonld * @var string|null */ protected $label; - /** - * @var string|null - */ - protected $runtimeType; /** * @var string[]|null */ protected $runtime; - /** - * @var string[]|null - */ - protected $autoload; - /** - * @var string[]|null - */ - protected $packages; - /** - * @var string[]|null - */ - protected $repositories; - /** - * @var string[]|null - */ - protected $auths; /** * @var string[]|null */ @@ -76,6 +65,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -88,6 +78,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -101,8 +92,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -115,6 +110,7 @@ public function getJob(): ?string public function setJob(?string $job): self { + $this->initialized['job'] = true; $this->job = $job; return $this; @@ -127,6 +123,7 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; @@ -139,6 +136,7 @@ public function getCode(): ?string public function setCode(?string $code): self { + $this->initialized['code'] = true; $this->code = $code; return $this; @@ -151,23 +149,12 @@ public function getLabel(): ?string public function setLabel(?string $label): self { + $this->initialized['label'] = true; $this->label = $label; return $this; } - public function getRuntimeType(): ?string - { - return $this->runtimeType; - } - - public function setRuntimeType(?string $runtimeType): self - { - $this->runtimeType = $runtimeType; - - return $this; - } - /** * @return string[]|null */ @@ -181,83 +168,12 @@ public function getRuntime(): ?array */ public function setRuntime(?array $runtime): self { + $this->initialized['runtime'] = true; $this->runtime = $runtime; return $this; } - /** - * @return string[]|null - */ - public function getAutoload(): ?array - { - return $this->autoload; - } - - /** - * @param string[]|null $autoload - */ - public function setAutoload(?array $autoload): self - { - $this->autoload = $autoload; - - return $this; - } - - /** - * @return string[]|null - */ - public function getPackages(): ?array - { - return $this->packages; - } - - /** - * @param string[]|null $packages - */ - public function setPackages(?array $packages): self - { - $this->packages = $packages; - - return $this; - } - - /** - * @return string[]|null - */ - public function getRepositories(): ?array - { - return $this->repositories; - } - - /** - * @param string[]|null $repositories - */ - public function setRepositories(?array $repositories): self - { - $this->repositories = $repositories; - - return $this; - } - - /** - * @return string[]|null - */ - public function getAuths(): ?array - { - return $this->auths; - } - - /** - * @param string[]|null $auths - */ - public function setAuths(?array $auths): self - { - $this->auths = $auths; - - return $this; - } - /** * @return string[]|null */ @@ -271,6 +187,7 @@ public function getSteps(): ?array */ public function setSteps(?array $steps): self { + $this->initialized['steps'] = true; $this->steps = $steps; return $this; diff --git a/src/Model/WorkflowJobPipelineJsonldRead.php b/src/Model/WorkflowJobPipelineJsonldRead.php index df707f13..0975d178 100644 --- a/src/Model/WorkflowJobPipelineJsonldRead.php +++ b/src/Model/WorkflowJobPipelineJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class WorkflowJobPipelineJsonldRead +class WorkflowJobPipelineJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -36,32 +45,12 @@ class WorkflowJobPipelineJsonldRead * @var string|null */ protected $label; - /** - * @var string|null - */ - protected $runtimeType; /** * @var string[]|null */ protected $runtime; /** - * @var string[]|null - */ - protected $autoload; - /** - * @var string[]|null - */ - protected $packages; - /** - * @var string[]|null - */ - protected $repositories; - /** - * @var string[]|null - */ - protected $auths; - /** - * @var string[]|null + * @var PipelineStepJsonldRead[]|null */ protected $steps; @@ -73,8 +62,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -87,6 +80,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -99,6 +93,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -111,6 +106,7 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; @@ -123,6 +119,7 @@ public function getCode(): ?string public function setCode(?string $code): self { + $this->initialized['code'] = true; $this->code = $code; return $this; @@ -135,23 +132,12 @@ public function getLabel(): ?string public function setLabel(?string $label): self { + $this->initialized['label'] = true; $this->label = $label; return $this; } - public function getRuntimeType(): ?string - { - return $this->runtimeType; - } - - public function setRuntimeType(?string $runtimeType): self - { - $this->runtimeType = $runtimeType; - - return $this; - } - /** * @return string[]|null */ @@ -165,85 +151,14 @@ public function getRuntime(): ?array */ public function setRuntime(?array $runtime): self { + $this->initialized['runtime'] = true; $this->runtime = $runtime; return $this; } /** - * @return string[]|null - */ - public function getAutoload(): ?array - { - return $this->autoload; - } - - /** - * @param string[]|null $autoload - */ - public function setAutoload(?array $autoload): self - { - $this->autoload = $autoload; - - return $this; - } - - /** - * @return string[]|null - */ - public function getPackages(): ?array - { - return $this->packages; - } - - /** - * @param string[]|null $packages - */ - public function setPackages(?array $packages): self - { - $this->packages = $packages; - - return $this; - } - - /** - * @return string[]|null - */ - public function getRepositories(): ?array - { - return $this->repositories; - } - - /** - * @param string[]|null $repositories - */ - public function setRepositories(?array $repositories): self - { - $this->repositories = $repositories; - - return $this; - } - - /** - * @return string[]|null - */ - public function getAuths(): ?array - { - return $this->auths; - } - - /** - * @param string[]|null $auths - */ - public function setAuths(?array $auths): self - { - $this->auths = $auths; - - return $this; - } - - /** - * @return string[]|null + * @return PipelineStepJsonldRead[]|null */ public function getSteps(): ?array { @@ -251,10 +166,11 @@ public function getSteps(): ?array } /** - * @param string[]|null $steps + * @param PipelineStepJsonldRead[]|null $steps */ public function setSteps(?array $steps): self { + $this->initialized['steps'] = true; $this->steps = $steps; return $this; diff --git a/src/Model/WorkflowJobPipelineRead.php b/src/Model/WorkflowJobPipelineRead.php index 2dbc3df9..fa3741c8 100644 --- a/src/Model/WorkflowJobPipelineRead.php +++ b/src/Model/WorkflowJobPipelineRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class WorkflowJobPipelineRead +class WorkflowJobPipelineRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -24,32 +33,12 @@ class WorkflowJobPipelineRead * @var string|null */ protected $label; - /** - * @var string|null - */ - protected $runtimeType; /** * @var string[]|null */ protected $runtime; /** - * @var string[]|null - */ - protected $autoload; - /** - * @var string[]|null - */ - protected $packages; - /** - * @var string[]|null - */ - protected $repositories; - /** - * @var string[]|null - */ - protected $auths; - /** - * @var string[]|null + * @var PipelineStepRead[]|null */ protected $steps; @@ -60,6 +49,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -72,6 +62,7 @@ public function getCode(): ?string public function setCode(?string $code): self { + $this->initialized['code'] = true; $this->code = $code; return $this; @@ -84,23 +75,12 @@ public function getLabel(): ?string public function setLabel(?string $label): self { + $this->initialized['label'] = true; $this->label = $label; return $this; } - public function getRuntimeType(): ?string - { - return $this->runtimeType; - } - - public function setRuntimeType(?string $runtimeType): self - { - $this->runtimeType = $runtimeType; - - return $this; - } - /** * @return string[]|null */ @@ -114,85 +94,14 @@ public function getRuntime(): ?array */ public function setRuntime(?array $runtime): self { + $this->initialized['runtime'] = true; $this->runtime = $runtime; return $this; } /** - * @return string[]|null - */ - public function getAutoload(): ?array - { - return $this->autoload; - } - - /** - * @param string[]|null $autoload - */ - public function setAutoload(?array $autoload): self - { - $this->autoload = $autoload; - - return $this; - } - - /** - * @return string[]|null - */ - public function getPackages(): ?array - { - return $this->packages; - } - - /** - * @param string[]|null $packages - */ - public function setPackages(?array $packages): self - { - $this->packages = $packages; - - return $this; - } - - /** - * @return string[]|null - */ - public function getRepositories(): ?array - { - return $this->repositories; - } - - /** - * @param string[]|null $repositories - */ - public function setRepositories(?array $repositories): self - { - $this->repositories = $repositories; - - return $this; - } - - /** - * @return string[]|null - */ - public function getAuths(): ?array - { - return $this->auths; - } - - /** - * @param string[]|null $auths - */ - public function setAuths(?array $auths): self - { - $this->auths = $auths; - - return $this; - } - - /** - * @return string[]|null + * @return PipelineStepRead[]|null */ public function getSteps(): ?array { @@ -200,10 +109,11 @@ public function getSteps(): ?array } /** - * @param string[]|null $steps + * @param PipelineStepRead[]|null $steps */ public function setSteps(?array $steps): self { + $this->initialized['steps'] = true; $this->steps = $steps; return $this; diff --git a/src/Model/WorkflowJobRead.php b/src/Model/WorkflowJobRead.php index 66c3ea95..42bcd0ff 100644 --- a/src/Model/WorkflowJobRead.php +++ b/src/Model/WorkflowJobRead.php @@ -10,61 +10,81 @@ namespace Gyroscops\Api\Model; -class WorkflowJobRead +class WorkflowJobRead extends \ArrayObject { /** - * @var mixed|null + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } + /** + * @var string|null + */ + protected $id; + /** + * @var WorkflowRead|null */ protected $workflow; /** - * @var mixed|null + * @var WorkflowJobPipelineRead|null */ protected $pipeline; /** - * @var mixed|null + * @var WorkflowJobActionRead|null */ protected $action; - /** - * @return mixed - */ - public function getWorkflow() + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getWorkflow(): ?WorkflowRead { return $this->workflow; } - public function setWorkflow(mixed $workflow): self + public function setWorkflow(?WorkflowRead $workflow): self { + $this->initialized['workflow'] = true; $this->workflow = $workflow; return $this; } - /** - * @return mixed - */ - public function getPipeline() + public function getPipeline(): ?WorkflowJobPipelineRead { return $this->pipeline; } - public function setPipeline(mixed $pipeline): self + public function setPipeline(?WorkflowJobPipelineRead $pipeline): self { + $this->initialized['pipeline'] = true; $this->pipeline = $pipeline; return $this; } - /** - * @return mixed - */ - public function getAction() + public function getAction(): ?WorkflowJobActionRead { return $this->action; } - public function setAction(mixed $action): self + public function setAction(?WorkflowJobActionRead $action): self { + $this->initialized['action'] = true; $this->action = $action; return $this; diff --git a/src/Model/WorkflowJsonldRead.php b/src/Model/WorkflowJsonldRead.php index 475608a9..ee37670f 100644 --- a/src/Model/WorkflowJsonldRead.php +++ b/src/Model/WorkflowJsonldRead.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class WorkflowJsonldRead +class WorkflowJsonldRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -28,6 +37,10 @@ class WorkflowJsonldRead * @var string|null */ protected $id2; + /** + * @var bool|null + */ + protected $isSoftDeleted; /** * @var string|null */ @@ -36,6 +49,30 @@ class WorkflowJsonldRead * @var string|null */ protected $label; + /** + * @var string[]|null + */ + protected $autoload; + /** + * @var string[]|null + */ + protected $packages; + /** + * @var string[]|null + */ + protected $repositories; + /** + * @var string[]|null + */ + protected $auths; + /** + * @var \DateTime|null + */ + protected $compiledAt; + /** + * @var int|null + */ + protected $currentVersion; /** * @var WorkflowJobJsonldRead[]|null */ @@ -48,6 +85,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -60,6 +98,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -73,8 +112,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -87,11 +130,25 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; } + public function getIsSoftDeleted(): ?bool + { + return $this->isSoftDeleted; + } + + public function setIsSoftDeleted(?bool $isSoftDeleted): self + { + $this->initialized['isSoftDeleted'] = true; + $this->isSoftDeleted = $isSoftDeleted; + + return $this; + } + public function getCode(): ?string { return $this->code; @@ -99,6 +156,7 @@ public function getCode(): ?string public function setCode(?string $code): self { + $this->initialized['code'] = true; $this->code = $code; return $this; @@ -111,11 +169,114 @@ public function getLabel(): ?string public function setLabel(?string $label): self { + $this->initialized['label'] = true; $this->label = $label; return $this; } + /** + * @return string[]|null + */ + public function getAutoload(): ?array + { + return $this->autoload; + } + + /** + * @param string[]|null $autoload + */ + public function setAutoload(?array $autoload): self + { + $this->initialized['autoload'] = true; + $this->autoload = $autoload; + + return $this; + } + + /** + * @return string[]|null + */ + public function getPackages(): ?array + { + return $this->packages; + } + + /** + * @param string[]|null $packages + */ + public function setPackages(?array $packages): self + { + $this->initialized['packages'] = true; + $this->packages = $packages; + + return $this; + } + + /** + * @return string[]|null + */ + public function getRepositories(): ?array + { + return $this->repositories; + } + + /** + * @param string[]|null $repositories + */ + public function setRepositories(?array $repositories): self + { + $this->initialized['repositories'] = true; + $this->repositories = $repositories; + + return $this; + } + + /** + * @return string[]|null + */ + public function getAuths(): ?array + { + return $this->auths; + } + + /** + * @param string[]|null $auths + */ + public function setAuths(?array $auths): self + { + $this->initialized['auths'] = true; + $this->auths = $auths; + + return $this; + } + + public function getCompiledAt(): ?\DateTime + { + return $this->compiledAt; + } + + public function setCompiledAt(?\DateTime $compiledAt): self + { + $this->initialized['compiledAt'] = true; + $this->compiledAt = $compiledAt; + + return $this; + } + + public function getCurrentVersion(): ?int + { + return $this->currentVersion; + } + + public function setCurrentVersion(?int $currentVersion): self + { + $this->initialized['currentVersion'] = true; + $this->currentVersion = $currentVersion; + + return $this; + } + /** * @return WorkflowJobJsonldRead[]|null */ @@ -129,6 +290,7 @@ public function getJobs(): ?array */ public function setJobs(?array $jobs): self { + $this->initialized['jobs'] = true; $this->jobs = $jobs; return $this; diff --git a/src/Model/WorkflowRead.php b/src/Model/WorkflowRead.php index e407fe40..c9d3d25b 100644 --- a/src/Model/WorkflowRead.php +++ b/src/Model/WorkflowRead.php @@ -10,12 +10,25 @@ namespace Gyroscops\Api\Model; -class WorkflowRead +class WorkflowRead extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ protected $id; + /** + * @var bool|null + */ + protected $isSoftDeleted; /** * @var string|null */ @@ -24,6 +37,30 @@ class WorkflowRead * @var string|null */ protected $label; + /** + * @var string[]|null + */ + protected $autoload; + /** + * @var string[]|null + */ + protected $packages; + /** + * @var string[]|null + */ + protected $repositories; + /** + * @var string[]|null + */ + protected $auths; + /** + * @var \DateTime|null + */ + protected $compiledAt; + /** + * @var int|null + */ + protected $currentVersion; /** * @var WorkflowJobRead[]|null */ @@ -36,11 +73,25 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; } + public function getIsSoftDeleted(): ?bool + { + return $this->isSoftDeleted; + } + + public function setIsSoftDeleted(?bool $isSoftDeleted): self + { + $this->initialized['isSoftDeleted'] = true; + $this->isSoftDeleted = $isSoftDeleted; + + return $this; + } + public function getCode(): ?string { return $this->code; @@ -48,6 +99,7 @@ public function getCode(): ?string public function setCode(?string $code): self { + $this->initialized['code'] = true; $this->code = $code; return $this; @@ -60,11 +112,114 @@ public function getLabel(): ?string public function setLabel(?string $label): self { + $this->initialized['label'] = true; $this->label = $label; return $this; } + /** + * @return string[]|null + */ + public function getAutoload(): ?array + { + return $this->autoload; + } + + /** + * @param string[]|null $autoload + */ + public function setAutoload(?array $autoload): self + { + $this->initialized['autoload'] = true; + $this->autoload = $autoload; + + return $this; + } + + /** + * @return string[]|null + */ + public function getPackages(): ?array + { + return $this->packages; + } + + /** + * @param string[]|null $packages + */ + public function setPackages(?array $packages): self + { + $this->initialized['packages'] = true; + $this->packages = $packages; + + return $this; + } + + /** + * @return string[]|null + */ + public function getRepositories(): ?array + { + return $this->repositories; + } + + /** + * @param string[]|null $repositories + */ + public function setRepositories(?array $repositories): self + { + $this->initialized['repositories'] = true; + $this->repositories = $repositories; + + return $this; + } + + /** + * @return string[]|null + */ + public function getAuths(): ?array + { + return $this->auths; + } + + /** + * @param string[]|null $auths + */ + public function setAuths(?array $auths): self + { + $this->initialized['auths'] = true; + $this->auths = $auths; + + return $this; + } + + public function getCompiledAt(): ?\DateTime + { + return $this->compiledAt; + } + + public function setCompiledAt(?\DateTime $compiledAt): self + { + $this->initialized['compiledAt'] = true; + $this->compiledAt = $compiledAt; + + return $this; + } + + public function getCurrentVersion(): ?int + { + return $this->currentVersion; + } + + public function setCurrentVersion(?int $currentVersion): self + { + $this->initialized['currentVersion'] = true; + $this->currentVersion = $currentVersion; + + return $this; + } + /** * @return WorkflowJobRead[]|null */ @@ -78,6 +233,7 @@ public function getJobs(): ?array */ public function setJobs(?array $jobs): self { + $this->initialized['jobs'] = true; $this->jobs = $jobs; return $this; diff --git a/src/Model/WorkflowRemoveWorkflowCommandInputJsonld.php b/src/Model/WorkflowRemoveWorkflowCommandInputJsonld.php new file mode 100644 index 00000000..bf8da432 --- /dev/null +++ b/src/Model/WorkflowRemoveWorkflowCommandInputJsonld.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } +} diff --git a/src/Model/WorkflowRemoveWorkflowCommandJsonldRead.php b/src/Model/WorkflowRemoveWorkflowCommandJsonldRead.php new file mode 100644 index 00000000..9068f7a9 --- /dev/null +++ b/src/Model/WorkflowRemoveWorkflowCommandJsonldRead.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var mixed|null + */ + protected $context; + /** + * @var string|null + */ + protected $id; + /** + * @var string|null + */ + protected $type; + + /** + * @return mixed + */ + public function getContext() + { + return $this->context; + } + + /** + * @param mixed $context + */ + public function setContext($context): self + { + $this->initialized['context'] = true; + $this->context = $context; + + return $this; + } + + public function getId(): ?string + { + return $this->id; + } + + public function setId(?string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): self + { + $this->initialized['type'] = true; + $this->type = $type; + + return $this; + } +} diff --git a/src/Model/Workspace.php b/src/Model/Workspace.php index 7680282e..705e1e17 100644 --- a/src/Model/Workspace.php +++ b/src/Model/Workspace.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class Workspace +class Workspace extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var string|null */ @@ -28,6 +37,10 @@ class Workspace * @var string|null */ protected $organization; + /** + * @var Region|null + */ + protected $region; /** * @var string[]|null */ @@ -44,6 +57,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -56,6 +70,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -68,6 +83,7 @@ public function getSlug(): ?string public function setSlug(?string $slug): self { + $this->initialized['slug'] = true; $this->slug = $slug; return $this; @@ -80,11 +96,25 @@ public function getOrganization(): ?string public function setOrganization(?string $organization): self { + $this->initialized['organization'] = true; $this->organization = $organization; return $this; } + public function getRegion(): ?Region + { + return $this->region; + } + + public function setRegion(?Region $region): self + { + $this->initialized['region'] = true; + $this->region = $region; + + return $this; + } + /** * @return string[]|null */ @@ -98,6 +128,7 @@ public function getAuthorizations(): ?array */ public function setAuthorizations(?array $authorizations): self { + $this->initialized['authorizations'] = true; $this->authorizations = $authorizations; return $this; @@ -116,6 +147,7 @@ public function getUsers(): ?array */ public function setUsers(?array $users): self { + $this->initialized['users'] = true; $this->users = $users; return $this; diff --git a/src/Model/WorkspaceIdJsonld.php b/src/Model/WorkspaceIdJsonld.php deleted file mode 100644 index f70562b4..00000000 --- a/src/Model/WorkspaceIdJsonld.php +++ /dev/null @@ -1,66 +0,0 @@ -context; - } - - public function setContext(mixed $context): self - { - $this->context = $context; - - return $this; - } - - public function getId(): ?string - { - return $this->id; - } - - public function setId(?string $id): self - { - $this->id = $id; - - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): self - { - $this->type = $type; - - return $this; - } -} diff --git a/src/Model/WorkspaceJsonld.php b/src/Model/WorkspaceJsonld.php index 393f799e..0472af6e 100644 --- a/src/Model/WorkspaceJsonld.php +++ b/src/Model/WorkspaceJsonld.php @@ -10,8 +10,17 @@ namespace Gyroscops\Api\Model; -class WorkspaceJsonld +class WorkspaceJsonld extends \ArrayObject { + /** + * @var array + */ + protected $initialized = []; + + public function isInitialized($property): bool + { + return array_key_exists($property, $this->initialized); + } /** * @var mixed|null */ @@ -40,6 +49,10 @@ class WorkspaceJsonld * @var string|null */ protected $organization; + /** + * @var RegionJsonld|null + */ + protected $region; /** * @var string[]|null */ @@ -57,8 +70,12 @@ public function getContext() return $this->context; } - public function setContext(mixed $context): self + /** + * @param mixed $context + */ + public function setContext($context): self { + $this->initialized['context'] = true; $this->context = $context; return $this; @@ -71,6 +88,7 @@ public function getId(): ?string public function setId(?string $id): self { + $this->initialized['id'] = true; $this->id = $id; return $this; @@ -83,6 +101,7 @@ public function getType(): ?string public function setType(?string $type): self { + $this->initialized['type'] = true; $this->type = $type; return $this; @@ -95,6 +114,7 @@ public function getId2(): ?string public function setId2(?string $id2): self { + $this->initialized['id2'] = true; $this->id2 = $id2; return $this; @@ -107,6 +127,7 @@ public function getName(): ?string public function setName(?string $name): self { + $this->initialized['name'] = true; $this->name = $name; return $this; @@ -119,6 +140,7 @@ public function getSlug(): ?string public function setSlug(?string $slug): self { + $this->initialized['slug'] = true; $this->slug = $slug; return $this; @@ -131,11 +153,25 @@ public function getOrganization(): ?string public function setOrganization(?string $organization): self { + $this->initialized['organization'] = true; $this->organization = $organization; return $this; } + public function getRegion(): ?RegionJsonld + { + return $this->region; + } + + public function setRegion(?RegionJsonld $region): self + { + $this->initialized['region'] = true; + $this->region = $region; + + return $this; + } + /** * @return string[]|null */ @@ -149,6 +185,7 @@ public function getAuthorizations(): ?array */ public function setAuthorizations(?array $authorizations): self { + $this->initialized['authorizations'] = true; $this->authorizations = $authorizations; return $this; @@ -167,6 +204,7 @@ public function getUsers(): ?array */ public function setUsers(?array $users): self { + $this->initialized['users'] = true; $this->users = $users; return $this; diff --git a/src/Normalizer/AbstractCloudEngineJsonldNormalizer.php b/src/Normalizer/AbstractCloudEngineJsonldNormalizer.php new file mode 100644 index 00000000..76432d4c --- /dev/null +++ b/src/Normalizer/AbstractCloudEngineJsonldNormalizer.php @@ -0,0 +1,119 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId2($data['id']); + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId2(null); + } + if (\array_key_exists('environments', $data) && $data['environments'] !== null) { + $values = []; + foreach ($data['environments'] as $value) { + $values[] = $value; + } + $object->setEnvironments($values); + unset($data['environments']); + } elseif (\array_key_exists('environments', $data) && $data['environments'] === null) { + $object->setEnvironments(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('environments') && null !== $object->getEnvironments()) { + $values = []; + foreach ($object->getEnvironments() as $value) { + $values[] = $value; + } + $data['environments'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AbstractCloudEngineNormalizer.php b/src/Normalizer/AbstractCloudEngineNormalizer.php new file mode 100644 index 00000000..fbb9f045 --- /dev/null +++ b/src/Normalizer/AbstractCloudEngineNormalizer.php @@ -0,0 +1,101 @@ +setId($data['id']); + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('environments', $data) && $data['environments'] !== null) { + $values = []; + foreach ($data['environments'] as $value) { + $values[] = $value; + } + $object->setEnvironments($values); + unset($data['environments']); + } elseif (\array_key_exists('environments', $data) && $data['environments'] === null) { + $object->setEnvironments(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('environments') && null !== $object->getEnvironments()) { + $values = []; + foreach ($object->getEnvironments() as $value) { + $values[] = $value; + } + $data['environments'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AbstractPipelineJsonldNormalizer.php b/src/Normalizer/AbstractPipelineJsonldNormalizer.php index 12d6e8cd..2e3b92ad 100644 --- a/src/Normalizer/AbstractPipelineJsonldNormalizer.php +++ b/src/Normalizer/AbstractPipelineJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class AbstractPipelineJsonldNormalizer implements DenormalizerInterface, Normali use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\AbstractPipelineJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\AbstractPipelineJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\AbstractPipelineJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\AbstractPipelineJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,142 +52,66 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('code', $data) && null !== $data['code']) { - $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { - $object->setCode(null); - } - if (\array_key_exists('label', $data) && null !== $data['label']) { - $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && null === $data['label']) { - $object->setLabel(null); - } - if (\array_key_exists('runtimeType', $data) && null !== $data['runtimeType']) { - $object->setRuntimeType($data['runtimeType']); - } elseif (\array_key_exists('runtimeType', $data) && null === $data['runtimeType']) { - $object->setRuntimeType(null); - } - if (\array_key_exists('runtime', $data) && null !== $data['runtime']) { + if (\array_key_exists('steps', $data) && $data['steps'] !== null) { $values = []; - foreach ($data['runtime'] as $value) { + foreach ($data['steps'] as $value) { $values[] = $value; } - $object->setRuntime($values); - } elseif (\array_key_exists('runtime', $data) && null === $data['runtime']) { - $object->setRuntime(null); - } - if (\array_key_exists('autoload', $data) && null !== $data['autoload']) { - $values_1 = []; - foreach ($data['autoload'] as $value_1) { - $values_1[] = $value_1; - } - $object->setAutoload($values_1); - } elseif (\array_key_exists('autoload', $data) && null === $data['autoload']) { - $object->setAutoload(null); - } - if (\array_key_exists('packages', $data) && null !== $data['packages']) { - $values_2 = []; - foreach ($data['packages'] as $value_2) { - $values_2[] = $value_2; - } - $object->setPackages($values_2); - } elseif (\array_key_exists('packages', $data) && null === $data['packages']) { - $object->setPackages(null); - } - if (\array_key_exists('repositories', $data) && null !== $data['repositories']) { - $values_3 = []; - foreach ($data['repositories'] as $value_3) { - $values_3[] = $value_3; - } - $object->setRepositories($values_3); - } elseif (\array_key_exists('repositories', $data) && null === $data['repositories']) { - $object->setRepositories(null); - } - if (\array_key_exists('auths', $data) && null !== $data['auths']) { - $values_4 = []; - foreach ($data['auths'] as $value_4) { - $values_4[] = $value_4; - } - $object->setAuths($values_4); - } elseif (\array_key_exists('auths', $data) && null === $data['auths']) { - $object->setAuths(null); + $object->setSteps($values); + unset($data['steps']); + } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { + $object->setSteps(null); } - if (\array_key_exists('steps', $data) && null !== $data['steps']) { - $values_5 = []; - foreach ($data['steps'] as $value_5) { - $values_5[] = $value_5; + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; } - $object->setSteps($values_5); - } elseif (\array_key_exists('steps', $data) && null === $data['steps']) { - $object->setSteps(null); } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - $data['id'] = $object->getId2(); - $data['code'] = $object->getCode(); - $data['label'] = $object->getLabel(); - $data['runtimeType'] = $object->getRuntimeType(); - if (null !== $object->getRuntime()) { + if ($object->isInitialized('steps') && null !== $object->getSteps()) { $values = []; - foreach ($object->getRuntime() as $value) { + foreach ($object->getSteps() as $value) { $values[] = $value; } - $data['runtime'] = $values; - } - if (null !== $object->getPackages()) { - $values_1 = []; - foreach ($object->getPackages() as $value_1) { - $values_1[] = $value_1; - } - $data['packages'] = $values_1; - } - $values_2 = []; - foreach ($object->getRepositories() as $value_2) { - $values_2[] = $value_2; - } - $data['repositories'] = $values_2; - $values_3 = []; - foreach ($object->getAuths() as $value_3) { - $values_3[] = $value_3; + $data['steps'] = $values; } - $data['auths'] = $values_3; - if (null !== $object->getSteps()) { - $values_4 = []; - foreach ($object->getSteps() as $value_4) { - $values_4[] = $value_4; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; } - $data['steps'] = $values_4; } return $data; diff --git a/src/Normalizer/AbstractPipelineNormalizer.php b/src/Normalizer/AbstractPipelineNormalizer.php index 32c2a36d..163d16e8 100644 --- a/src/Normalizer/AbstractPipelineNormalizer.php +++ b/src/Normalizer/AbstractPipelineNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class AbstractPipelineNormalizer implements DenormalizerInterface, NormalizerInt use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\AbstractPipeline::class === $type; + return $type === 'Gyroscops\\Api\\Model\\AbstractPipeline'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\AbstractPipeline::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\AbstractPipeline'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,127 +52,48 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('code', $data) && null !== $data['code']) { - $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { - $object->setCode(null); - } - if (\array_key_exists('label', $data) && null !== $data['label']) { - $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && null === $data['label']) { - $object->setLabel(null); - } - if (\array_key_exists('runtimeType', $data) && null !== $data['runtimeType']) { - $object->setRuntimeType($data['runtimeType']); - } elseif (\array_key_exists('runtimeType', $data) && null === $data['runtimeType']) { - $object->setRuntimeType(null); - } - if (\array_key_exists('runtime', $data) && null !== $data['runtime']) { + if (\array_key_exists('steps', $data) && $data['steps'] !== null) { $values = []; - foreach ($data['runtime'] as $value) { + foreach ($data['steps'] as $value) { $values[] = $value; } - $object->setRuntime($values); - } elseif (\array_key_exists('runtime', $data) && null === $data['runtime']) { - $object->setRuntime(null); - } - if (\array_key_exists('autoload', $data) && null !== $data['autoload']) { - $values_1 = []; - foreach ($data['autoload'] as $value_1) { - $values_1[] = $value_1; - } - $object->setAutoload($values_1); - } elseif (\array_key_exists('autoload', $data) && null === $data['autoload']) { - $object->setAutoload(null); - } - if (\array_key_exists('packages', $data) && null !== $data['packages']) { - $values_2 = []; - foreach ($data['packages'] as $value_2) { - $values_2[] = $value_2; - } - $object->setPackages($values_2); - } elseif (\array_key_exists('packages', $data) && null === $data['packages']) { - $object->setPackages(null); - } - if (\array_key_exists('repositories', $data) && null !== $data['repositories']) { - $values_3 = []; - foreach ($data['repositories'] as $value_3) { - $values_3[] = $value_3; - } - $object->setRepositories($values_3); - } elseif (\array_key_exists('repositories', $data) && null === $data['repositories']) { - $object->setRepositories(null); - } - if (\array_key_exists('auths', $data) && null !== $data['auths']) { - $values_4 = []; - foreach ($data['auths'] as $value_4) { - $values_4[] = $value_4; - } - $object->setAuths($values_4); - } elseif (\array_key_exists('auths', $data) && null === $data['auths']) { - $object->setAuths(null); + $object->setSteps($values); + unset($data['steps']); + } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { + $object->setSteps(null); } - if (\array_key_exists('steps', $data) && null !== $data['steps']) { - $values_5 = []; - foreach ($data['steps'] as $value_5) { - $values_5[] = $value_5; + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; } - $object->setSteps($values_5); - } elseif (\array_key_exists('steps', $data) && null === $data['steps']) { - $object->setSteps(null); } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - $data['id'] = $object->getId(); - $data['code'] = $object->getCode(); - $data['label'] = $object->getLabel(); - $data['runtimeType'] = $object->getRuntimeType(); - if (null !== $object->getRuntime()) { + if ($object->isInitialized('steps') && null !== $object->getSteps()) { $values = []; - foreach ($object->getRuntime() as $value) { + foreach ($object->getSteps() as $value) { $values[] = $value; } - $data['runtime'] = $values; - } - if (null !== $object->getPackages()) { - $values_1 = []; - foreach ($object->getPackages() as $value_1) { - $values_1[] = $value_1; - } - $data['packages'] = $values_1; - } - $values_2 = []; - foreach ($object->getRepositories() as $value_2) { - $values_2[] = $value_2; - } - $data['repositories'] = $values_2; - $values_3 = []; - foreach ($object->getAuths() as $value_3) { - $values_3[] = $value_3; + $data['steps'] = $values; } - $data['auths'] = $values_3; - if (null !== $object->getSteps()) { - $values_4 = []; - foreach ($object->getSteps() as $value_4) { - $values_4[] = $value_4; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; } - $data['steps'] = $values_4; } return $data; diff --git a/src/Normalizer/ActionJsonldNormalizer.php b/src/Normalizer/ActionJsonldNormalizer.php new file mode 100644 index 00000000..203ed074 --- /dev/null +++ b/src/Normalizer/ActionJsonldNormalizer.php @@ -0,0 +1,111 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['configuration'] as $key => $value) { + $values[$key] = $value; + } + $object->setConfiguration($values); + unset($data['configuration']); + } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { + $object->setConfiguration(null); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getConfiguration() as $key => $value) { + $values[$key] = $value; + } + $data['configuration'] = $values; + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ActionJsonldReadNormalizer.php b/src/Normalizer/ActionJsonldReadNormalizer.php index 190e2299..a658abca 100644 --- a/src/Normalizer/ActionJsonldReadNormalizer.php +++ b/src/Normalizer/ActionJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ActionJsonldReadNormalizer implements DenormalizerInterface, NormalizerInt use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ActionJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ActionJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ActionJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ActionJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,40 +52,79 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } + if (\array_key_exists('code', $data) && $data['code'] !== null) { + $object->setCode($data['code']); + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + $object->setCode(null); + } + if (\array_key_exists('label', $data) && $data['label'] !== null) { + $object->setLabel($data['label']); + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + $object->setLabel(null); + } + if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { + $values = []; + foreach ($data['configuration'] as $value) { + $values[] = $value; + } + $object->setConfiguration($values); + unset($data['configuration']); + } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { + $object->setConfiguration(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - $data['id'] = $object->getId2(); + $data['code'] = $object->getCode(); + $data['label'] = $object->getLabel(); + $values = []; + foreach ($object->getConfiguration() as $value) { + $values[] = $value; + } + $data['configuration'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/ActionNormalizer.php b/src/Normalizer/ActionNormalizer.php new file mode 100644 index 00000000..a21f8f48 --- /dev/null +++ b/src/Normalizer/ActionNormalizer.php @@ -0,0 +1,93 @@ + $value) { + $values[$key] = $value; + } + $object->setConfiguration($values); + unset($data['configuration']); + } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { + $object->setConfiguration(null); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getConfiguration() as $key => $value) { + $values[$key] = $value; + } + $data['configuration'] = $values; + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ActionReadNormalizer.php b/src/Normalizer/ActionReadNormalizer.php index 38ae3b08..c19d0fef 100644 --- a/src/Normalizer/ActionReadNormalizer.php +++ b/src/Normalizer/ActionReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ActionReadNormalizer implements DenormalizerInterface, NormalizerInterface use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ActionRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ActionRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ActionRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ActionRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,25 +52,61 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } + if (\array_key_exists('code', $data) && $data['code'] !== null) { + $object->setCode($data['code']); + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + $object->setCode(null); + } + if (\array_key_exists('label', $data) && $data['label'] !== null) { + $object->setLabel($data['label']); + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + $object->setLabel(null); + } + if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { + $values = []; + foreach ($data['configuration'] as $value) { + $values[] = $value; + } + $object->setConfiguration($values); + unset($data['configuration']); + } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { + $object->setConfiguration(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - $data['id'] = $object->getId(); + $data['code'] = $object->getCode(); + $data['label'] = $object->getLabel(); + $values = []; + foreach ($object->getConfiguration() as $value) { + $values[] = $value; + } + $data['configuration'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/AddPipelineComposerAuthCommandInputJsonldNormalizer.php b/src/Normalizer/AddPipelineComposerAuthCommandInputJsonldNormalizer.php deleted file mode 100644 index a17e8170..00000000 --- a/src/Normalizer/AddPipelineComposerAuthCommandInputJsonldNormalizer.php +++ /dev/null @@ -1,104 +0,0 @@ -setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { - $object->setContext(null); - } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { - $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('url', $data) && null !== $data['url']) { - $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && null === $data['url']) { - $object->setUrl(null); - } - if (\array_key_exists('token', $data) && null !== $data['token']) { - $object->setToken($data['token']); - } elseif (\array_key_exists('token', $data) && null === $data['token']) { - $object->setToken(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getUrl()) { - $data['url'] = $object->getUrl(); - } - if (null !== $object->getToken()) { - $data['token'] = $object->getToken(); - } - - return $data; - } -} diff --git a/src/Normalizer/AddPipelineComposerAuthCommandInputNormalizer.php b/src/Normalizer/AddPipelineComposerAuthCommandInputNormalizer.php deleted file mode 100644 index ae5c3540..00000000 --- a/src/Normalizer/AddPipelineComposerAuthCommandInputNormalizer.php +++ /dev/null @@ -1,89 +0,0 @@ -setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && null === $data['url']) { - $object->setUrl(null); - } - if (\array_key_exists('token', $data) && null !== $data['token']) { - $object->setToken($data['token']); - } elseif (\array_key_exists('token', $data) && null === $data['token']) { - $object->setToken(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getUrl()) { - $data['url'] = $object->getUrl(); - } - if (null !== $object->getToken()) { - $data['token'] = $object->getToken(); - } - - return $data; - } -} diff --git a/src/Normalizer/AddPipelineComposerRepositoryCommandInputJsonldNormalizer.php b/src/Normalizer/AddPipelineComposerRepositoryCommandInputJsonldNormalizer.php deleted file mode 100644 index d7691b5b..00000000 --- a/src/Normalizer/AddPipelineComposerRepositoryCommandInputJsonldNormalizer.php +++ /dev/null @@ -1,112 +0,0 @@ -setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { - $object->setContext(null); - } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { - $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('name', $data) && null !== $data['name']) { - $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { - $object->setName(null); - } - if (\array_key_exists('type', $data) && null !== $data['type']) { - $object->setType2($data['type']); - } elseif (\array_key_exists('type', $data) && null === $data['type']) { - $object->setType2(null); - } - if (\array_key_exists('url', $data) && null !== $data['url']) { - $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && null === $data['url']) { - $object->setUrl(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getName()) { - $data['name'] = $object->getName(); - } - if (null !== $object->getType2()) { - $data['type'] = $object->getType2(); - } - if (null !== $object->getUrl()) { - $data['url'] = $object->getUrl(); - } - - return $data; - } -} diff --git a/src/Normalizer/AddPipelineComposerRepositoryCommandInputNormalizer.php b/src/Normalizer/AddPipelineComposerRepositoryCommandInputNormalizer.php deleted file mode 100644 index 470ad98c..00000000 --- a/src/Normalizer/AddPipelineComposerRepositoryCommandInputNormalizer.php +++ /dev/null @@ -1,97 +0,0 @@ -setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { - $object->setName(null); - } - if (\array_key_exists('type', $data) && null !== $data['type']) { - $object->setType($data['type']); - } elseif (\array_key_exists('type', $data) && null === $data['type']) { - $object->setType(null); - } - if (\array_key_exists('url', $data) && null !== $data['url']) { - $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && null === $data['url']) { - $object->setUrl(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getName()) { - $data['name'] = $object->getName(); - } - if (null !== $object->getType()) { - $data['type'] = $object->getType(); - } - if (null !== $object->getUrl()) { - $data['url'] = $object->getUrl(); - } - - return $data; - } -} diff --git a/src/Normalizer/AkeneoInstanceAkeneoInstanceInputJsonldNormalizer.php b/src/Normalizer/AkeneoInstanceAkeneoInstanceInputJsonldNormalizer.php index bb16ca99..bd2531aa 100644 --- a/src/Normalizer/AkeneoInstanceAkeneoInstanceInputJsonldNormalizer.php +++ b/src/Normalizer/AkeneoInstanceAkeneoInstanceInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class AkeneoInstanceAkeneoInstanceInputJsonldNormalizer implements DenormalizerI use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\AkeneoInstanceAkeneoInstanceInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\AkeneoInstanceAkeneoInstanceInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\AkeneoInstanceAkeneoInstanceInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\AkeneoInstanceAkeneoInstanceInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,58 +52,71 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('pimUrl', $data) && null !== $data['pimUrl']) { + if (\array_key_exists('pimUrl', $data) && $data['pimUrl'] !== null) { $object->setPimUrl($data['pimUrl']); - } elseif (\array_key_exists('pimUrl', $data) && null === $data['pimUrl']) { + unset($data['pimUrl']); + } elseif (\array_key_exists('pimUrl', $data) && $data['pimUrl'] === null) { $object->setPimUrl(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { + if (\array_key_exists('organization', $data) && $data['organization'] !== null) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { + unset($data['organization']); + } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { $object->setOrganization(null); } - if (\array_key_exists('secret', $data) && null !== $data['secret']) { - $object->setSecret($this->denormalizer->denormalize($data['secret'], \Gyroscops\Api\Model\CreateSecretInputJsonld::class, 'json', $context)); - } elseif (\array_key_exists('secret', $data) && null === $data['secret']) { + if (\array_key_exists('secret', $data) && $data['secret'] !== null) { + $object->setSecret($this->denormalizer->denormalize($data['secret'], 'Gyroscops\\Api\\Model\\CreateSecretInputJsonld', 'json', $context)); + unset($data['secret']); + } elseif (\array_key_exists('secret', $data) && $data['secret'] === null) { $object->setSecret(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getPimUrl()) { + if ($object->isInitialized('pimUrl') && null !== $object->getPimUrl()) { $data['pimUrl'] = $object->getPimUrl(); } - if (null !== $object->getOrganization()) { + if ($object->isInitialized('organization') && null !== $object->getOrganization()) { $data['organization'] = $object->getOrganization(); } - if (null !== $object->getSecret()) { + if ($object->isInitialized('secret') && null !== $object->getSecret()) { $data['secret'] = $this->normalizer->normalize($object->getSecret(), 'json', $context); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/AkeneoInstanceAkeneoInstanceInputNormalizer.php b/src/Normalizer/AkeneoInstanceAkeneoInstanceInputNormalizer.php index e2a121c9..f1ec8da1 100644 --- a/src/Normalizer/AkeneoInstanceAkeneoInstanceInputNormalizer.php +++ b/src/Normalizer/AkeneoInstanceAkeneoInstanceInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class AkeneoInstanceAkeneoInstanceInputNormalizer implements DenormalizerInterfa use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\AkeneoInstanceAkeneoInstanceInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\AkeneoInstanceAkeneoInstanceInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\AkeneoInstanceAkeneoInstanceInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\AkeneoInstanceAkeneoInstanceInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,43 +52,53 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('pimUrl', $data) && null !== $data['pimUrl']) { + if (\array_key_exists('pimUrl', $data) && $data['pimUrl'] !== null) { $object->setPimUrl($data['pimUrl']); - } elseif (\array_key_exists('pimUrl', $data) && null === $data['pimUrl']) { + unset($data['pimUrl']); + } elseif (\array_key_exists('pimUrl', $data) && $data['pimUrl'] === null) { $object->setPimUrl(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { + if (\array_key_exists('organization', $data) && $data['organization'] !== null) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { + unset($data['organization']); + } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { $object->setOrganization(null); } - if (\array_key_exists('secret', $data) && null !== $data['secret']) { - $object->setSecret($this->denormalizer->denormalize($data['secret'], \Gyroscops\Api\Model\CreateSecretInput::class, 'json', $context)); - } elseif (\array_key_exists('secret', $data) && null === $data['secret']) { + if (\array_key_exists('secret', $data) && $data['secret'] !== null) { + $object->setSecret($this->denormalizer->denormalize($data['secret'], 'Gyroscops\\Api\\Model\\CreateSecretInput', 'json', $context)); + unset($data['secret']); + } elseif (\array_key_exists('secret', $data) && $data['secret'] === null) { $object->setSecret(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getPimUrl()) { + if ($object->isInitialized('pimUrl') && null !== $object->getPimUrl()) { $data['pimUrl'] = $object->getPimUrl(); } - if (null !== $object->getOrganization()) { + if ($object->isInitialized('organization') && null !== $object->getOrganization()) { $data['organization'] = $object->getOrganization(); } - if (null !== $object->getSecret()) { + if ($object->isInitialized('secret') && null !== $object->getSecret()) { $data['secret'] = $this->normalizer->normalize($object->getSecret(), 'json', $context); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/AkeneoInstanceJsonldNormalizer.php b/src/Normalizer/AkeneoInstanceJsonldNormalizer.php index b1fa637b..b4b9d358 100644 --- a/src/Normalizer/AkeneoInstanceJsonldNormalizer.php +++ b/src/Normalizer/AkeneoInstanceJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class AkeneoInstanceJsonldNormalizer implements DenormalizerInterface, Normalize use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\AkeneoInstanceJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\AkeneoInstanceJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\AkeneoInstanceJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\AkeneoInstanceJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,103 +52,120 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('url', $data) && null !== $data['url']) { + if (\array_key_exists('url', $data) && $data['url'] !== null) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && null === $data['url']) { + unset($data['url']); + } elseif (\array_key_exists('url', $data) && $data['url'] === null) { $object->setUrl(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { + if (\array_key_exists('organization', $data) && $data['organization'] !== null) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { + unset($data['organization']); + } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { + if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { + unset($data['workspace']); + } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { $object->setWorkspace(null); } - if (\array_key_exists('secret', $data) && null !== $data['secret']) { + if (\array_key_exists('secret', $data) && $data['secret'] !== null) { $object->setSecret($data['secret']); - } elseif (\array_key_exists('secret', $data) && null === $data['secret']) { + unset($data['secret']); + } elseif (\array_key_exists('secret', $data) && $data['secret'] === null) { $object->setSecret(null); } - if (\array_key_exists('linkedAccounts', $data) && null !== $data['linkedAccounts']) { + if (\array_key_exists('linkedAccounts', $data) && $data['linkedAccounts'] !== null) { $values = []; foreach ($data['linkedAccounts'] as $value) { $values[] = $value; } $object->setLinkedAccounts($values); - } elseif (\array_key_exists('linkedAccounts', $data) && null === $data['linkedAccounts']) { + unset($data['linkedAccounts']); + } elseif (\array_key_exists('linkedAccounts', $data) && $data['linkedAccounts'] === null) { $object->setLinkedAccounts(null); } - if (\array_key_exists('oauthTokens', $data) && null !== $data['oauthTokens']) { + if (\array_key_exists('oauthTokens', $data) && $data['oauthTokens'] !== null) { $values_1 = []; foreach ($data['oauthTokens'] as $value_1) { $values_1[] = $value_1; } $object->setOauthTokens($values_1); - } elseif (\array_key_exists('oauthTokens', $data) && null === $data['oauthTokens']) { + unset($data['oauthTokens']); + } elseif (\array_key_exists('oauthTokens', $data) && $data['oauthTokens'] === null) { $object->setOauthTokens(null); } + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getUrl()) { + if ($object->isInitialized('url') && null !== $object->getUrl()) { $data['url'] = $object->getUrl(); } - if (null !== $object->getOrganization()) { + if ($object->isInitialized('organization') && null !== $object->getOrganization()) { $data['organization'] = $object->getOrganization(); } - if (null !== $object->getWorkspace()) { + if ($object->isInitialized('workspace') && null !== $object->getWorkspace()) { $data['workspace'] = $object->getWorkspace(); } - if (null !== $object->getSecret()) { + if ($object->isInitialized('secret') && null !== $object->getSecret()) { $data['secret'] = $object->getSecret(); } - if (null !== $object->getLinkedAccounts()) { + if ($object->isInitialized('linkedAccounts') && null !== $object->getLinkedAccounts()) { $values = []; foreach ($object->getLinkedAccounts() as $value) { $values[] = $value; } $data['linkedAccounts'] = $values; } - if (null !== $object->getOauthTokens()) { + if ($object->isInitialized('oauthTokens') && null !== $object->getOauthTokens()) { $values_1 = []; foreach ($object->getOauthTokens() as $value_1) { $values_1[] = $value_1; } $data['oauthTokens'] = $values_1; } + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; + } + } return $data; } diff --git a/src/Normalizer/AkeneoInstanceNormalizer.php b/src/Normalizer/AkeneoInstanceNormalizer.php index 7f30d51f..d2806f28 100644 --- a/src/Normalizer/AkeneoInstanceNormalizer.php +++ b/src/Normalizer/AkeneoInstanceNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class AkeneoInstanceNormalizer implements DenormalizerInterface, NormalizerInter use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\AkeneoInstance::class === $type; + return $type === 'Gyroscops\\Api\\Model\\AkeneoInstance'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\AkeneoInstance::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\AkeneoInstance'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,88 +52,102 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('url', $data) && null !== $data['url']) { + if (\array_key_exists('url', $data) && $data['url'] !== null) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && null === $data['url']) { + unset($data['url']); + } elseif (\array_key_exists('url', $data) && $data['url'] === null) { $object->setUrl(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { + if (\array_key_exists('organization', $data) && $data['organization'] !== null) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { + unset($data['organization']); + } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { + if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { + unset($data['workspace']); + } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { $object->setWorkspace(null); } - if (\array_key_exists('secret', $data) && null !== $data['secret']) { + if (\array_key_exists('secret', $data) && $data['secret'] !== null) { $object->setSecret($data['secret']); - } elseif (\array_key_exists('secret', $data) && null === $data['secret']) { + unset($data['secret']); + } elseif (\array_key_exists('secret', $data) && $data['secret'] === null) { $object->setSecret(null); } - if (\array_key_exists('linkedAccounts', $data) && null !== $data['linkedAccounts']) { + if (\array_key_exists('linkedAccounts', $data) && $data['linkedAccounts'] !== null) { $values = []; foreach ($data['linkedAccounts'] as $value) { $values[] = $value; } $object->setLinkedAccounts($values); - } elseif (\array_key_exists('linkedAccounts', $data) && null === $data['linkedAccounts']) { + unset($data['linkedAccounts']); + } elseif (\array_key_exists('linkedAccounts', $data) && $data['linkedAccounts'] === null) { $object->setLinkedAccounts(null); } - if (\array_key_exists('oauthTokens', $data) && null !== $data['oauthTokens']) { + if (\array_key_exists('oauthTokens', $data) && $data['oauthTokens'] !== null) { $values_1 = []; foreach ($data['oauthTokens'] as $value_1) { $values_1[] = $value_1; } $object->setOauthTokens($values_1); - } elseif (\array_key_exists('oauthTokens', $data) && null === $data['oauthTokens']) { + unset($data['oauthTokens']); + } elseif (\array_key_exists('oauthTokens', $data) && $data['oauthTokens'] === null) { $object->setOauthTokens(null); } + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getUrl()) { + if ($object->isInitialized('url') && null !== $object->getUrl()) { $data['url'] = $object->getUrl(); } - if (null !== $object->getOrganization()) { + if ($object->isInitialized('organization') && null !== $object->getOrganization()) { $data['organization'] = $object->getOrganization(); } - if (null !== $object->getWorkspace()) { + if ($object->isInitialized('workspace') && null !== $object->getWorkspace()) { $data['workspace'] = $object->getWorkspace(); } - if (null !== $object->getSecret()) { + if ($object->isInitialized('secret') && null !== $object->getSecret()) { $data['secret'] = $object->getSecret(); } - if (null !== $object->getLinkedAccounts()) { + if ($object->isInitialized('linkedAccounts') && null !== $object->getLinkedAccounts()) { $values = []; foreach ($object->getLinkedAccounts() as $value) { $values[] = $value; } $data['linkedAccounts'] = $values; } - if (null !== $object->getOauthTokens()) { + if ($object->isInitialized('oauthTokens') && null !== $object->getOauthTokens()) { $values_1 = []; foreach ($object->getOauthTokens() as $value_1) { $values_1[] = $value_1; } $data['oauthTokens'] = $values_1; } + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; + } + } return $data; } diff --git a/src/Normalizer/AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonldNormalizer.php b/src/Normalizer/AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonldNormalizer.php index f5501695..25a34dd0 100644 --- a/src/Normalizer/AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonldNormalizer.php +++ b/src/Normalizer/AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonldNormalizer implements De use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,66 +52,80 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('akeneoInstance', $data) && null !== $data['akeneoInstance']) { + if (\array_key_exists('akeneoInstance', $data) && $data['akeneoInstance'] !== null) { $object->setAkeneoInstance($data['akeneoInstance']); - } elseif (\array_key_exists('akeneoInstance', $data) && null === $data['akeneoInstance']) { + unset($data['akeneoInstance']); + } elseif (\array_key_exists('akeneoInstance', $data) && $data['akeneoInstance'] === null) { $object->setAkeneoInstance(null); } - if (\array_key_exists('tokenId', $data) && null !== $data['tokenId']) { + if (\array_key_exists('tokenId', $data) && $data['tokenId'] !== null) { $object->setTokenId($data['tokenId']); - } elseif (\array_key_exists('tokenId', $data) && null === $data['tokenId']) { + unset($data['tokenId']); + } elseif (\array_key_exists('tokenId', $data) && $data['tokenId'] === null) { $object->setTokenId(null); } - if (\array_key_exists('akeneoUserId', $data) && null !== $data['akeneoUserId']) { + if (\array_key_exists('akeneoUserId', $data) && $data['akeneoUserId'] !== null) { $object->setAkeneoUserId($data['akeneoUserId']); - } elseif (\array_key_exists('akeneoUserId', $data) && null === $data['akeneoUserId']) { + unset($data['akeneoUserId']); + } elseif (\array_key_exists('akeneoUserId', $data) && $data['akeneoUserId'] === null) { $object->setAkeneoUserId(null); } - if (\array_key_exists('token', $data) && null !== $data['token']) { + if (\array_key_exists('token', $data) && $data['token'] !== null) { $object->setToken($data['token']); - } elseif (\array_key_exists('token', $data) && null === $data['token']) { + unset($data['token']); + } elseif (\array_key_exists('token', $data) && $data['token'] === null) { $object->setToken(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getAkeneoInstance()) { + if ($object->isInitialized('akeneoInstance') && null !== $object->getAkeneoInstance()) { $data['akeneoInstance'] = $object->getAkeneoInstance(); } - if (null !== $object->getTokenId()) { + if ($object->isInitialized('tokenId') && null !== $object->getTokenId()) { $data['tokenId'] = $object->getTokenId(); } - if (null !== $object->getAkeneoUserId()) { + if ($object->isInitialized('akeneoUserId') && null !== $object->getAkeneoUserId()) { $data['akeneoUserId'] = $object->getAkeneoUserId(); } - if (null !== $object->getToken()) { + if ($object->isInitialized('token') && null !== $object->getToken()) { $data['token'] = $object->getToken(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/AkeneoLinkedAccountAkeneoLinkedAccountsInputNormalizer.php b/src/Normalizer/AkeneoLinkedAccountAkeneoLinkedAccountsInputNormalizer.php index f73322e6..bda974d3 100644 --- a/src/Normalizer/AkeneoLinkedAccountAkeneoLinkedAccountsInputNormalizer.php +++ b/src/Normalizer/AkeneoLinkedAccountAkeneoLinkedAccountsInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class AkeneoLinkedAccountAkeneoLinkedAccountsInputNormalizer implements Denormal use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\AkeneoLinkedAccountAkeneoLinkedAccountsInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\AkeneoLinkedAccountAkeneoLinkedAccountsInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\AkeneoLinkedAccountAkeneoLinkedAccountsInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\AkeneoLinkedAccountAkeneoLinkedAccountsInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,51 +52,62 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('akeneoInstance', $data) && null !== $data['akeneoInstance']) { + if (\array_key_exists('akeneoInstance', $data) && $data['akeneoInstance'] !== null) { $object->setAkeneoInstance($data['akeneoInstance']); - } elseif (\array_key_exists('akeneoInstance', $data) && null === $data['akeneoInstance']) { + unset($data['akeneoInstance']); + } elseif (\array_key_exists('akeneoInstance', $data) && $data['akeneoInstance'] === null) { $object->setAkeneoInstance(null); } - if (\array_key_exists('tokenId', $data) && null !== $data['tokenId']) { + if (\array_key_exists('tokenId', $data) && $data['tokenId'] !== null) { $object->setTokenId($data['tokenId']); - } elseif (\array_key_exists('tokenId', $data) && null === $data['tokenId']) { + unset($data['tokenId']); + } elseif (\array_key_exists('tokenId', $data) && $data['tokenId'] === null) { $object->setTokenId(null); } - if (\array_key_exists('akeneoUserId', $data) && null !== $data['akeneoUserId']) { + if (\array_key_exists('akeneoUserId', $data) && $data['akeneoUserId'] !== null) { $object->setAkeneoUserId($data['akeneoUserId']); - } elseif (\array_key_exists('akeneoUserId', $data) && null === $data['akeneoUserId']) { + unset($data['akeneoUserId']); + } elseif (\array_key_exists('akeneoUserId', $data) && $data['akeneoUserId'] === null) { $object->setAkeneoUserId(null); } - if (\array_key_exists('token', $data) && null !== $data['token']) { + if (\array_key_exists('token', $data) && $data['token'] !== null) { $object->setToken($data['token']); - } elseif (\array_key_exists('token', $data) && null === $data['token']) { + unset($data['token']); + } elseif (\array_key_exists('token', $data) && $data['token'] === null) { $object->setToken(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getAkeneoInstance()) { + if ($object->isInitialized('akeneoInstance') && null !== $object->getAkeneoInstance()) { $data['akeneoInstance'] = $object->getAkeneoInstance(); } - if (null !== $object->getTokenId()) { + if ($object->isInitialized('tokenId') && null !== $object->getTokenId()) { $data['tokenId'] = $object->getTokenId(); } - if (null !== $object->getAkeneoUserId()) { + if ($object->isInitialized('akeneoUserId') && null !== $object->getAkeneoUserId()) { $data['akeneoUserId'] = $object->getAkeneoUserId(); } - if (null !== $object->getToken()) { + if ($object->isInitialized('token') && null !== $object->getToken()) { $data['token'] = $object->getToken(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/AkeneoLinkedAccountJsonldNormalizer.php b/src/Normalizer/AkeneoLinkedAccountJsonldNormalizer.php index ca0ee9a9..58dac2e4 100644 --- a/src/Normalizer/AkeneoLinkedAccountJsonldNormalizer.php +++ b/src/Normalizer/AkeneoLinkedAccountJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class AkeneoLinkedAccountJsonldNormalizer implements DenormalizerInterface, Norm use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\AkeneoLinkedAccountJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\AkeneoLinkedAccountJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\AkeneoLinkedAccountJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\AkeneoLinkedAccountJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,75 +52,91 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('user', $data) && null !== $data['user']) { + if (\array_key_exists('user', $data) && $data['user'] !== null) { $object->setUser($data['user']); - } elseif (\array_key_exists('user', $data) && null === $data['user']) { + unset($data['user']); + } elseif (\array_key_exists('user', $data) && $data['user'] === null) { $object->setUser(null); } - if (\array_key_exists('tokenId', $data) && null !== $data['tokenId']) { + if (\array_key_exists('tokenId', $data) && $data['tokenId'] !== null) { $object->setTokenId($data['tokenId']); - } elseif (\array_key_exists('tokenId', $data) && null === $data['tokenId']) { + unset($data['tokenId']); + } elseif (\array_key_exists('tokenId', $data) && $data['tokenId'] === null) { $object->setTokenId(null); } - if (\array_key_exists('akeneoUserId', $data) && null !== $data['akeneoUserId']) { + if (\array_key_exists('akeneoUserId', $data) && $data['akeneoUserId'] !== null) { $object->setAkeneoUserId($data['akeneoUserId']); - } elseif (\array_key_exists('akeneoUserId', $data) && null === $data['akeneoUserId']) { + unset($data['akeneoUserId']); + } elseif (\array_key_exists('akeneoUserId', $data) && $data['akeneoUserId'] === null) { $object->setAkeneoUserId(null); } - if (\array_key_exists('token', $data) && null !== $data['token']) { + if (\array_key_exists('token', $data) && $data['token'] !== null) { $object->setToken($data['token']); - } elseif (\array_key_exists('token', $data) && null === $data['token']) { + unset($data['token']); + } elseif (\array_key_exists('token', $data) && $data['token'] === null) { $object->setToken(null); } - if (\array_key_exists('akeneoInstance', $data) && null !== $data['akeneoInstance']) { + if (\array_key_exists('akeneoInstance', $data) && $data['akeneoInstance'] !== null) { $object->setAkeneoInstance($data['akeneoInstance']); - } elseif (\array_key_exists('akeneoInstance', $data) && null === $data['akeneoInstance']) { + unset($data['akeneoInstance']); + } elseif (\array_key_exists('akeneoInstance', $data) && $data['akeneoInstance'] === null) { $object->setAkeneoInstance(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; $data['user'] = $object->getUser(); - if (null !== $object->getTokenId()) { + if ($object->isInitialized('tokenId') && null !== $object->getTokenId()) { $data['tokenId'] = $object->getTokenId(); } - if (null !== $object->getAkeneoUserId()) { + if ($object->isInitialized('akeneoUserId') && null !== $object->getAkeneoUserId()) { $data['akeneoUserId'] = $object->getAkeneoUserId(); } $data['token'] = $object->getToken(); - if (null !== $object->getAkeneoInstance()) { + if ($object->isInitialized('akeneoInstance') && null !== $object->getAkeneoInstance()) { $data['akeneoInstance'] = $object->getAkeneoInstance(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/AkeneoLinkedAccountNormalizer.php b/src/Normalizer/AkeneoLinkedAccountNormalizer.php index 21dca646..c88b1ea6 100644 --- a/src/Normalizer/AkeneoLinkedAccountNormalizer.php +++ b/src/Normalizer/AkeneoLinkedAccountNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class AkeneoLinkedAccountNormalizer implements DenormalizerInterface, Normalizer use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\AkeneoLinkedAccount::class === $type; + return $type === 'Gyroscops\\Api\\Model\\AkeneoLinkedAccount'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\AkeneoLinkedAccount::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\AkeneoLinkedAccount'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,60 +52,73 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('user', $data) && null !== $data['user']) { + if (\array_key_exists('user', $data) && $data['user'] !== null) { $object->setUser($data['user']); - } elseif (\array_key_exists('user', $data) && null === $data['user']) { + unset($data['user']); + } elseif (\array_key_exists('user', $data) && $data['user'] === null) { $object->setUser(null); } - if (\array_key_exists('tokenId', $data) && null !== $data['tokenId']) { + if (\array_key_exists('tokenId', $data) && $data['tokenId'] !== null) { $object->setTokenId($data['tokenId']); - } elseif (\array_key_exists('tokenId', $data) && null === $data['tokenId']) { + unset($data['tokenId']); + } elseif (\array_key_exists('tokenId', $data) && $data['tokenId'] === null) { $object->setTokenId(null); } - if (\array_key_exists('akeneoUserId', $data) && null !== $data['akeneoUserId']) { + if (\array_key_exists('akeneoUserId', $data) && $data['akeneoUserId'] !== null) { $object->setAkeneoUserId($data['akeneoUserId']); - } elseif (\array_key_exists('akeneoUserId', $data) && null === $data['akeneoUserId']) { + unset($data['akeneoUserId']); + } elseif (\array_key_exists('akeneoUserId', $data) && $data['akeneoUserId'] === null) { $object->setAkeneoUserId(null); } - if (\array_key_exists('token', $data) && null !== $data['token']) { + if (\array_key_exists('token', $data) && $data['token'] !== null) { $object->setToken($data['token']); - } elseif (\array_key_exists('token', $data) && null === $data['token']) { + unset($data['token']); + } elseif (\array_key_exists('token', $data) && $data['token'] === null) { $object->setToken(null); } - if (\array_key_exists('akeneoInstance', $data) && null !== $data['akeneoInstance']) { + if (\array_key_exists('akeneoInstance', $data) && $data['akeneoInstance'] !== null) { $object->setAkeneoInstance($data['akeneoInstance']); - } elseif (\array_key_exists('akeneoInstance', $data) && null === $data['akeneoInstance']) { + unset($data['akeneoInstance']); + } elseif (\array_key_exists('akeneoInstance', $data) && $data['akeneoInstance'] === null) { $object->setAkeneoInstance(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; $data['user'] = $object->getUser(); - if (null !== $object->getTokenId()) { + if ($object->isInitialized('tokenId') && null !== $object->getTokenId()) { $data['tokenId'] = $object->getTokenId(); } - if (null !== $object->getAkeneoUserId()) { + if ($object->isInitialized('akeneoUserId') && null !== $object->getAkeneoUserId()) { $data['akeneoUserId'] = $object->getAkeneoUserId(); } $data['token'] = $object->getToken(); - if (null !== $object->getAkeneoInstance()) { + if ($object->isInitialized('akeneoInstance') && null !== $object->getAkeneoInstance()) { $data['akeneoInstance'] = $object->getAkeneoInstance(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/AkeneoOauthTokenJsonldReadNormalizer.php b/src/Normalizer/AkeneoOauthTokenJsonldReadNormalizer.php index 0a633511..1338ed20 100644 --- a/src/Normalizer/AkeneoOauthTokenJsonldReadNormalizer.php +++ b/src/Normalizer/AkeneoOauthTokenJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class AkeneoOauthTokenJsonldReadNormalizer implements DenormalizerInterface, Nor use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\AkeneoOauthTokenJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\AkeneoOauthTokenJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\AkeneoOauthTokenJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\AkeneoOauthTokenJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,60 +52,69 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('url', $data) && null !== $data['url']) { + if (\array_key_exists('url', $data) && $data['url'] !== null) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && null === $data['url']) { + unset($data['url']); + } elseif (\array_key_exists('url', $data) && $data['url'] === null) { $object->setUrl(null); } - if (\array_key_exists('scopes', $data) && null !== $data['scopes']) { + if (\array_key_exists('scopes', $data) && $data['scopes'] !== null) { $values = []; foreach ($data['scopes'] as $value) { $values[] = $value; } $object->setScopes($values); - } elseif (\array_key_exists('scopes', $data) && null === $data['scopes']) { + unset($data['scopes']); + } elseif (\array_key_exists('scopes', $data) && $data['scopes'] === null) { $object->setScopes(null); } - if (\array_key_exists('responseType', $data) && null !== $data['responseType']) { + if (\array_key_exists('responseType', $data) && $data['responseType'] !== null) { $object->setResponseType($data['responseType']); - } elseif (\array_key_exists('responseType', $data) && null === $data['responseType']) { + unset($data['responseType']); + } elseif (\array_key_exists('responseType', $data) && $data['responseType'] === null) { $object->setResponseType(null); } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; $data['url'] = $object->getUrl(); - if (null !== $object->getScopes()) { + if ($object->isInitialized('scopes') && null !== $object->getScopes()) { $values = []; foreach ($object->getScopes() as $value) { $values[] = $value; @@ -115,6 +122,11 @@ public function normalize($object, $format = null, array $context = []) $data['scopes'] = $values; } $data['responseType'] = $object->getResponseType(); + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/AkeneoOauthTokenOauthStateInputJsonldNormalizer.php b/src/Normalizer/AkeneoOauthTokenOauthStateInputJsonldNormalizer.php index 1afba6b3..dd89f17f 100644 --- a/src/Normalizer/AkeneoOauthTokenOauthStateInputJsonldNormalizer.php +++ b/src/Normalizer/AkeneoOauthTokenOauthStateInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class AkeneoOauthTokenOauthStateInputJsonldNormalizer implements DenormalizerInt use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\AkeneoOauthTokenOauthStateInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\AkeneoOauthTokenOauthStateInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,58 +52,70 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('url', $data) && null !== $data['url']) { + if (\array_key_exists('url', $data) && $data['url'] !== null) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && null === $data['url']) { + unset($data['url']); + } elseif (\array_key_exists('url', $data) && $data['url'] === null) { $object->setUrl(null); } - if (\array_key_exists('scope', $data) && null !== $data['scope']) { + if (\array_key_exists('scope', $data) && $data['scope'] !== null) { $values = []; foreach ($data['scope'] as $value) { $values[] = $value; } $object->setScope($values); - } elseif (\array_key_exists('scope', $data) && null === $data['scope']) { + unset($data['scope']); + } elseif (\array_key_exists('scope', $data) && $data['scope'] === null) { $object->setScope(null); } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getUrl()) { + if ($object->isInitialized('url') && null !== $object->getUrl()) { $data['url'] = $object->getUrl(); } - if (null !== $object->getScope()) { + if ($object->isInitialized('scope') && null !== $object->getScope()) { $values = []; foreach ($object->getScope() as $value) { $values[] = $value; } $data['scope'] = $values; } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/AkeneoOauthTokenOauthStateInputNormalizer.php b/src/Normalizer/AkeneoOauthTokenOauthStateInputNormalizer.php index d19cf684..19125ff5 100644 --- a/src/Normalizer/AkeneoOauthTokenOauthStateInputNormalizer.php +++ b/src/Normalizer/AkeneoOauthTokenOauthStateInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class AkeneoOauthTokenOauthStateInputNormalizer implements DenormalizerInterface use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\AkeneoOauthTokenOauthStateInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\AkeneoOauthTokenOauthStateInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,43 +52,52 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('url', $data) && null !== $data['url']) { + if (\array_key_exists('url', $data) && $data['url'] !== null) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && null === $data['url']) { + unset($data['url']); + } elseif (\array_key_exists('url', $data) && $data['url'] === null) { $object->setUrl(null); } - if (\array_key_exists('scope', $data) && null !== $data['scope']) { + if (\array_key_exists('scope', $data) && $data['scope'] !== null) { $values = []; foreach ($data['scope'] as $value) { $values[] = $value; } $object->setScope($values); - } elseif (\array_key_exists('scope', $data) && null === $data['scope']) { + unset($data['scope']); + } elseif (\array_key_exists('scope', $data) && $data['scope'] === null) { $object->setScope(null); } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getUrl()) { + if ($object->isInitialized('url') && null !== $object->getUrl()) { $data['url'] = $object->getUrl(); } - if (null !== $object->getScope()) { + if ($object->isInitialized('scope') && null !== $object->getScope()) { $values = []; foreach ($object->getScope() as $value) { $values[] = $value; } $data['scope'] = $values; } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/AkeneoOauthTokenOauthStateOutputJsonldReadNormalizer.php b/src/Normalizer/AkeneoOauthTokenOauthStateOutputJsonldReadNormalizer.php index bf824967..990bd2ac 100644 --- a/src/Normalizer/AkeneoOauthTokenOauthStateOutputJsonldReadNormalizer.php +++ b/src/Normalizer/AkeneoOauthTokenOauthStateOutputJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class AkeneoOauthTokenOauthStateOutputJsonldReadNormalizer implements Denormaliz use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateOutputJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\AkeneoOauthTokenOauthStateOutputJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateOutputJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\AkeneoOauthTokenOauthStateOutputJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/AkeneoOauthTokenOauthTokenInputJsonldNormalizer.php b/src/Normalizer/AkeneoOauthTokenOauthTokenInputJsonldNormalizer.php index 7e760d1c..56874505 100644 --- a/src/Normalizer/AkeneoOauthTokenOauthTokenInputJsonldNormalizer.php +++ b/src/Normalizer/AkeneoOauthTokenOauthTokenInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class AkeneoOauthTokenOauthTokenInputJsonldNormalizer implements DenormalizerInt use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\AkeneoOauthTokenOauthTokenInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\AkeneoOauthTokenOauthTokenInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,53 +52,65 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('url', $data) && null !== $data['url']) { + if (\array_key_exists('url', $data) && $data['url'] !== null) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && null === $data['url']) { + unset($data['url']); + } elseif (\array_key_exists('url', $data) && $data['url'] === null) { $object->setUrl(null); } - if (\array_key_exists('state', $data) && null !== $data['state']) { + if (\array_key_exists('state', $data) && $data['state'] !== null) { $object->setState($data['state']); - } elseif (\array_key_exists('state', $data) && null === $data['state']) { + unset($data['state']); + } elseif (\array_key_exists('state', $data) && $data['state'] === null) { $object->setState(null); } - if (\array_key_exists('code', $data) && null !== $data['code']) { + if (\array_key_exists('code', $data) && $data['code'] !== null) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { $object->setCode(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getUrl()) { + if ($object->isInitialized('url') && null !== $object->getUrl()) { $data['url'] = $object->getUrl(); } - if (null !== $object->getState()) { + if ($object->isInitialized('state') && null !== $object->getState()) { $data['state'] = $object->getState(); } - if (null !== $object->getCode()) { + if ($object->isInitialized('code') && null !== $object->getCode()) { $data['code'] = $object->getCode(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/AkeneoOauthTokenOauthTokenInputNormalizer.php b/src/Normalizer/AkeneoOauthTokenOauthTokenInputNormalizer.php index e52b2187..33895480 100644 --- a/src/Normalizer/AkeneoOauthTokenOauthTokenInputNormalizer.php +++ b/src/Normalizer/AkeneoOauthTokenOauthTokenInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class AkeneoOauthTokenOauthTokenInputNormalizer implements DenormalizerInterface use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\AkeneoOauthTokenOauthTokenInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\AkeneoOauthTokenOauthTokenInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,43 +52,53 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('url', $data) && null !== $data['url']) { + if (\array_key_exists('url', $data) && $data['url'] !== null) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && null === $data['url']) { + unset($data['url']); + } elseif (\array_key_exists('url', $data) && $data['url'] === null) { $object->setUrl(null); } - if (\array_key_exists('state', $data) && null !== $data['state']) { + if (\array_key_exists('state', $data) && $data['state'] !== null) { $object->setState($data['state']); - } elseif (\array_key_exists('state', $data) && null === $data['state']) { + unset($data['state']); + } elseif (\array_key_exists('state', $data) && $data['state'] === null) { $object->setState(null); } - if (\array_key_exists('code', $data) && null !== $data['code']) { + if (\array_key_exists('code', $data) && $data['code'] !== null) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { $object->setCode(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getUrl()) { + if ($object->isInitialized('url') && null !== $object->getUrl()) { $data['url'] = $object->getUrl(); } - if (null !== $object->getState()) { + if ($object->isInitialized('state') && null !== $object->getState()) { $data['state'] = $object->getState(); } - if (null !== $object->getCode()) { + if ($object->isInitialized('code') && null !== $object->getCode()) { $data['code'] = $object->getCode(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/AkeneoOauthTokenOauthTokenOutputJsonldReadNormalizer.php b/src/Normalizer/AkeneoOauthTokenOauthTokenOutputJsonldReadNormalizer.php index 153286a3..984e248a 100644 --- a/src/Normalizer/AkeneoOauthTokenOauthTokenOutputJsonldReadNormalizer.php +++ b/src/Normalizer/AkeneoOauthTokenOauthTokenOutputJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class AkeneoOauthTokenOauthTokenOutputJsonldReadNormalizer implements Denormaliz use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenOutputJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\AkeneoOauthTokenOauthTokenOutputJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenOutputJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\AkeneoOauthTokenOauthTokenOutputJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,28 +52,39 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/AkeneoOauthTokenReadNormalizer.php b/src/Normalizer/AkeneoOauthTokenReadNormalizer.php index 0654fdc2..912aaf10 100644 --- a/src/Normalizer/AkeneoOauthTokenReadNormalizer.php +++ b/src/Normalizer/AkeneoOauthTokenReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class AkeneoOauthTokenReadNormalizer implements DenormalizerInterface, Normalize use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\AkeneoOauthTokenRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\AkeneoOauthTokenRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\AkeneoOauthTokenRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\AkeneoOauthTokenRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,45 +52,51 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('url', $data) && null !== $data['url']) { + if (\array_key_exists('url', $data) && $data['url'] !== null) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && null === $data['url']) { + unset($data['url']); + } elseif (\array_key_exists('url', $data) && $data['url'] === null) { $object->setUrl(null); } - if (\array_key_exists('scopes', $data) && null !== $data['scopes']) { + if (\array_key_exists('scopes', $data) && $data['scopes'] !== null) { $values = []; foreach ($data['scopes'] as $value) { $values[] = $value; } $object->setScopes($values); - } elseif (\array_key_exists('scopes', $data) && null === $data['scopes']) { + unset($data['scopes']); + } elseif (\array_key_exists('scopes', $data) && $data['scopes'] === null) { $object->setScopes(null); } - if (\array_key_exists('responseType', $data) && null !== $data['responseType']) { + if (\array_key_exists('responseType', $data) && $data['responseType'] !== null) { $object->setResponseType($data['responseType']); - } elseif (\array_key_exists('responseType', $data) && null === $data['responseType']) { + unset($data['responseType']); + } elseif (\array_key_exists('responseType', $data) && $data['responseType'] === null) { $object->setResponseType(null); } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; $data['url'] = $object->getUrl(); - if (null !== $object->getScopes()) { + if ($object->isInitialized('scopes') && null !== $object->getScopes()) { $values = []; foreach ($object->getScopes() as $value) { $values[] = $value; @@ -100,6 +104,11 @@ public function normalize($object, $format = null, array $context = []) $data['scopes'] = $values; } $data['responseType'] = $object->getResponseType(); + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/AuthenticationMeGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationMeGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..9c9ad99c --- /dev/null +++ b/src/Normalizer/AuthenticationMeGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationMeGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationMeGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..0918e765 --- /dev/null +++ b/src/Normalizer/AuthenticationMeGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\AuthenticationMeGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationMeGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationMeGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..fddb3301 --- /dev/null +++ b/src/Normalizer/AuthenticationMeGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationMeGetLdjsonResponse200Normalizer.php b/src/Normalizer/AuthenticationMeGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..d821e232 --- /dev/null +++ b/src/Normalizer/AuthenticationMeGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\UserJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\AuthenticationMeGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\AuthenticationMeGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationMeGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationMeGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 26ce7e24..00000000 --- a/src/Normalizer/AuthenticationMeGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationMeGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationMeGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 32accf8f..00000000 --- a/src/Normalizer/AuthenticationMeGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationMeGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationMeGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationMeGetResponse200HydraViewNormalizer.php deleted file mode 100644 index f83033f3..00000000 --- a/src/Normalizer/AuthenticationMeGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationMeGetResponse200Normalizer.php b/src/Normalizer/AuthenticationMeGetResponse200Normalizer.php deleted file mode 100644 index e5075774..00000000 --- a/src/Normalizer/AuthenticationMeGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\UserJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationMeGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationMeGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationOfferIdOptionsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationOfferIdOptionsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 2f67d34b..00000000 --- a/src/Normalizer/AuthenticationOfferIdOptionsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationOfferIdOptionsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationOfferIdOptionsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index f267e9b4..00000000 --- a/src/Normalizer/AuthenticationOfferIdOptionsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationOfferIdOptionsGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationOfferIdOptionsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index c25a0fbe..00000000 --- a/src/Normalizer/AuthenticationOfferIdOptionsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationOfferIdOptionsGetResponse200Normalizer.php b/src/Normalizer/AuthenticationOfferIdOptionsGetResponse200Normalizer.php deleted file mode 100644 index 77491bdf..00000000 --- a/src/Normalizer/AuthenticationOfferIdOptionsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\OptionJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationOffersGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationOffersGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index a7a5394f..00000000 --- a/src/Normalizer/AuthenticationOffersGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationOffersGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationOffersGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index c9f5840a..00000000 --- a/src/Normalizer/AuthenticationOffersGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationOffersGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationOffersGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationOffersGetResponse200HydraViewNormalizer.php deleted file mode 100644 index c124737b..00000000 --- a/src/Normalizer/AuthenticationOffersGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationOffersGetResponse200Normalizer.php b/src/Normalizer/AuthenticationOffersGetResponse200Normalizer.php deleted file mode 100644 index 7b09bc5f..00000000 --- a/src/Normalizer/AuthenticationOffersGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\OfferJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationOffersGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationOffersGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationOffersIdOptionsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationOffersIdOptionsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..d0dc5e42 --- /dev/null +++ b/src/Normalizer/AuthenticationOffersIdOptionsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationOffersIdOptionsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationOffersIdOptionsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..582387ee --- /dev/null +++ b/src/Normalizer/AuthenticationOffersIdOptionsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\AuthenticationOffersIdOptionsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationOffersIdOptionsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationOffersIdOptionsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..f216a6e6 --- /dev/null +++ b/src/Normalizer/AuthenticationOffersIdOptionsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationOffersIdOptionsGetLdjsonResponse200Normalizer.php b/src/Normalizer/AuthenticationOffersIdOptionsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..e8be4f9c --- /dev/null +++ b/src/Normalizer/AuthenticationOffersIdOptionsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\OptionJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\AuthenticationOffersIdOptionsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\AuthenticationOffersIdOptionsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 7476a83c..00000000 --- a/src/Normalizer/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 3f825beb..00000000 --- a/src/Normalizer/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index 5e6b0531..00000000 --- a/src/Normalizer/AuthenticationOrganizationIdAuthorizationsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationOrganizationIdAuthorizationsGetResponse200Normalizer.php b/src/Normalizer/AuthenticationOrganizationIdAuthorizationsGetResponse200Normalizer.php deleted file mode 100644 index e0df3115..00000000 --- a/src/Normalizer/AuthenticationOrganizationIdAuthorizationsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\UserAuthorizationJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 0183a0a0..00000000 --- a/src/Normalizer/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index b9af3dd9..00000000 --- a/src/Normalizer/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index 7d9819c3..00000000 --- a/src/Normalizer/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200Normalizer.php b/src/Normalizer/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200Normalizer.php deleted file mode 100644 index 1643c76c..00000000 --- a/src/Normalizer/AuthenticationOrganizationIdExternalCollaboratorsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\UserJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationOrganizationIdUsersGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationOrganizationIdUsersGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 2396e378..00000000 --- a/src/Normalizer/AuthenticationOrganizationIdUsersGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationOrganizationIdUsersGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationOrganizationIdUsersGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 849cafa5..00000000 --- a/src/Normalizer/AuthenticationOrganizationIdUsersGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationOrganizationIdUsersGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationOrganizationIdUsersGetResponse200HydraViewNormalizer.php deleted file mode 100644 index 22d769e0..00000000 --- a/src/Normalizer/AuthenticationOrganizationIdUsersGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationOrganizationIdUsersGetResponse200Normalizer.php b/src/Normalizer/AuthenticationOrganizationIdUsersGetResponse200Normalizer.php deleted file mode 100644 index 3eb7ad92..00000000 --- a/src/Normalizer/AuthenticationOrganizationIdUsersGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\UserJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 622f8490..00000000 --- a/src/Normalizer/AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 9ee45a16..00000000 --- a/src/Normalizer/AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationOrganizationIdWorkspacesGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationOrganizationIdWorkspacesGetResponse200HydraViewNormalizer.php deleted file mode 100644 index 5bd0c866..00000000 --- a/src/Normalizer/AuthenticationOrganizationIdWorkspacesGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationOrganizationIdWorkspacesGetResponse200Normalizer.php b/src/Normalizer/AuthenticationOrganizationIdWorkspacesGetResponse200Normalizer.php deleted file mode 100644 index 2c1a592d..00000000 --- a/src/Normalizer/AuthenticationOrganizationIdWorkspacesGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\WorkspaceJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationOrganizationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationOrganizationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..5f7a93e1 --- /dev/null +++ b/src/Normalizer/AuthenticationOrganizationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationOrganizationsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationOrganizationsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..efdfdfd5 --- /dev/null +++ b/src/Normalizer/AuthenticationOrganizationsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationOrganizationsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationOrganizationsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..4bb6a1c0 --- /dev/null +++ b/src/Normalizer/AuthenticationOrganizationsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationOrganizationsGetLdjsonResponse200Normalizer.php b/src/Normalizer/AuthenticationOrganizationsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..79846e32 --- /dev/null +++ b/src/Normalizer/AuthenticationOrganizationsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\OrganizationJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationOrganizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationOrganizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 1cd11382..00000000 --- a/src/Normalizer/AuthenticationOrganizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationOrganizationsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationOrganizationsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 6c94f493..00000000 --- a/src/Normalizer/AuthenticationOrganizationsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationOrganizationsGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationOrganizationsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index 747c5bd8..00000000 --- a/src/Normalizer/AuthenticationOrganizationsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationOrganizationsGetResponse200Normalizer.php b/src/Normalizer/AuthenticationOrganizationsGetResponse200Normalizer.php deleted file mode 100644 index 20f675ed..00000000 --- a/src/Normalizer/AuthenticationOrganizationsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\OrganizationJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..3615375a --- /dev/null +++ b/src/Normalizer/AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..9c3ba762 --- /dev/null +++ b/src/Normalizer/AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..73398d04 --- /dev/null +++ b/src/Normalizer/AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200Normalizer.php b/src/Normalizer/AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..6986453e --- /dev/null +++ b/src/Normalizer/AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\UserAuthorizationJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..3fa3febc --- /dev/null +++ b/src/Normalizer/AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..f1c811d3 --- /dev/null +++ b/src/Normalizer/AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..7ba15043 --- /dev/null +++ b/src/Normalizer/AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200Normalizer.php b/src/Normalizer/AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..8a60e96a --- /dev/null +++ b/src/Normalizer/AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\UserJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..a2b8e71e --- /dev/null +++ b/src/Normalizer/AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..34d7e7cd --- /dev/null +++ b/src/Normalizer/AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..951a8a0c --- /dev/null +++ b/src/Normalizer/AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationOrganizationsIdUsersGetLdjsonResponse200Normalizer.php b/src/Normalizer/AuthenticationOrganizationsIdUsersGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..10622fab --- /dev/null +++ b/src/Normalizer/AuthenticationOrganizationsIdUsersGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\UserJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..cf0dc335 --- /dev/null +++ b/src/Normalizer/AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..77b054a3 --- /dev/null +++ b/src/Normalizer/AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..28504c66 --- /dev/null +++ b/src/Normalizer/AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200Normalizer.php b/src/Normalizer/AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..bdcece13 --- /dev/null +++ b/src/Normalizer/AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\WorkspaceJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationSubscriptionOffersGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationSubscriptionOffersGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..9b3f26e4 --- /dev/null +++ b/src/Normalizer/AuthenticationSubscriptionOffersGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationSubscriptionOffersGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationSubscriptionOffersGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..02fe1aaa --- /dev/null +++ b/src/Normalizer/AuthenticationSubscriptionOffersGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\AuthenticationSubscriptionOffersGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationSubscriptionOffersGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationSubscriptionOffersGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..83a00a11 --- /dev/null +++ b/src/Normalizer/AuthenticationSubscriptionOffersGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationSubscriptionOffersGetLdjsonResponse200Normalizer.php b/src/Normalizer/AuthenticationSubscriptionOffersGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..e0885d97 --- /dev/null +++ b/src/Normalizer/AuthenticationSubscriptionOffersGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\SubscriptionOfferJsonldRead', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\AuthenticationSubscriptionOffersGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\AuthenticationSubscriptionOffersGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationSubscriptionsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationSubscriptionsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..90460579 --- /dev/null +++ b/src/Normalizer/AuthenticationSubscriptionsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationSubscriptionsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationSubscriptionsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..e0f89cb8 --- /dev/null +++ b/src/Normalizer/AuthenticationSubscriptionsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\AuthenticationSubscriptionsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationSubscriptionsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationSubscriptionsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..df10ed07 --- /dev/null +++ b/src/Normalizer/AuthenticationSubscriptionsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationSubscriptionsGetLdjsonResponse200Normalizer.php b/src/Normalizer/AuthenticationSubscriptionsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..613be06b --- /dev/null +++ b/src/Normalizer/AuthenticationSubscriptionsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\SubscriptionJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\AuthenticationSubscriptionsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\AuthenticationSubscriptionsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationSubscriptionsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationSubscriptionsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 150bcbd9..00000000 --- a/src/Normalizer/AuthenticationSubscriptionsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationSubscriptionsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationSubscriptionsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 46fe77fa..00000000 --- a/src/Normalizer/AuthenticationSubscriptionsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationSubscriptionsGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationSubscriptionsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index 63464feb..00000000 --- a/src/Normalizer/AuthenticationSubscriptionsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationSubscriptionsGetResponse200Normalizer.php b/src/Normalizer/AuthenticationSubscriptionsGetResponse200Normalizer.php deleted file mode 100644 index a7780f1f..00000000 --- a/src/Normalizer/AuthenticationSubscriptionsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\SubscriptionJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..6ef3fda4 --- /dev/null +++ b/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..1dcf3df1 --- /dev/null +++ b/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..b3ece0bb --- /dev/null +++ b/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200Normalizer.php b/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..e193397e --- /dev/null +++ b/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\SubscriptionOptionJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 245df932..00000000 --- a/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 6813cd8d..00000000 --- a/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index 0ae61a0f..00000000 --- a/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetResponse200Normalizer.php b/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetResponse200Normalizer.php deleted file mode 100644 index cea5500f..00000000 --- a/src/Normalizer/AuthenticationSubscriptionsIdOptionsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\SubscriptionOptionJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationUserAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationUserAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..cf41c5f3 --- /dev/null +++ b/src/Normalizer/AuthenticationUserAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationUserAuthorizationsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationUserAuthorizationsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..7feb89fd --- /dev/null +++ b/src/Normalizer/AuthenticationUserAuthorizationsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\AuthenticationUserAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationUserAuthorizationsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationUserAuthorizationsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..92be9b60 --- /dev/null +++ b/src/Normalizer/AuthenticationUserAuthorizationsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationUserAuthorizationsGetLdjsonResponse200Normalizer.php b/src/Normalizer/AuthenticationUserAuthorizationsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..af64cf74 --- /dev/null +++ b/src/Normalizer/AuthenticationUserAuthorizationsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\UserAuthorizationJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\AuthenticationUserAuthorizationsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\AuthenticationUserAuthorizationsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationUserAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationUserAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index c3b5d052..00000000 --- a/src/Normalizer/AuthenticationUserAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationUserAuthorizationsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationUserAuthorizationsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index d1093982..00000000 --- a/src/Normalizer/AuthenticationUserAuthorizationsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationUserAuthorizationsGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationUserAuthorizationsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index df7c9c48..00000000 --- a/src/Normalizer/AuthenticationUserAuthorizationsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationUserAuthorizationsGetResponse200Normalizer.php b/src/Normalizer/AuthenticationUserAuthorizationsGetResponse200Normalizer.php deleted file mode 100644 index 3abd8063..00000000 --- a/src/Normalizer/AuthenticationUserAuthorizationsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\UserAuthorizationJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationUserIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationUserIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 80a93fd4..00000000 --- a/src/Normalizer/AuthenticationUserIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationUserIdAuthorizationsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationUserIdAuthorizationsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 0b2f5e7e..00000000 --- a/src/Normalizer/AuthenticationUserIdAuthorizationsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationUserIdAuthorizationsGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationUserIdAuthorizationsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index b44d4d06..00000000 --- a/src/Normalizer/AuthenticationUserIdAuthorizationsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationUserIdAuthorizationsGetResponse200Normalizer.php b/src/Normalizer/AuthenticationUserIdAuthorizationsGetResponse200Normalizer.php deleted file mode 100644 index e267a67c..00000000 --- a/src/Normalizer/AuthenticationUserIdAuthorizationsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\UserAuthorizationJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationUsersGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationUsersGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..0e80331f --- /dev/null +++ b/src/Normalizer/AuthenticationUsersGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationUsersGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationUsersGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..786fea8f --- /dev/null +++ b/src/Normalizer/AuthenticationUsersGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\AuthenticationUsersGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationUsersGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationUsersGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..b5882099 --- /dev/null +++ b/src/Normalizer/AuthenticationUsersGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationUsersGetLdjsonResponse200Normalizer.php b/src/Normalizer/AuthenticationUsersGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..c8c1a831 --- /dev/null +++ b/src/Normalizer/AuthenticationUsersGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\UserJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\AuthenticationUsersGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\AuthenticationUsersGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationUsersGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationUsersGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 55d4d1b7..00000000 --- a/src/Normalizer/AuthenticationUsersGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationUsersGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationUsersGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 45b22689..00000000 --- a/src/Normalizer/AuthenticationUsersGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationUsersGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationUsersGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationUsersGetResponse200HydraViewNormalizer.php deleted file mode 100644 index d324e21f..00000000 --- a/src/Normalizer/AuthenticationUsersGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationUsersGetResponse200Normalizer.php b/src/Normalizer/AuthenticationUsersGetResponse200Normalizer.php deleted file mode 100644 index 3c04559d..00000000 --- a/src/Normalizer/AuthenticationUsersGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\UserJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationUsersGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationUsersGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 09a2a87a..00000000 --- a/src/Normalizer/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 72dcb5ba..00000000 --- a/src/Normalizer/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index b972f81d..00000000 --- a/src/Normalizer/AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationWorkspaceIdAuthorizationsGetResponse200Normalizer.php b/src/Normalizer/AuthenticationWorkspaceIdAuthorizationsGetResponse200Normalizer.php deleted file mode 100644 index 9e29244e..00000000 --- a/src/Normalizer/AuthenticationWorkspaceIdAuthorizationsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\UserAuthorizationJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationWorkspaceIdUsersGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationWorkspaceIdUsersGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index f335098d..00000000 --- a/src/Normalizer/AuthenticationWorkspaceIdUsersGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationWorkspaceIdUsersGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationWorkspaceIdUsersGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index b8566bd8..00000000 --- a/src/Normalizer/AuthenticationWorkspaceIdUsersGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationWorkspaceIdUsersGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationWorkspaceIdUsersGetResponse200HydraViewNormalizer.php deleted file mode 100644 index 749e7ae3..00000000 --- a/src/Normalizer/AuthenticationWorkspaceIdUsersGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationWorkspaceIdUsersGetResponse200Normalizer.php b/src/Normalizer/AuthenticationWorkspaceIdUsersGetResponse200Normalizer.php deleted file mode 100644 index 5c5fe476..00000000 --- a/src/Normalizer/AuthenticationWorkspaceIdUsersGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\UserJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationWorkspacesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationWorkspacesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..54016bdb --- /dev/null +++ b/src/Normalizer/AuthenticationWorkspacesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationWorkspacesGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationWorkspacesGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..377ebafd --- /dev/null +++ b/src/Normalizer/AuthenticationWorkspacesGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\AuthenticationWorkspacesGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationWorkspacesGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationWorkspacesGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..0cddff0d --- /dev/null +++ b/src/Normalizer/AuthenticationWorkspacesGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationWorkspacesGetLdjsonResponse200Normalizer.php b/src/Normalizer/AuthenticationWorkspacesGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..a40be040 --- /dev/null +++ b/src/Normalizer/AuthenticationWorkspacesGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\WorkspaceJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\AuthenticationWorkspacesGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\AuthenticationWorkspacesGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationWorkspacesGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationWorkspacesGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 83e54417..00000000 --- a/src/Normalizer/AuthenticationWorkspacesGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationWorkspacesGetResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationWorkspacesGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 02146465..00000000 --- a/src/Normalizer/AuthenticationWorkspacesGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationWorkspacesGetResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationWorkspacesGetResponse200HydraViewNormalizer.php deleted file mode 100644 index de9850cd..00000000 --- a/src/Normalizer/AuthenticationWorkspacesGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationWorkspacesGetResponse200Normalizer.php b/src/Normalizer/AuthenticationWorkspacesGetResponse200Normalizer.php deleted file mode 100644 index 95a76631..00000000 --- a/src/Normalizer/AuthenticationWorkspacesGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\WorkspaceJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..529180ea --- /dev/null +++ b/src/Normalizer/AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..b37d6084 --- /dev/null +++ b/src/Normalizer/AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..b9e027fe --- /dev/null +++ b/src/Normalizer/AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200Normalizer.php b/src/Normalizer/AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..498ca8d2 --- /dev/null +++ b/src/Normalizer/AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\UserAuthorizationJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..aaae97c9 --- /dev/null +++ b/src/Normalizer/AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..579e1670 --- /dev/null +++ b/src/Normalizer/AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..2f3acfc0 --- /dev/null +++ b/src/Normalizer/AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AuthenticationWorkspacesIdUsersGetLdjsonResponse200Normalizer.php b/src/Normalizer/AuthenticationWorkspacesIdUsersGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..32192771 --- /dev/null +++ b/src/Normalizer/AuthenticationWorkspacesIdUsersGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\UserJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/AutoloadInputJsonldNormalizer.php b/src/Normalizer/AutoloadInputJsonldNormalizer.php deleted file mode 100644 index 50647b7a..00000000 --- a/src/Normalizer/AutoloadInputJsonldNormalizer.php +++ /dev/null @@ -1,108 +0,0 @@ -setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { - $object->setContext(null); - } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { - $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('namespace', $data) && null !== $data['namespace']) { - $object->setNamespace($data['namespace']); - } elseif (\array_key_exists('namespace', $data) && null === $data['namespace']) { - $object->setNamespace(null); - } - if (\array_key_exists('paths', $data) && null !== $data['paths']) { - $values = []; - foreach ($data['paths'] as $value) { - $values[] = $value; - } - $object->setPaths($values); - } elseif (\array_key_exists('paths', $data) && null === $data['paths']) { - $object->setPaths(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $data['namespace'] = $object->getNamespace(); - $values = []; - foreach ($object->getPaths() as $value) { - $values[] = $value; - } - $data['paths'] = $values; - - return $data; - } -} diff --git a/src/Normalizer/AutoloadInputNormalizer.php b/src/Normalizer/AutoloadInputNormalizer.php deleted file mode 100644 index 7a2668ef..00000000 --- a/src/Normalizer/AutoloadInputNormalizer.php +++ /dev/null @@ -1,93 +0,0 @@ -setNamespace($data['namespace']); - } elseif (\array_key_exists('namespace', $data) && null === $data['namespace']) { - $object->setNamespace(null); - } - if (\array_key_exists('paths', $data) && null !== $data['paths']) { - $values = []; - foreach ($data['paths'] as $value) { - $values[] = $value; - } - $object->setPaths($values); - } elseif (\array_key_exists('paths', $data) && null === $data['paths']) { - $object->setPaths(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $data['namespace'] = $object->getNamespace(); - $values = []; - foreach ($object->getPaths() as $value) { - $values[] = $value; - } - $data['paths'] = $values; - - return $data; - } -} diff --git a/src/Normalizer/BigDecimalJsonldNormalizer.php b/src/Normalizer/BigDecimalJsonldNormalizer.php index 3dc43ae7..f39d0513 100644 --- a/src/Normalizer/BigDecimalJsonldNormalizer.php +++ b/src/Normalizer/BigDecimalJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class BigDecimalJsonldNormalizer implements DenormalizerInterface, NormalizerInt use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\BigDecimalJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\BigDecimalJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\BigDecimalJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\BigDecimalJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,92 +52,113 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('scale', $data) && null !== $data['scale']) { + if (\array_key_exists('scale', $data) && $data['scale'] !== null) { $object->setScale($data['scale']); - } elseif (\array_key_exists('scale', $data) && null === $data['scale']) { + unset($data['scale']); + } elseif (\array_key_exists('scale', $data) && $data['scale'] === null) { $object->setScale(null); } - if (\array_key_exists('sign', $data) && null !== $data['sign']) { + if (\array_key_exists('sign', $data) && $data['sign'] !== null) { $object->setSign($data['sign']); - } elseif (\array_key_exists('sign', $data) && null === $data['sign']) { + unset($data['sign']); + } elseif (\array_key_exists('sign', $data) && $data['sign'] === null) { $object->setSign(null); } - if (\array_key_exists('unscaledValue', $data) && null !== $data['unscaledValue']) { - $object->setUnscaledValue($this->denormalizer->denormalize($data['unscaledValue'], \Gyroscops\Api\Model\BigIntegerJsonld::class, 'json', $context)); - } elseif (\array_key_exists('unscaledValue', $data) && null === $data['unscaledValue']) { + if (\array_key_exists('unscaledValue', $data) && $data['unscaledValue'] !== null) { + $object->setUnscaledValue($this->denormalizer->denormalize($data['unscaledValue'], 'Gyroscops\\Api\\Model\\BigIntegerJsonld', 'json', $context)); + unset($data['unscaledValue']); + } elseif (\array_key_exists('unscaledValue', $data) && $data['unscaledValue'] === null) { $object->setUnscaledValue(null); } - if (\array_key_exists('integralPart', $data) && null !== $data['integralPart']) { + if (\array_key_exists('integralPart', $data) && $data['integralPart'] !== null) { $object->setIntegralPart($data['integralPart']); - } elseif (\array_key_exists('integralPart', $data) && null === $data['integralPart']) { + unset($data['integralPart']); + } elseif (\array_key_exists('integralPart', $data) && $data['integralPart'] === null) { $object->setIntegralPart(null); } - if (\array_key_exists('fractionalPart', $data) && null !== $data['fractionalPart']) { + if (\array_key_exists('fractionalPart', $data) && $data['fractionalPart'] !== null) { $object->setFractionalPart($data['fractionalPart']); - } elseif (\array_key_exists('fractionalPart', $data) && null === $data['fractionalPart']) { + unset($data['fractionalPart']); + } elseif (\array_key_exists('fractionalPart', $data) && $data['fractionalPart'] === null) { $object->setFractionalPart(null); } - if (\array_key_exists('nonZeroFractionalPart', $data) && null !== $data['nonZeroFractionalPart']) { + if (\array_key_exists('nonZeroFractionalPart', $data) && $data['nonZeroFractionalPart'] !== null) { $object->setNonZeroFractionalPart($data['nonZeroFractionalPart']); - } elseif (\array_key_exists('nonZeroFractionalPart', $data) && null === $data['nonZeroFractionalPart']) { + unset($data['nonZeroFractionalPart']); + } elseif (\array_key_exists('nonZeroFractionalPart', $data) && $data['nonZeroFractionalPart'] === null) { $object->setNonZeroFractionalPart(null); } - if (\array_key_exists('zero', $data) && null !== $data['zero']) { + if (\array_key_exists('zero', $data) && $data['zero'] !== null) { $object->setZero($data['zero']); - } elseif (\array_key_exists('zero', $data) && null === $data['zero']) { + unset($data['zero']); + } elseif (\array_key_exists('zero', $data) && $data['zero'] === null) { $object->setZero(null); } - if (\array_key_exists('negative', $data) && null !== $data['negative']) { + if (\array_key_exists('negative', $data) && $data['negative'] !== null) { $object->setNegative($data['negative']); - } elseif (\array_key_exists('negative', $data) && null === $data['negative']) { + unset($data['negative']); + } elseif (\array_key_exists('negative', $data) && $data['negative'] === null) { $object->setNegative(null); } - if (\array_key_exists('negativeOrZero', $data) && null !== $data['negativeOrZero']) { + if (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] !== null) { $object->setNegativeOrZero($data['negativeOrZero']); - } elseif (\array_key_exists('negativeOrZero', $data) && null === $data['negativeOrZero']) { + unset($data['negativeOrZero']); + } elseif (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] === null) { $object->setNegativeOrZero(null); } - if (\array_key_exists('positive', $data) && null !== $data['positive']) { + if (\array_key_exists('positive', $data) && $data['positive'] !== null) { $object->setPositive($data['positive']); - } elseif (\array_key_exists('positive', $data) && null === $data['positive']) { + unset($data['positive']); + } elseif (\array_key_exists('positive', $data) && $data['positive'] === null) { $object->setPositive(null); } - if (\array_key_exists('positiveOrZero', $data) && null !== $data['positiveOrZero']) { + if (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] !== null) { $object->setPositiveOrZero($data['positiveOrZero']); - } elseif (\array_key_exists('positiveOrZero', $data) && null === $data['positiveOrZero']) { + unset($data['positiveOrZero']); + } elseif (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] === null) { $object->setPositiveOrZero(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getUnscaledValue()) { + if ($object->isInitialized('unscaledValue') && null !== $object->getUnscaledValue()) { $data['unscaledValue'] = $this->normalizer->normalize($object->getUnscaledValue(), 'json', $context); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/BigDecimalNormalizer.php b/src/Normalizer/BigDecimalNormalizer.php index 7b5ad398..c2ed1409 100644 --- a/src/Normalizer/BigDecimalNormalizer.php +++ b/src/Normalizer/BigDecimalNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class BigDecimalNormalizer implements DenormalizerInterface, NormalizerInterface use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\BigDecimal::class === $type; + return $type === 'Gyroscops\\Api\\Model\\BigDecimal'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\BigDecimal::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\BigDecimal'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,77 +52,95 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('scale', $data) && null !== $data['scale']) { + if (\array_key_exists('scale', $data) && $data['scale'] !== null) { $object->setScale($data['scale']); - } elseif (\array_key_exists('scale', $data) && null === $data['scale']) { + unset($data['scale']); + } elseif (\array_key_exists('scale', $data) && $data['scale'] === null) { $object->setScale(null); } - if (\array_key_exists('sign', $data) && null !== $data['sign']) { + if (\array_key_exists('sign', $data) && $data['sign'] !== null) { $object->setSign($data['sign']); - } elseif (\array_key_exists('sign', $data) && null === $data['sign']) { + unset($data['sign']); + } elseif (\array_key_exists('sign', $data) && $data['sign'] === null) { $object->setSign(null); } - if (\array_key_exists('unscaledValue', $data) && null !== $data['unscaledValue']) { - $object->setUnscaledValue($this->denormalizer->denormalize($data['unscaledValue'], \Gyroscops\Api\Model\BigInteger::class, 'json', $context)); - } elseif (\array_key_exists('unscaledValue', $data) && null === $data['unscaledValue']) { + if (\array_key_exists('unscaledValue', $data) && $data['unscaledValue'] !== null) { + $object->setUnscaledValue($this->denormalizer->denormalize($data['unscaledValue'], 'Gyroscops\\Api\\Model\\BigInteger', 'json', $context)); + unset($data['unscaledValue']); + } elseif (\array_key_exists('unscaledValue', $data) && $data['unscaledValue'] === null) { $object->setUnscaledValue(null); } - if (\array_key_exists('integralPart', $data) && null !== $data['integralPart']) { + if (\array_key_exists('integralPart', $data) && $data['integralPart'] !== null) { $object->setIntegralPart($data['integralPart']); - } elseif (\array_key_exists('integralPart', $data) && null === $data['integralPart']) { + unset($data['integralPart']); + } elseif (\array_key_exists('integralPart', $data) && $data['integralPart'] === null) { $object->setIntegralPart(null); } - if (\array_key_exists('fractionalPart', $data) && null !== $data['fractionalPart']) { + if (\array_key_exists('fractionalPart', $data) && $data['fractionalPart'] !== null) { $object->setFractionalPart($data['fractionalPart']); - } elseif (\array_key_exists('fractionalPart', $data) && null === $data['fractionalPart']) { + unset($data['fractionalPart']); + } elseif (\array_key_exists('fractionalPart', $data) && $data['fractionalPart'] === null) { $object->setFractionalPart(null); } - if (\array_key_exists('nonZeroFractionalPart', $data) && null !== $data['nonZeroFractionalPart']) { + if (\array_key_exists('nonZeroFractionalPart', $data) && $data['nonZeroFractionalPart'] !== null) { $object->setNonZeroFractionalPart($data['nonZeroFractionalPart']); - } elseif (\array_key_exists('nonZeroFractionalPart', $data) && null === $data['nonZeroFractionalPart']) { + unset($data['nonZeroFractionalPart']); + } elseif (\array_key_exists('nonZeroFractionalPart', $data) && $data['nonZeroFractionalPart'] === null) { $object->setNonZeroFractionalPart(null); } - if (\array_key_exists('zero', $data) && null !== $data['zero']) { + if (\array_key_exists('zero', $data) && $data['zero'] !== null) { $object->setZero($data['zero']); - } elseif (\array_key_exists('zero', $data) && null === $data['zero']) { + unset($data['zero']); + } elseif (\array_key_exists('zero', $data) && $data['zero'] === null) { $object->setZero(null); } - if (\array_key_exists('negative', $data) && null !== $data['negative']) { + if (\array_key_exists('negative', $data) && $data['negative'] !== null) { $object->setNegative($data['negative']); - } elseif (\array_key_exists('negative', $data) && null === $data['negative']) { + unset($data['negative']); + } elseif (\array_key_exists('negative', $data) && $data['negative'] === null) { $object->setNegative(null); } - if (\array_key_exists('negativeOrZero', $data) && null !== $data['negativeOrZero']) { + if (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] !== null) { $object->setNegativeOrZero($data['negativeOrZero']); - } elseif (\array_key_exists('negativeOrZero', $data) && null === $data['negativeOrZero']) { + unset($data['negativeOrZero']); + } elseif (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] === null) { $object->setNegativeOrZero(null); } - if (\array_key_exists('positive', $data) && null !== $data['positive']) { + if (\array_key_exists('positive', $data) && $data['positive'] !== null) { $object->setPositive($data['positive']); - } elseif (\array_key_exists('positive', $data) && null === $data['positive']) { + unset($data['positive']); + } elseif (\array_key_exists('positive', $data) && $data['positive'] === null) { $object->setPositive(null); } - if (\array_key_exists('positiveOrZero', $data) && null !== $data['positiveOrZero']) { + if (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] !== null) { $object->setPositiveOrZero($data['positiveOrZero']); - } elseif (\array_key_exists('positiveOrZero', $data) && null === $data['positiveOrZero']) { + unset($data['positiveOrZero']); + } elseif (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] === null) { $object->setPositiveOrZero(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getUnscaledValue()) { + if ($object->isInitialized('unscaledValue') && null !== $object->getUnscaledValue()) { $data['unscaledValue'] = $this->normalizer->normalize($object->getUnscaledValue(), 'json', $context); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/BigIntegerJsonldNormalizer.php b/src/Normalizer/BigIntegerJsonldNormalizer.php index 24d4e1ef..167799cf 100644 --- a/src/Normalizer/BigIntegerJsonldNormalizer.php +++ b/src/Normalizer/BigIntegerJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class BigIntegerJsonldNormalizer implements DenormalizerInterface, NormalizerInt use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\BigIntegerJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\BigIntegerJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\BigIntegerJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\BigIntegerJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,83 +52,105 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('bitLength', $data) && null !== $data['bitLength']) { + if (\array_key_exists('bitLength', $data) && $data['bitLength'] !== null) { $object->setBitLength($data['bitLength']); - } elseif (\array_key_exists('bitLength', $data) && null === $data['bitLength']) { + unset($data['bitLength']); + } elseif (\array_key_exists('bitLength', $data) && $data['bitLength'] === null) { $object->setBitLength(null); } - if (\array_key_exists('lowestSetBit', $data) && null !== $data['lowestSetBit']) { + if (\array_key_exists('lowestSetBit', $data) && $data['lowestSetBit'] !== null) { $object->setLowestSetBit($data['lowestSetBit']); - } elseif (\array_key_exists('lowestSetBit', $data) && null === $data['lowestSetBit']) { + unset($data['lowestSetBit']); + } elseif (\array_key_exists('lowestSetBit', $data) && $data['lowestSetBit'] === null) { $object->setLowestSetBit(null); } - if (\array_key_exists('even', $data) && null !== $data['even']) { + if (\array_key_exists('even', $data) && $data['even'] !== null) { $object->setEven($data['even']); - } elseif (\array_key_exists('even', $data) && null === $data['even']) { + unset($data['even']); + } elseif (\array_key_exists('even', $data) && $data['even'] === null) { $object->setEven(null); } - if (\array_key_exists('odd', $data) && null !== $data['odd']) { + if (\array_key_exists('odd', $data) && $data['odd'] !== null) { $object->setOdd($data['odd']); - } elseif (\array_key_exists('odd', $data) && null === $data['odd']) { + unset($data['odd']); + } elseif (\array_key_exists('odd', $data) && $data['odd'] === null) { $object->setOdd(null); } - if (\array_key_exists('sign', $data) && null !== $data['sign']) { + if (\array_key_exists('sign', $data) && $data['sign'] !== null) { $object->setSign($data['sign']); - } elseif (\array_key_exists('sign', $data) && null === $data['sign']) { + unset($data['sign']); + } elseif (\array_key_exists('sign', $data) && $data['sign'] === null) { $object->setSign(null); } - if (\array_key_exists('zero', $data) && null !== $data['zero']) { + if (\array_key_exists('zero', $data) && $data['zero'] !== null) { $object->setZero($data['zero']); - } elseif (\array_key_exists('zero', $data) && null === $data['zero']) { + unset($data['zero']); + } elseif (\array_key_exists('zero', $data) && $data['zero'] === null) { $object->setZero(null); } - if (\array_key_exists('negative', $data) && null !== $data['negative']) { + if (\array_key_exists('negative', $data) && $data['negative'] !== null) { $object->setNegative($data['negative']); - } elseif (\array_key_exists('negative', $data) && null === $data['negative']) { + unset($data['negative']); + } elseif (\array_key_exists('negative', $data) && $data['negative'] === null) { $object->setNegative(null); } - if (\array_key_exists('negativeOrZero', $data) && null !== $data['negativeOrZero']) { + if (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] !== null) { $object->setNegativeOrZero($data['negativeOrZero']); - } elseif (\array_key_exists('negativeOrZero', $data) && null === $data['negativeOrZero']) { + unset($data['negativeOrZero']); + } elseif (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] === null) { $object->setNegativeOrZero(null); } - if (\array_key_exists('positive', $data) && null !== $data['positive']) { + if (\array_key_exists('positive', $data) && $data['positive'] !== null) { $object->setPositive($data['positive']); - } elseif (\array_key_exists('positive', $data) && null === $data['positive']) { + unset($data['positive']); + } elseif (\array_key_exists('positive', $data) && $data['positive'] === null) { $object->setPositive(null); } - if (\array_key_exists('positiveOrZero', $data) && null !== $data['positiveOrZero']) { + if (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] !== null) { $object->setPositiveOrZero($data['positiveOrZero']); - } elseif (\array_key_exists('positiveOrZero', $data) && null === $data['positiveOrZero']) { + unset($data['positiveOrZero']); + } elseif (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] === null) { $object->setPositiveOrZero(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/BigIntegerNormalizer.php b/src/Normalizer/BigIntegerNormalizer.php index d9500ae5..cfe6dd56 100644 --- a/src/Normalizer/BigIntegerNormalizer.php +++ b/src/Normalizer/BigIntegerNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class BigIntegerNormalizer implements DenormalizerInterface, NormalizerInterface use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\BigInteger::class === $type; + return $type === 'Gyroscops\\Api\\Model\\BigInteger'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\BigInteger::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\BigInteger'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,68 +52,87 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('bitLength', $data) && null !== $data['bitLength']) { + if (\array_key_exists('bitLength', $data) && $data['bitLength'] !== null) { $object->setBitLength($data['bitLength']); - } elseif (\array_key_exists('bitLength', $data) && null === $data['bitLength']) { + unset($data['bitLength']); + } elseif (\array_key_exists('bitLength', $data) && $data['bitLength'] === null) { $object->setBitLength(null); } - if (\array_key_exists('lowestSetBit', $data) && null !== $data['lowestSetBit']) { + if (\array_key_exists('lowestSetBit', $data) && $data['lowestSetBit'] !== null) { $object->setLowestSetBit($data['lowestSetBit']); - } elseif (\array_key_exists('lowestSetBit', $data) && null === $data['lowestSetBit']) { + unset($data['lowestSetBit']); + } elseif (\array_key_exists('lowestSetBit', $data) && $data['lowestSetBit'] === null) { $object->setLowestSetBit(null); } - if (\array_key_exists('even', $data) && null !== $data['even']) { + if (\array_key_exists('even', $data) && $data['even'] !== null) { $object->setEven($data['even']); - } elseif (\array_key_exists('even', $data) && null === $data['even']) { + unset($data['even']); + } elseif (\array_key_exists('even', $data) && $data['even'] === null) { $object->setEven(null); } - if (\array_key_exists('odd', $data) && null !== $data['odd']) { + if (\array_key_exists('odd', $data) && $data['odd'] !== null) { $object->setOdd($data['odd']); - } elseif (\array_key_exists('odd', $data) && null === $data['odd']) { + unset($data['odd']); + } elseif (\array_key_exists('odd', $data) && $data['odd'] === null) { $object->setOdd(null); } - if (\array_key_exists('sign', $data) && null !== $data['sign']) { + if (\array_key_exists('sign', $data) && $data['sign'] !== null) { $object->setSign($data['sign']); - } elseif (\array_key_exists('sign', $data) && null === $data['sign']) { + unset($data['sign']); + } elseif (\array_key_exists('sign', $data) && $data['sign'] === null) { $object->setSign(null); } - if (\array_key_exists('zero', $data) && null !== $data['zero']) { + if (\array_key_exists('zero', $data) && $data['zero'] !== null) { $object->setZero($data['zero']); - } elseif (\array_key_exists('zero', $data) && null === $data['zero']) { + unset($data['zero']); + } elseif (\array_key_exists('zero', $data) && $data['zero'] === null) { $object->setZero(null); } - if (\array_key_exists('negative', $data) && null !== $data['negative']) { + if (\array_key_exists('negative', $data) && $data['negative'] !== null) { $object->setNegative($data['negative']); - } elseif (\array_key_exists('negative', $data) && null === $data['negative']) { + unset($data['negative']); + } elseif (\array_key_exists('negative', $data) && $data['negative'] === null) { $object->setNegative(null); } - if (\array_key_exists('negativeOrZero', $data) && null !== $data['negativeOrZero']) { + if (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] !== null) { $object->setNegativeOrZero($data['negativeOrZero']); - } elseif (\array_key_exists('negativeOrZero', $data) && null === $data['negativeOrZero']) { + unset($data['negativeOrZero']); + } elseif (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] === null) { $object->setNegativeOrZero(null); } - if (\array_key_exists('positive', $data) && null !== $data['positive']) { + if (\array_key_exists('positive', $data) && $data['positive'] !== null) { $object->setPositive($data['positive']); - } elseif (\array_key_exists('positive', $data) && null === $data['positive']) { + unset($data['positive']); + } elseif (\array_key_exists('positive', $data) && $data['positive'] === null) { $object->setPositive(null); } - if (\array_key_exists('positiveOrZero', $data) && null !== $data['positiveOrZero']) { + if (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] !== null) { $object->setPositiveOrZero($data['positiveOrZero']); - } elseif (\array_key_exists('positiveOrZero', $data) && null === $data['positiveOrZero']) { + unset($data['positiveOrZero']); + } elseif (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] === null) { $object->setPositiveOrZero(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/BigNumberJsonldNormalizer.php b/src/Normalizer/BigNumberJsonldNormalizer.php index 1a07b74e..18aa6c11 100644 --- a/src/Normalizer/BigNumberJsonldNormalizer.php +++ b/src/Normalizer/BigNumberJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class BigNumberJsonldNormalizer implements DenormalizerInterface, NormalizerInte use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\BigNumberJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\BigNumberJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\BigNumberJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\BigNumberJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,63 +52,81 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('zero', $data) && null !== $data['zero']) { + if (\array_key_exists('zero', $data) && $data['zero'] !== null) { $object->setZero($data['zero']); - } elseif (\array_key_exists('zero', $data) && null === $data['zero']) { + unset($data['zero']); + } elseif (\array_key_exists('zero', $data) && $data['zero'] === null) { $object->setZero(null); } - if (\array_key_exists('negative', $data) && null !== $data['negative']) { + if (\array_key_exists('negative', $data) && $data['negative'] !== null) { $object->setNegative($data['negative']); - } elseif (\array_key_exists('negative', $data) && null === $data['negative']) { + unset($data['negative']); + } elseif (\array_key_exists('negative', $data) && $data['negative'] === null) { $object->setNegative(null); } - if (\array_key_exists('negativeOrZero', $data) && null !== $data['negativeOrZero']) { + if (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] !== null) { $object->setNegativeOrZero($data['negativeOrZero']); - } elseif (\array_key_exists('negativeOrZero', $data) && null === $data['negativeOrZero']) { + unset($data['negativeOrZero']); + } elseif (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] === null) { $object->setNegativeOrZero(null); } - if (\array_key_exists('positive', $data) && null !== $data['positive']) { + if (\array_key_exists('positive', $data) && $data['positive'] !== null) { $object->setPositive($data['positive']); - } elseif (\array_key_exists('positive', $data) && null === $data['positive']) { + unset($data['positive']); + } elseif (\array_key_exists('positive', $data) && $data['positive'] === null) { $object->setPositive(null); } - if (\array_key_exists('positiveOrZero', $data) && null !== $data['positiveOrZero']) { + if (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] !== null) { $object->setPositiveOrZero($data['positiveOrZero']); - } elseif (\array_key_exists('positiveOrZero', $data) && null === $data['positiveOrZero']) { + unset($data['positiveOrZero']); + } elseif (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] === null) { $object->setPositiveOrZero(null); } - if (\array_key_exists('sign', $data) && null !== $data['sign']) { + if (\array_key_exists('sign', $data) && $data['sign'] !== null) { $object->setSign($data['sign']); - } elseif (\array_key_exists('sign', $data) && null === $data['sign']) { + unset($data['sign']); + } elseif (\array_key_exists('sign', $data) && $data['sign'] === null) { $object->setSign(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/BigNumberNormalizer.php b/src/Normalizer/BigNumberNormalizer.php index 52a3999e..e616d6c7 100644 --- a/src/Normalizer/BigNumberNormalizer.php +++ b/src/Normalizer/BigNumberNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class BigNumberNormalizer implements DenormalizerInterface, NormalizerInterface, use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\BigNumber::class === $type; + return $type === 'Gyroscops\\Api\\Model\\BigNumber'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\BigNumber::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\BigNumber'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,48 +52,63 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('zero', $data) && null !== $data['zero']) { + if (\array_key_exists('zero', $data) && $data['zero'] !== null) { $object->setZero($data['zero']); - } elseif (\array_key_exists('zero', $data) && null === $data['zero']) { + unset($data['zero']); + } elseif (\array_key_exists('zero', $data) && $data['zero'] === null) { $object->setZero(null); } - if (\array_key_exists('negative', $data) && null !== $data['negative']) { + if (\array_key_exists('negative', $data) && $data['negative'] !== null) { $object->setNegative($data['negative']); - } elseif (\array_key_exists('negative', $data) && null === $data['negative']) { + unset($data['negative']); + } elseif (\array_key_exists('negative', $data) && $data['negative'] === null) { $object->setNegative(null); } - if (\array_key_exists('negativeOrZero', $data) && null !== $data['negativeOrZero']) { + if (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] !== null) { $object->setNegativeOrZero($data['negativeOrZero']); - } elseif (\array_key_exists('negativeOrZero', $data) && null === $data['negativeOrZero']) { + unset($data['negativeOrZero']); + } elseif (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] === null) { $object->setNegativeOrZero(null); } - if (\array_key_exists('positive', $data) && null !== $data['positive']) { + if (\array_key_exists('positive', $data) && $data['positive'] !== null) { $object->setPositive($data['positive']); - } elseif (\array_key_exists('positive', $data) && null === $data['positive']) { + unset($data['positive']); + } elseif (\array_key_exists('positive', $data) && $data['positive'] === null) { $object->setPositive(null); } - if (\array_key_exists('positiveOrZero', $data) && null !== $data['positiveOrZero']) { + if (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] !== null) { $object->setPositiveOrZero($data['positiveOrZero']); - } elseif (\array_key_exists('positiveOrZero', $data) && null === $data['positiveOrZero']) { + unset($data['positiveOrZero']); + } elseif (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] === null) { $object->setPositiveOrZero(null); } - if (\array_key_exists('sign', $data) && null !== $data['sign']) { + if (\array_key_exists('sign', $data) && $data['sign'] !== null) { $object->setSign($data['sign']); - } elseif (\array_key_exists('sign', $data) && null === $data['sign']) { + unset($data['sign']); + } elseif (\array_key_exists('sign', $data) && $data['sign'] === null) { $object->setSign(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/BuyableJsonldNormalizer.php b/src/Normalizer/BuyableJsonldNormalizer.php new file mode 100644 index 00000000..53da3704 --- /dev/null +++ b/src/Normalizer/BuyableJsonldNormalizer.php @@ -0,0 +1,205 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId2($data['id']); + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId2(null); + } + if (\array_key_exists('sku', $data) && $data['sku'] !== null) { + $object->setSku($data['sku']); + unset($data['sku']); + } elseif (\array_key_exists('sku', $data) && $data['sku'] === null) { + $object->setSku(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('slug', $data) && $data['slug'] !== null) { + $object->setSlug($data['slug']); + unset($data['slug']); + } elseif (\array_key_exists('slug', $data) && $data['slug'] === null) { + $object->setSlug(null); + } + if (\array_key_exists('shortDescription', $data) && $data['shortDescription'] !== null) { + $object->setShortDescription($data['shortDescription']); + unset($data['shortDescription']); + } elseif (\array_key_exists('shortDescription', $data) && $data['shortDescription'] === null) { + $object->setShortDescription(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('features', $data) && $data['features'] !== null) { + $values = []; + foreach ($data['features'] as $value) { + $values[] = $value; + } + $object->setFeatures($values); + unset($data['features']); + } elseif (\array_key_exists('features', $data) && $data['features'] === null) { + $object->setFeatures(null); + } + if (\array_key_exists('priceList', $data) && $data['priceList'] !== null) { + $values_1 = []; + foreach ($data['priceList'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'Gyroscops\\Api\\Model\\PriceJsonld', 'json', $context); + } + $object->setPriceList($values_1); + unset($data['priceList']); + } elseif (\array_key_exists('priceList', $data) && $data['priceList'] === null) { + $object->setPriceList(null); + } + if (\array_key_exists('rank', $data) && $data['rank'] !== null) { + $object->setRank($data['rank']); + unset($data['rank']); + } elseif (\array_key_exists('rank', $data) && $data['rank'] === null) { + $object->setRank(null); + } + if (\array_key_exists('active', $data) && $data['active'] !== null) { + $object->setActive($data['active']); + unset($data['active']); + } elseif (\array_key_exists('active', $data) && $data['active'] === null) { + $object->setActive(null); + } + if (\array_key_exists('activeFrom', $data) && $data['activeFrom'] !== null) { + $object->setActiveFrom(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['activeFrom'])); + unset($data['activeFrom']); + } elseif (\array_key_exists('activeFrom', $data) && $data['activeFrom'] === null) { + $object->setActiveFrom(null); + } + if (\array_key_exists('activeUntil', $data) && $data['activeUntil'] !== null) { + $object->setActiveUntil(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['activeUntil'])); + unset($data['activeUntil']); + } elseif (\array_key_exists('activeUntil', $data) && $data['activeUntil'] === null) { + $object->setActiveUntil(null); + } + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['sku'] = $object->getSku(); + $data['name'] = $object->getName(); + $data['slug'] = $object->getSlug(); + $data['shortDescription'] = $object->getShortDescription(); + $data['description'] = $object->getDescription(); + $values = []; + foreach ($object->getFeatures() as $value) { + $values[] = $value; + } + $data['features'] = $values; + if ($object->isInitialized('priceList') && null !== $object->getPriceList()) { + $values_1 = []; + foreach ($object->getPriceList() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['priceList'] = $values_1; + } + if ($object->isInitialized('rank') && null !== $object->getRank()) { + $data['rank'] = $object->getRank(); + } + if ($object->isInitialized('active') && null !== $object->getActive()) { + $data['active'] = $object->getActive(); + } + if ($object->isInitialized('activeFrom') && null !== $object->getActiveFrom()) { + $data['activeFrom'] = $object->getActiveFrom()->format('Y-m-d\\TH:i:sP'); + } + if ($object->isInitialized('activeUntil') && null !== $object->getActiveUntil()) { + $data['activeUntil'] = $object->getActiveUntil()->format('Y-m-d\\TH:i:sP'); + } + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; + } + } + + return $data; + } +} diff --git a/src/Normalizer/BuyableNormalizer.php b/src/Normalizer/BuyableNormalizer.php new file mode 100644 index 00000000..edaa6d9f --- /dev/null +++ b/src/Normalizer/BuyableNormalizer.php @@ -0,0 +1,187 @@ +setId($data['id']); + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('sku', $data) && $data['sku'] !== null) { + $object->setSku($data['sku']); + unset($data['sku']); + } elseif (\array_key_exists('sku', $data) && $data['sku'] === null) { + $object->setSku(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('slug', $data) && $data['slug'] !== null) { + $object->setSlug($data['slug']); + unset($data['slug']); + } elseif (\array_key_exists('slug', $data) && $data['slug'] === null) { + $object->setSlug(null); + } + if (\array_key_exists('shortDescription', $data) && $data['shortDescription'] !== null) { + $object->setShortDescription($data['shortDescription']); + unset($data['shortDescription']); + } elseif (\array_key_exists('shortDescription', $data) && $data['shortDescription'] === null) { + $object->setShortDescription(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('features', $data) && $data['features'] !== null) { + $values = []; + foreach ($data['features'] as $value) { + $values[] = $value; + } + $object->setFeatures($values); + unset($data['features']); + } elseif (\array_key_exists('features', $data) && $data['features'] === null) { + $object->setFeatures(null); + } + if (\array_key_exists('priceList', $data) && $data['priceList'] !== null) { + $values_1 = []; + foreach ($data['priceList'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'Gyroscops\\Api\\Model\\Price', 'json', $context); + } + $object->setPriceList($values_1); + unset($data['priceList']); + } elseif (\array_key_exists('priceList', $data) && $data['priceList'] === null) { + $object->setPriceList(null); + } + if (\array_key_exists('rank', $data) && $data['rank'] !== null) { + $object->setRank($data['rank']); + unset($data['rank']); + } elseif (\array_key_exists('rank', $data) && $data['rank'] === null) { + $object->setRank(null); + } + if (\array_key_exists('active', $data) && $data['active'] !== null) { + $object->setActive($data['active']); + unset($data['active']); + } elseif (\array_key_exists('active', $data) && $data['active'] === null) { + $object->setActive(null); + } + if (\array_key_exists('activeFrom', $data) && $data['activeFrom'] !== null) { + $object->setActiveFrom(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['activeFrom'])); + unset($data['activeFrom']); + } elseif (\array_key_exists('activeFrom', $data) && $data['activeFrom'] === null) { + $object->setActiveFrom(null); + } + if (\array_key_exists('activeUntil', $data) && $data['activeUntil'] !== null) { + $object->setActiveUntil(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['activeUntil'])); + unset($data['activeUntil']); + } elseif (\array_key_exists('activeUntil', $data) && $data['activeUntil'] === null) { + $object->setActiveUntil(null); + } + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['sku'] = $object->getSku(); + $data['name'] = $object->getName(); + $data['slug'] = $object->getSlug(); + $data['shortDescription'] = $object->getShortDescription(); + $data['description'] = $object->getDescription(); + $values = []; + foreach ($object->getFeatures() as $value) { + $values[] = $value; + } + $data['features'] = $values; + if ($object->isInitialized('priceList') && null !== $object->getPriceList()) { + $values_1 = []; + foreach ($object->getPriceList() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['priceList'] = $values_1; + } + if ($object->isInitialized('rank') && null !== $object->getRank()) { + $data['rank'] = $object->getRank(); + } + if ($object->isInitialized('active') && null !== $object->getActive()) { + $data['active'] = $object->getActive(); + } + if ($object->isInitialized('activeFrom') && null !== $object->getActiveFrom()) { + $data['activeFrom'] = $object->getActiveFrom()->format('Y-m-d\\TH:i:sP'); + } + if ($object->isInitialized('activeUntil') && null !== $object->getActiveUntil()) { + $data['activeUntil'] = $object->getActiveUntil()->format('Y-m-d\\TH:i:sP'); + } + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ColorJsonldReadNormalizer.php b/src/Normalizer/ColorJsonldReadNormalizer.php new file mode 100644 index 00000000..c046cc89 --- /dev/null +++ b/src/Normalizer/ColorJsonldReadNormalizer.php @@ -0,0 +1,96 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/CompilationCompilePipelineCommandInputJsonldNormalizer.php b/src/Normalizer/CompilationCompilePipelineCommandInputJsonldNormalizer.php deleted file mode 100644 index 2a4a58ef..00000000 --- a/src/Normalizer/CompilationCompilePipelineCommandInputJsonldNormalizer.php +++ /dev/null @@ -1,86 +0,0 @@ -setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { - $object->setContext(null); - } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { - $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - return []; - } -} diff --git a/src/Normalizer/CompilationCompilePipelineCommandJsonldNormalizer.php b/src/Normalizer/CompilationCompilePipelineCommandJsonldNormalizer.php deleted file mode 100644 index 73525b20..00000000 --- a/src/Normalizer/CompilationCompilePipelineCommandJsonldNormalizer.php +++ /dev/null @@ -1,96 +0,0 @@ -setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { - $object->setContext(null); - } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { - $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('id', $data) && null !== $data['id']) { - $object->setId2($this->denormalizer->denormalize($data['id'], \Gyroscops\Api\Model\PipelineIdJsonld::class, 'json', $context)); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { - $object->setId2(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId2()) { - $data['id'] = $this->normalizer->normalize($object->getId2(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/CompilationCompilePipelineCommandNormalizer.php b/src/Normalizer/CompilationCompilePipelineCommandNormalizer.php deleted file mode 100644 index 546fc7ca..00000000 --- a/src/Normalizer/CompilationCompilePipelineCommandNormalizer.php +++ /dev/null @@ -1,81 +0,0 @@ -setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { - $object->setId(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['id'] = $object->getId(); - } - - return $data; - } -} diff --git a/src/Normalizer/CompilationJsonldNormalizer.php b/src/Normalizer/CompilationJsonldNormalizer.php index c66cafd5..5f9319a9 100644 --- a/src/Normalizer/CompilationJsonldNormalizer.php +++ b/src/Normalizer/CompilationJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class CompilationJsonldNormalizer implements DenormalizerInterface, NormalizerIn use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\CompilationJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\CompilationJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\CompilationJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\CompilationJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,78 +52,112 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('createdAt', $data) && null !== $data['createdAt']) { + if (\array_key_exists('currentVersion', $data) && $data['currentVersion'] !== null) { + $object->setCurrentVersion($data['currentVersion']); + unset($data['currentVersion']); + } elseif (\array_key_exists('currentVersion', $data) && $data['currentVersion'] === null) { + $object->setCurrentVersion(null); + } + if (\array_key_exists('createdAt', $data) && $data['createdAt'] !== null) { $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['createdAt'])); - } elseif (\array_key_exists('createdAt', $data) && null === $data['createdAt']) { + unset($data['createdAt']); + } elseif (\array_key_exists('createdAt', $data) && $data['createdAt'] === null) { $object->setCreatedAt(null); } - if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { + if (\array_key_exists('workflow', $data) && $data['workflow'] !== null) { + $object->setWorkflow($data['workflow']); + unset($data['workflow']); + } elseif (\array_key_exists('workflow', $data) && $data['workflow'] === null) { + $object->setWorkflow(null); + } + if (\array_key_exists('pipeline', $data) && $data['pipeline'] !== null) { $object->setPipeline($data['pipeline']); - } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { + unset($data['pipeline']); + } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { $object->setPipeline(null); } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { + if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { + unset($data['workspace']); + } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { $object->setWorkspace(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { + if (\array_key_exists('organization', $data) && $data['organization'] !== null) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { + unset($data['organization']); + } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { $object->setOrganization(null); } - if (\array_key_exists('owner', $data) && null !== $data['owner']) { + if (\array_key_exists('owner', $data) && $data['owner'] !== null) { $object->setOwner($data['owner']); - } elseif (\array_key_exists('owner', $data) && null === $data['owner']) { + unset($data['owner']); + } elseif (\array_key_exists('owner', $data) && $data['owner'] === null) { $object->setOwner(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; $data['id'] = $object->getId2(); - if (null !== $object->getCreatedAt()) { + if ($object->isInitialized('currentVersion') && null !== $object->getCurrentVersion()) { + $data['currentVersion'] = $object->getCurrentVersion(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { $data['createdAt'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:sP'); } + if ($object->isInitialized('workflow') && null !== $object->getWorkflow()) { + $data['workflow'] = $object->getWorkflow(); + } $data['pipeline'] = $object->getPipeline(); - if (null !== $object->getWorkspace()) { + if ($object->isInitialized('workspace') && null !== $object->getWorkspace()) { $data['workspace'] = $object->getWorkspace(); } - if (null !== $object->getOrganization()) { + if ($object->isInitialized('organization') && null !== $object->getOrganization()) { $data['organization'] = $object->getOrganization(); } - if (null !== $object->getOwner()) { + if ($object->isInitialized('owner') && null !== $object->getOwner()) { $data['owner'] = $object->getOwner(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/CompilationNormalizer.php b/src/Normalizer/CompilationNormalizer.php index d8a58cc8..7a6c0f72 100644 --- a/src/Normalizer/CompilationNormalizer.php +++ b/src/Normalizer/CompilationNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class CompilationNormalizer implements DenormalizerInterface, NormalizerInterfac use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\Compilation::class === $type; + return $type === 'Gyroscops\\Api\\Model\\Compilation'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\Compilation::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\Compilation'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,63 +52,94 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('createdAt', $data) && null !== $data['createdAt']) { + if (\array_key_exists('currentVersion', $data) && $data['currentVersion'] !== null) { + $object->setCurrentVersion($data['currentVersion']); + unset($data['currentVersion']); + } elseif (\array_key_exists('currentVersion', $data) && $data['currentVersion'] === null) { + $object->setCurrentVersion(null); + } + if (\array_key_exists('createdAt', $data) && $data['createdAt'] !== null) { $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['createdAt'])); - } elseif (\array_key_exists('createdAt', $data) && null === $data['createdAt']) { + unset($data['createdAt']); + } elseif (\array_key_exists('createdAt', $data) && $data['createdAt'] === null) { $object->setCreatedAt(null); } - if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { + if (\array_key_exists('workflow', $data) && $data['workflow'] !== null) { + $object->setWorkflow($data['workflow']); + unset($data['workflow']); + } elseif (\array_key_exists('workflow', $data) && $data['workflow'] === null) { + $object->setWorkflow(null); + } + if (\array_key_exists('pipeline', $data) && $data['pipeline'] !== null) { $object->setPipeline($data['pipeline']); - } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { + unset($data['pipeline']); + } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { $object->setPipeline(null); } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { + if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { + unset($data['workspace']); + } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { $object->setWorkspace(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { + if (\array_key_exists('organization', $data) && $data['organization'] !== null) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { + unset($data['organization']); + } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { $object->setOrganization(null); } - if (\array_key_exists('owner', $data) && null !== $data['owner']) { + if (\array_key_exists('owner', $data) && $data['owner'] !== null) { $object->setOwner($data['owner']); - } elseif (\array_key_exists('owner', $data) && null === $data['owner']) { + unset($data['owner']); + } elseif (\array_key_exists('owner', $data) && $data['owner'] === null) { $object->setOwner(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; $data['id'] = $object->getId(); - if (null !== $object->getCreatedAt()) { + if ($object->isInitialized('currentVersion') && null !== $object->getCurrentVersion()) { + $data['currentVersion'] = $object->getCurrentVersion(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { $data['createdAt'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:sP'); } + if ($object->isInitialized('workflow') && null !== $object->getWorkflow()) { + $data['workflow'] = $object->getWorkflow(); + } $data['pipeline'] = $object->getPipeline(); - if (null !== $object->getWorkspace()) { + if ($object->isInitialized('workspace') && null !== $object->getWorkspace()) { $data['workspace'] = $object->getWorkspace(); } - if (null !== $object->getOrganization()) { + if ($object->isInitialized('organization') && null !== $object->getOrganization()) { $data['organization'] = $object->getOrganization(); } - if (null !== $object->getOwner()) { + if ($object->isInitialized('owner') && null !== $object->getOwner()) { $data['owner'] = $object->getOwner(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/ComposerAuthenticationJsonldNormalizer.php b/src/Normalizer/ComposerAuthenticationJsonldNormalizer.php new file mode 100644 index 00000000..1bc99134 --- /dev/null +++ b/src/Normalizer/ComposerAuthenticationJsonldNormalizer.php @@ -0,0 +1,112 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('url', $data) && $data['url'] !== null) { + $object->setUrl($data['url']); + unset($data['url']); + } elseif (\array_key_exists('url', $data) && $data['url'] === null) { + $object->setUrl(null); + } + if (\array_key_exists('token', $data) && $data['token'] !== null) { + $object->setToken($data['token']); + unset($data['token']); + } elseif (\array_key_exists('token', $data) && $data['token'] === null) { + $object->setToken(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('url') && null !== $object->getUrl()) { + $data['url'] = $object->getUrl(); + } + $data['token'] = $object->getToken(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ComposerAuthenticationNormalizer.php b/src/Normalizer/ComposerAuthenticationNormalizer.php new file mode 100644 index 00000000..a6d03a09 --- /dev/null +++ b/src/Normalizer/ComposerAuthenticationNormalizer.php @@ -0,0 +1,94 @@ +setUrl($data['url']); + unset($data['url']); + } elseif (\array_key_exists('url', $data) && $data['url'] === null) { + $object->setUrl(null); + } + if (\array_key_exists('token', $data) && $data['token'] !== null) { + $object->setToken($data['token']); + unset($data['token']); + } elseif (\array_key_exists('token', $data) && $data['token'] === null) { + $object->setToken(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('url') && null !== $object->getUrl()) { + $data['url'] = $object->getUrl(); + } + $data['token'] = $object->getToken(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ComposerAutoloadJsonldNormalizer.php b/src/Normalizer/ComposerAutoloadJsonldNormalizer.php new file mode 100644 index 00000000..bf654cde --- /dev/null +++ b/src/Normalizer/ComposerAutoloadJsonldNormalizer.php @@ -0,0 +1,129 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType2($data['type']); + unset($data['type']); + } elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType2(null); + } + if (\array_key_exists('namespace', $data) && $data['namespace'] !== null) { + $object->setNamespace($data['namespace']); + unset($data['namespace']); + } elseif (\array_key_exists('namespace', $data) && $data['namespace'] === null) { + $object->setNamespace(null); + } + if (\array_key_exists('paths', $data) && $data['paths'] !== null) { + $values = []; + foreach ($data['paths'] as $value) { + $values[] = $value; + } + $object->setPaths($values); + unset($data['paths']); + } elseif (\array_key_exists('paths', $data) && $data['paths'] === null) { + $object->setPaths(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type2') && null !== $object->getType2()) { + $data['type'] = $object->getType2(); + } + if ($object->isInitialized('namespace') && null !== $object->getNamespace()) { + $data['namespace'] = $object->getNamespace(); + } + $values = []; + foreach ($object->getPaths() as $value) { + $values[] = $value; + } + $data['paths'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ComposerAutoloadNormalizer.php b/src/Normalizer/ComposerAutoloadNormalizer.php new file mode 100644 index 00000000..5d161ffb --- /dev/null +++ b/src/Normalizer/ComposerAutoloadNormalizer.php @@ -0,0 +1,111 @@ +setType($data['type']); + unset($data['type']); + } elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('namespace', $data) && $data['namespace'] !== null) { + $object->setNamespace($data['namespace']); + unset($data['namespace']); + } elseif (\array_key_exists('namespace', $data) && $data['namespace'] === null) { + $object->setNamespace(null); + } + if (\array_key_exists('paths', $data) && $data['paths'] !== null) { + $values = []; + foreach ($data['paths'] as $value) { + $values[] = $value; + } + $object->setPaths($values); + unset($data['paths']); + } elseif (\array_key_exists('paths', $data) && $data['paths'] === null) { + $object->setPaths(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['type'] = $object->getType(); + } + if ($object->isInitialized('namespace') && null !== $object->getNamespace()) { + $data['namespace'] = $object->getNamespace(); + } + $values = []; + foreach ($object->getPaths() as $value) { + $values[] = $value; + } + $data['paths'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ComposerJsonldNormalizer.php b/src/Normalizer/ComposerJsonldNormalizer.php new file mode 100644 index 00000000..6a1a04bf --- /dev/null +++ b/src/Normalizer/ComposerJsonldNormalizer.php @@ -0,0 +1,164 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('autoloads', $data) && $data['autoloads'] !== null) { + $values = []; + foreach ($data['autoloads'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\ComposerAutoloadJsonld', 'json', $context); + } + $object->setAutoloads($values); + unset($data['autoloads']); + } elseif (\array_key_exists('autoloads', $data) && $data['autoloads'] === null) { + $object->setAutoloads(null); + } + if (\array_key_exists('packages', $data) && $data['packages'] !== null) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['packages'] as $key => $value_1) { + $values_1[$key] = $value_1; + } + $object->setPackages($values_1); + unset($data['packages']); + } elseif (\array_key_exists('packages', $data) && $data['packages'] === null) { + $object->setPackages(null); + } + if (\array_key_exists('repositories', $data) && $data['repositories'] !== null) { + $values_2 = []; + foreach ($data['repositories'] as $value_2) { + $values_2[] = $this->denormalizer->denormalize($value_2, 'Gyroscops\\Api\\Model\\ComposerRepositoryJsonld', 'json', $context); + } + $object->setRepositories($values_2); + unset($data['repositories']); + } elseif (\array_key_exists('repositories', $data) && $data['repositories'] === null) { + $object->setRepositories(null); + } + if (\array_key_exists('authentications', $data) && $data['authentications'] !== null) { + $values_3 = []; + foreach ($data['authentications'] as $value_3) { + $values_3[] = $this->denormalizer->denormalize($value_3, 'Gyroscops\\Api\\Model\\ComposerAuthenticationJsonld', 'json', $context); + } + $object->setAuthentications($values_3); + unset($data['authentications']); + } elseif (\array_key_exists('authentications', $data) && $data['authentications'] === null) { + $object->setAuthentications(null); + } + foreach ($data as $key_1 => $value_4) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_4; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('autoloads') && null !== $object->getAutoloads()) { + $values = []; + foreach ($object->getAutoloads() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['autoloads'] = $values; + } + if ($object->isInitialized('packages') && null !== $object->getPackages()) { + $values_1 = []; + foreach ($object->getPackages() as $key => $value_1) { + $values_1[$key] = $value_1; + } + $data['packages'] = $values_1; + } + if ($object->isInitialized('repositories') && null !== $object->getRepositories()) { + $values_2 = []; + foreach ($object->getRepositories() as $value_2) { + $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); + } + $data['repositories'] = $values_2; + } + if ($object->isInitialized('authentications') && null !== $object->getAuthentications()) { + $values_3 = []; + foreach ($object->getAuthentications() as $value_3) { + $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); + } + $data['authentications'] = $values_3; + } + foreach ($object as $key_1 => $value_4) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_4; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ComposerNormalizer.php b/src/Normalizer/ComposerNormalizer.php new file mode 100644 index 00000000..37ff0485 --- /dev/null +++ b/src/Normalizer/ComposerNormalizer.php @@ -0,0 +1,146 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\ComposerAutoload', 'json', $context); + } + $object->setAutoloads($values); + unset($data['autoloads']); + } elseif (\array_key_exists('autoloads', $data) && $data['autoloads'] === null) { + $object->setAutoloads(null); + } + if (\array_key_exists('packages', $data) && $data['packages'] !== null) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['packages'] as $key => $value_1) { + $values_1[$key] = $value_1; + } + $object->setPackages($values_1); + unset($data['packages']); + } elseif (\array_key_exists('packages', $data) && $data['packages'] === null) { + $object->setPackages(null); + } + if (\array_key_exists('repositories', $data) && $data['repositories'] !== null) { + $values_2 = []; + foreach ($data['repositories'] as $value_2) { + $values_2[] = $this->denormalizer->denormalize($value_2, 'Gyroscops\\Api\\Model\\ComposerRepository', 'json', $context); + } + $object->setRepositories($values_2); + unset($data['repositories']); + } elseif (\array_key_exists('repositories', $data) && $data['repositories'] === null) { + $object->setRepositories(null); + } + if (\array_key_exists('authentications', $data) && $data['authentications'] !== null) { + $values_3 = []; + foreach ($data['authentications'] as $value_3) { + $values_3[] = $this->denormalizer->denormalize($value_3, 'Gyroscops\\Api\\Model\\ComposerAuthentication', 'json', $context); + } + $object->setAuthentications($values_3); + unset($data['authentications']); + } elseif (\array_key_exists('authentications', $data) && $data['authentications'] === null) { + $object->setAuthentications(null); + } + foreach ($data as $key_1 => $value_4) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_4; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('autoloads') && null !== $object->getAutoloads()) { + $values = []; + foreach ($object->getAutoloads() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['autoloads'] = $values; + } + if ($object->isInitialized('packages') && null !== $object->getPackages()) { + $values_1 = []; + foreach ($object->getPackages() as $key => $value_1) { + $values_1[$key] = $value_1; + } + $data['packages'] = $values_1; + } + if ($object->isInitialized('repositories') && null !== $object->getRepositories()) { + $values_2 = []; + foreach ($object->getRepositories() as $value_2) { + $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); + } + $data['repositories'] = $values_2; + } + if ($object->isInitialized('authentications') && null !== $object->getAuthentications()) { + $values_3 = []; + foreach ($object->getAuthentications() as $value_3) { + $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); + } + $data['authentications'] = $values_3; + } + foreach ($object as $key_1 => $value_4) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_4; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ComposerRepositoryJsonldNormalizer.php b/src/Normalizer/ComposerRepositoryJsonldNormalizer.php new file mode 100644 index 00000000..a3ebea83 --- /dev/null +++ b/src/Normalizer/ComposerRepositoryJsonldNormalizer.php @@ -0,0 +1,121 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType2($data['type']); + unset($data['type']); + } elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType2(null); + } + if (\array_key_exists('url', $data) && $data['url'] !== null) { + $object->setUrl($data['url']); + unset($data['url']); + } elseif (\array_key_exists('url', $data) && $data['url'] === null) { + $object->setUrl(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['name'] = $object->getName(); + if ($object->isInitialized('type2') && null !== $object->getType2()) { + $data['type'] = $object->getType2(); + } + if ($object->isInitialized('url') && null !== $object->getUrl()) { + $data['url'] = $object->getUrl(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ComposerRepositoryNormalizer.php b/src/Normalizer/ComposerRepositoryNormalizer.php new file mode 100644 index 00000000..bfafcce4 --- /dev/null +++ b/src/Normalizer/ComposerRepositoryNormalizer.php @@ -0,0 +1,103 @@ +setName($data['name']); + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($data['type']); + unset($data['type']); + } elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('url', $data) && $data['url'] !== null) { + $object->setUrl($data['url']); + unset($data['url']); + } elseif (\array_key_exists('url', $data) && $data['url'] === null) { + $object->setUrl(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['name'] = $object->getName(); + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['type'] = $object->getType(); + } + if ($object->isInitialized('url') && null !== $object->getUrl()) { + $data['url'] = $object->getUrl(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ConfigurationChangeConfigurationValueInputJsonldNormalizer.php b/src/Normalizer/ConfigurationChangeConfigurationValueInputJsonldNormalizer.php index 896b25d0..661275f1 100644 --- a/src/Normalizer/ConfigurationChangeConfigurationValueInputJsonldNormalizer.php +++ b/src/Normalizer/ConfigurationChangeConfigurationValueInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ConfigurationChangeConfigurationValueInputJsonldNormalizer implements Deno use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ConfigurationChangeConfigurationValueInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ConfigurationChangeConfigurationValueInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ConfigurationChangeConfigurationValueInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ConfigurationChangeConfigurationValueInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,74 +52,70 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('contents', $data) && null !== $data['contents']) { + if (\array_key_exists('contents', $data) && $data['contents'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { + unset($data['contents']); + } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { $object->setContents(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { - $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { - $object->setOrganization(null); - } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { - $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { - $object->setWorkspace(null); - } - if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { - $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonld::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { + if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + $object->setIterator($this->denormalizer->denormalize($data['iterator'], 'Gyroscops\\Api\\Model\\TraversableJsonld', 'json', $context)); + unset($data['iterator']); + } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { $object->setIterator(null); } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getContents()) { + if ($object->isInitialized('contents') && null !== $object->getContents()) { $values = []; foreach ($object->getContents() as $key => $value) { $values[$key] = $value; } $data['contents'] = $values; } - if (null !== $object->getOrganization()) { - $data['organization'] = $object->getOrganization(); - } - if (null !== $object->getWorkspace()) { - $data['workspace'] = $object->getWorkspace(); - } - if (null !== $object->getIterator()) { + if ($object->isInitialized('iterator') && null !== $object->getIterator()) { $data['iterator'] = $this->normalizer->normalize($object->getIterator(), 'json', $context); } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/ConfigurationChangeConfigurationValueInputNormalizer.php b/src/Normalizer/ConfigurationChangeConfigurationValueInputNormalizer.php index 1a72cf69..515a6566 100644 --- a/src/Normalizer/ConfigurationChangeConfigurationValueInputNormalizer.php +++ b/src/Normalizer/ConfigurationChangeConfigurationValueInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ConfigurationChangeConfigurationValueInputNormalizer implements Denormaliz use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ConfigurationChangeConfigurationValueInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ConfigurationChangeConfigurationValueInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ConfigurationChangeConfigurationValueInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ConfigurationChangeConfigurationValueInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,58 +52,59 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('contents', $data) && null !== $data['contents']) { + if (\array_key_exists('contents', $data) && $data['contents'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { + unset($data['contents']); + } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { $object->setContents(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { - $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { - $object->setOrganization(null); - } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { - $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { - $object->setWorkspace(null); - } - if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { - $object->setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { + if (\array_key_exists('iterator', $data) && $data['iterator'] !== null) { + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['iterator'] as $key_1 => $value_1) { + $values_1[$key_1] = $value_1; + } + $object->setIterator($values_1); + unset($data['iterator']); + } elseif (\array_key_exists('iterator', $data) && $data['iterator'] === null) { $object->setIterator(null); } + foreach ($data as $key_2 => $value_2) { + if (preg_match('/.*/', (string) $key_2)) { + $object[$key_2] = $value_2; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getContents()) { + if ($object->isInitialized('contents') && null !== $object->getContents()) { $values = []; foreach ($object->getContents() as $key => $value) { $values[$key] = $value; } $data['contents'] = $values; } - if (null !== $object->getOrganization()) { - $data['organization'] = $object->getOrganization(); - } - if (null !== $object->getWorkspace()) { - $data['workspace'] = $object->getWorkspace(); + if ($object->isInitialized('iterator') && null !== $object->getIterator()) { + $values_1 = []; + foreach ($object->getIterator() as $key_1 => $value_1) { + $values_1[$key_1] = $value_1; + } + $data['iterator'] = $values_1; } - if (null !== $object->getIterator()) { - $data['iterator'] = $object->getIterator(); + foreach ($object as $key_2 => $value_2) { + if (preg_match('/.*/', (string) $key_2)) { + $data[$key_2] = $value_2; + } } return $data; diff --git a/src/Normalizer/ConfigurationCreateConfigurationInputJsonldNormalizer.php b/src/Normalizer/ConfigurationCreateConfigurationInputJsonldNormalizer.php index 1dc8bca8..b9e6eff3 100644 --- a/src/Normalizer/ConfigurationCreateConfigurationInputJsonldNormalizer.php +++ b/src/Normalizer/ConfigurationCreateConfigurationInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ConfigurationCreateConfigurationInputJsonldNormalizer implements Denormali use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ConfigurationCreateConfigurationInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ConfigurationCreateConfigurationInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ConfigurationCreateConfigurationInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ConfigurationCreateConfigurationInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,89 +52,78 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('description', $data) && null !== $data['description']) { + if (\array_key_exists('description', $data) && $data['description'] !== null) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && null === $data['description']) { + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { $object->setDescription(null); } - if (\array_key_exists('contents', $data) && null !== $data['contents']) { + if (\array_key_exists('contents', $data) && $data['contents'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { + unset($data['contents']); + } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { $object->setContents(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { - $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { - $object->setOrganization(null); - } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { - $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { - $object->setWorkspace(null); - } - if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { - $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonld::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { - $object->setIterator(null); + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getDescription()) { + if ($object->isInitialized('description') && null !== $object->getDescription()) { $data['description'] = $object->getDescription(); } - if (null !== $object->getContents()) { + if ($object->isInitialized('contents') && null !== $object->getContents()) { $values = []; foreach ($object->getContents() as $key => $value) { $values[$key] = $value; } $data['contents'] = $values; } - if (null !== $object->getOrganization()) { - $data['organization'] = $object->getOrganization(); - } - if (null !== $object->getWorkspace()) { - $data['workspace'] = $object->getWorkspace(); - } - if (null !== $object->getIterator()) { - $data['iterator'] = $this->normalizer->normalize($object->getIterator(), 'json', $context); + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } } return $data; diff --git a/src/Normalizer/ConfigurationCreateConfigurationInputNormalizer.php b/src/Normalizer/ConfigurationCreateConfigurationInputNormalizer.php index 2587526c..f8d53b75 100644 --- a/src/Normalizer/ConfigurationCreateConfigurationInputNormalizer.php +++ b/src/Normalizer/ConfigurationCreateConfigurationInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ConfigurationCreateConfigurationInputNormalizer implements DenormalizerInt use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ConfigurationCreateConfigurationInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ConfigurationCreateConfigurationInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ConfigurationCreateConfigurationInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ConfigurationCreateConfigurationInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,74 +52,60 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('description', $data) && null !== $data['description']) { + if (\array_key_exists('description', $data) && $data['description'] !== null) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && null === $data['description']) { + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { $object->setDescription(null); } - if (\array_key_exists('contents', $data) && null !== $data['contents']) { + if (\array_key_exists('contents', $data) && $data['contents'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { + unset($data['contents']); + } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { $object->setContents(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { - $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { - $object->setOrganization(null); - } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { - $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { - $object->setWorkspace(null); - } - if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { - $object->setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { - $object->setIterator(null); + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getDescription()) { + if ($object->isInitialized('description') && null !== $object->getDescription()) { $data['description'] = $object->getDescription(); } - if (null !== $object->getContents()) { + if ($object->isInitialized('contents') && null !== $object->getContents()) { $values = []; foreach ($object->getContents() as $key => $value) { $values[$key] = $value; } $data['contents'] = $values; } - if (null !== $object->getOrganization()) { - $data['organization'] = $object->getOrganization(); - } - if (null !== $object->getWorkspace()) { - $data['workspace'] = $object->getWorkspace(); - } - if (null !== $object->getIterator()) { - $data['iterator'] = $object->getIterator(); + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } } return $data; diff --git a/src/Normalizer/ConfigurationEditNormalizer.php b/src/Normalizer/ConfigurationEditNormalizer.php index 3f6e7b67..870fefdd 100644 --- a/src/Normalizer/ConfigurationEditNormalizer.php +++ b/src/Normalizer/ConfigurationEditNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ConfigurationEditNormalizer implements DenormalizerInterface, NormalizerIn use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ConfigurationEdit::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ConfigurationEdit'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ConfigurationEdit::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ConfigurationEdit'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,35 +52,44 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('description', $data) && null !== $data['description']) { + if (\array_key_exists('description', $data) && $data['description'] !== null) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && null === $data['description']) { + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { $object->setDescription(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getDescription()) { + if ($object->isInitialized('description') && null !== $object->getDescription()) { $data['description'] = $object->getDescription(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/ConfigurationIdJsonldNormalizer.php b/src/Normalizer/ConfigurationIdJsonldNormalizer.php deleted file mode 100644 index 45efaffe..00000000 --- a/src/Normalizer/ConfigurationIdJsonldNormalizer.php +++ /dev/null @@ -1,86 +0,0 @@ -setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { - $object->setContext(null); - } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { - $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - return []; - } -} diff --git a/src/Normalizer/ConfigurationJsonldEditNormalizer.php b/src/Normalizer/ConfigurationJsonldEditNormalizer.php index ced66ddd..e0d03d0d 100644 --- a/src/Normalizer/ConfigurationJsonldEditNormalizer.php +++ b/src/Normalizer/ConfigurationJsonldEditNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ConfigurationJsonldEditNormalizer implements DenormalizerInterface, Normal use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ConfigurationJsonldEdit::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ConfigurationJsonldEdit'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ConfigurationJsonldEdit::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ConfigurationJsonldEdit'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,50 +52,62 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('description', $data) && null !== $data['description']) { + if (\array_key_exists('description', $data) && $data['description'] !== null) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && null === $data['description']) { + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { $object->setDescription(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getDescription()) { + if ($object->isInitialized('description') && null !== $object->getDescription()) { $data['description'] = $object->getDescription(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/ConfigurationJsonldNormalizer.php b/src/Normalizer/ConfigurationJsonldNormalizer.php index 1c342030..496024ef 100644 --- a/src/Normalizer/ConfigurationJsonldNormalizer.php +++ b/src/Normalizer/ConfigurationJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ConfigurationJsonldNormalizer implements DenormalizerInterface, Normalizer use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ConfigurationJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ConfigurationJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ConfigurationJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ConfigurationJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,95 +52,104 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('slug', $data) && null !== $data['slug']) { + if (\array_key_exists('slug', $data) && $data['slug'] !== null) { $object->setSlug($data['slug']); - } elseif (\array_key_exists('slug', $data) && null === $data['slug']) { + unset($data['slug']); + } elseif (\array_key_exists('slug', $data) && $data['slug'] === null) { $object->setSlug(null); } - if (\array_key_exists('description', $data) && null !== $data['description']) { + if (\array_key_exists('description', $data) && $data['description'] !== null) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && null === $data['description']) { + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { $object->setDescription(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { + if (\array_key_exists('organization', $data) && $data['organization'] !== null) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { + unset($data['organization']); + } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { + if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { + unset($data['workspace']); + } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { $object->setWorkspace(null); } - if (\array_key_exists('contents', $data) && null !== $data['contents']) { + if (\array_key_exists('contents', $data) && $data['contents'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { + unset($data['contents']); + } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { $object->setContents(null); } - if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { - $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonld::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { - $object->setIterator(null); + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getSlug()) { + if ($object->isInitialized('slug') && null !== $object->getSlug()) { $data['slug'] = $object->getSlug(); } - if (null !== $object->getDescription()) { + if ($object->isInitialized('description') && null !== $object->getDescription()) { $data['description'] = $object->getDescription(); } - if (null !== $object->getOrganization()) { + if ($object->isInitialized('organization') && null !== $object->getOrganization()) { $data['organization'] = $object->getOrganization(); } - if (null !== $object->getWorkspace()) { + if ($object->isInitialized('workspace') && null !== $object->getWorkspace()) { $data['workspace'] = $object->getWorkspace(); } - if (null !== $object->getIterator()) { - $data['iterator'] = $this->normalizer->normalize($object->getIterator(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } return $data; diff --git a/src/Normalizer/ConfigurationJsonldReadNormalizer.php b/src/Normalizer/ConfigurationJsonldReadNormalizer.php index 1fba0bfc..5280415a 100644 --- a/src/Normalizer/ConfigurationJsonldReadNormalizer.php +++ b/src/Normalizer/ConfigurationJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ConfigurationJsonldReadNormalizer implements DenormalizerInterface, Normal use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ConfigurationJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ConfigurationJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ConfigurationJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ConfigurationJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,64 +52,96 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('description', $data) && null !== $data['description']) { + if (\array_key_exists('description', $data) && $data['description'] !== null) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && null === $data['description']) { + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { $object->setDescription(null); } - if (\array_key_exists('contents', $data) && null !== $data['contents']) { + if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + $object->setOrganization($data['organization']); + unset($data['organization']); + } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + $object->setOrganization(null); + } + if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + $object->setWorkspace($data['workspace']); + unset($data['workspace']); + } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + $object->setWorkspace(null); + } + if (\array_key_exists('contents', $data) && $data['contents'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { + unset($data['contents']); + } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { $object->setContents(null); } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getDescription()) { + if ($object->isInitialized('description') && null !== $object->getDescription()) { $data['description'] = $object->getDescription(); } + if ($object->isInitialized('organization') && null !== $object->getOrganization()) { + $data['organization'] = $object->getOrganization(); + } + if ($object->isInitialized('workspace') && null !== $object->getWorkspace()) { + $data['workspace'] = $object->getWorkspace(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/ConfigurationNormalizer.php b/src/Normalizer/ConfigurationNormalizer.php index cd700aaf..e50993f2 100644 --- a/src/Normalizer/ConfigurationNormalizer.php +++ b/src/Normalizer/ConfigurationNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ConfigurationNormalizer implements DenormalizerInterface, NormalizerInterf use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\Configuration::class === $type; + return $type === 'Gyroscops\\Api\\Model\\Configuration'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\Configuration::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\Configuration'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,80 +52,86 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('slug', $data) && null !== $data['slug']) { + if (\array_key_exists('slug', $data) && $data['slug'] !== null) { $object->setSlug($data['slug']); - } elseif (\array_key_exists('slug', $data) && null === $data['slug']) { + unset($data['slug']); + } elseif (\array_key_exists('slug', $data) && $data['slug'] === null) { $object->setSlug(null); } - if (\array_key_exists('description', $data) && null !== $data['description']) { + if (\array_key_exists('description', $data) && $data['description'] !== null) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && null === $data['description']) { + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { $object->setDescription(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { + if (\array_key_exists('organization', $data) && $data['organization'] !== null) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { + unset($data['organization']); + } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { + if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { + unset($data['workspace']); + } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { $object->setWorkspace(null); } - if (\array_key_exists('contents', $data) && null !== $data['contents']) { + if (\array_key_exists('contents', $data) && $data['contents'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { + unset($data['contents']); + } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { $object->setContents(null); } - if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { - $object->setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { - $object->setIterator(null); + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getSlug()) { + if ($object->isInitialized('slug') && null !== $object->getSlug()) { $data['slug'] = $object->getSlug(); } - if (null !== $object->getDescription()) { + if ($object->isInitialized('description') && null !== $object->getDescription()) { $data['description'] = $object->getDescription(); } - if (null !== $object->getOrganization()) { + if ($object->isInitialized('organization') && null !== $object->getOrganization()) { $data['organization'] = $object->getOrganization(); } - if (null !== $object->getWorkspace()) { + if ($object->isInitialized('workspace') && null !== $object->getWorkspace()) { $data['workspace'] = $object->getWorkspace(); } - if (null !== $object->getIterator()) { - $data['iterator'] = $object->getIterator(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } return $data; diff --git a/src/Normalizer/ConfigurationReadNormalizer.php b/src/Normalizer/ConfigurationReadNormalizer.php index fc8208d2..87cdb862 100644 --- a/src/Normalizer/ConfigurationReadNormalizer.php +++ b/src/Normalizer/ConfigurationReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ConfigurationReadNormalizer implements DenormalizerInterface, NormalizerIn use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ConfigurationRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ConfigurationRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ConfigurationRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ConfigurationRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,49 +52,78 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('description', $data) && null !== $data['description']) { + if (\array_key_exists('description', $data) && $data['description'] !== null) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && null === $data['description']) { + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { $object->setDescription(null); } - if (\array_key_exists('contents', $data) && null !== $data['contents']) { + if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + $object->setOrganization($data['organization']); + unset($data['organization']); + } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + $object->setOrganization(null); + } + if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + $object->setWorkspace($data['workspace']); + unset($data['workspace']); + } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + $object->setWorkspace(null); + } + if (\array_key_exists('contents', $data) && $data['contents'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { + unset($data['contents']); + } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { $object->setContents(null); } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getDescription()) { + if ($object->isInitialized('description') && null !== $object->getDescription()) { $data['description'] = $object->getDescription(); } + if ($object->isInitialized('organization') && null !== $object->getOrganization()) { + $data['organization'] = $object->getOrganization(); + } + if ($object->isInitialized('workspace') && null !== $object->getWorkspace()) { + $data['workspace'] = $object->getWorkspace(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/ConfigurationRemoveConfigurationValueInputJsonldNormalizer.php b/src/Normalizer/ConfigurationRemoveConfigurationValueInputJsonldNormalizer.php index c98f5732..5c202a40 100644 --- a/src/Normalizer/ConfigurationRemoveConfigurationValueInputJsonldNormalizer.php +++ b/src/Normalizer/ConfigurationRemoveConfigurationValueInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ConfigurationRemoveConfigurationValueInputJsonldNormalizer implements Deno use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ConfigurationRemoveConfigurationValueInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ConfigurationRemoveConfigurationValueInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ConfigurationRemoveConfigurationValueInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ConfigurationRemoveConfigurationValueInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,81 +52,60 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { - $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { - $object->setId2(null); - } - if (\array_key_exists('contents', $data) && null !== $data['contents']) { + if (\array_key_exists('contents', $data) && $data['contents'] !== null) { $values = []; foreach ($data['contents'] as $value) { $values[] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { + unset($data['contents']); + } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { $object->setContents(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { - $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { - $object->setOrganization(null); - } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { - $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { - $object->setWorkspace(null); - } - if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { - $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonld::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { - $object->setIterator(null); + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getId2()) { - $data['id'] = $object->getId2(); - } - if (null !== $object->getContents()) { + if ($object->isInitialized('contents') && null !== $object->getContents()) { $values = []; foreach ($object->getContents() as $value) { $values[] = $value; } $data['contents'] = $values; } - if (null !== $object->getOrganization()) { - $data['organization'] = $object->getOrganization(); - } - if (null !== $object->getWorkspace()) { - $data['workspace'] = $object->getWorkspace(); - } - if (null !== $object->getIterator()) { - $data['iterator'] = $this->normalizer->normalize($object->getIterator(), 'json', $context); + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } return $data; diff --git a/src/Normalizer/ConfigurationRemoveConfigurationValueInputNormalizer.php b/src/Normalizer/ConfigurationRemoveConfigurationValueInputNormalizer.php index b4163b10..d3b37c03 100644 --- a/src/Normalizer/ConfigurationRemoveConfigurationValueInputNormalizer.php +++ b/src/Normalizer/ConfigurationRemoveConfigurationValueInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ConfigurationRemoveConfigurationValueInputNormalizer implements Denormaliz use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ConfigurationRemoveConfigurationValueInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ConfigurationRemoveConfigurationValueInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ConfigurationRemoveConfigurationValueInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ConfigurationRemoveConfigurationValueInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,66 +52,42 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { - $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { - $object->setId(null); - } - if (\array_key_exists('contents', $data) && null !== $data['contents']) { + if (\array_key_exists('contents', $data) && $data['contents'] !== null) { $values = []; foreach ($data['contents'] as $value) { $values[] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { + unset($data['contents']); + } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { $object->setContents(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { - $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { - $object->setOrganization(null); - } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { - $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { - $object->setWorkspace(null); - } - if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { - $object->setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { - $object->setIterator(null); + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getId()) { - $data['id'] = $object->getId(); - } - if (null !== $object->getContents()) { + if ($object->isInitialized('contents') && null !== $object->getContents()) { $values = []; foreach ($object->getContents() as $value) { $values[] = $value; } $data['contents'] = $values; } - if (null !== $object->getOrganization()) { - $data['organization'] = $object->getOrganization(); - } - if (null !== $object->getWorkspace()) { - $data['workspace'] = $object->getWorkspace(); - } - if (null !== $object->getIterator()) { - $data['iterator'] = $object->getIterator(); + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } return $data; diff --git a/src/Normalizer/ContextJsonldNormalizer.php b/src/Normalizer/ContextJsonldNormalizer.php index 174ac7ec..86e646b8 100644 --- a/src/Normalizer/ContextJsonldNormalizer.php +++ b/src/Normalizer/ContextJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ContextJsonldNormalizer implements DenormalizerInterface, NormalizerInterf use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ContextJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ContextJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ContextJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ContextJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,43 +52,57 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('step', $data) && null !== $data['step']) { + if (\array_key_exists('step', $data) && $data['step'] !== null) { $object->setStep($data['step']); - } elseif (\array_key_exists('step', $data) && null === $data['step']) { + unset($data['step']); + } elseif (\array_key_exists('step', $data) && $data['step'] === null) { $object->setStep(null); } - if (\array_key_exists('fixedScale', $data) && null !== $data['fixedScale']) { + if (\array_key_exists('fixedScale', $data) && $data['fixedScale'] !== null) { $object->setFixedScale($data['fixedScale']); - } elseif (\array_key_exists('fixedScale', $data) && null === $data['fixedScale']) { + unset($data['fixedScale']); + } elseif (\array_key_exists('fixedScale', $data) && $data['fixedScale'] === null) { $object->setFixedScale(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/ContextNormalizer.php b/src/Normalizer/ContextNormalizer.php index 9372de0a..30593c09 100644 --- a/src/Normalizer/ContextNormalizer.php +++ b/src/Normalizer/ContextNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ContextNormalizer implements DenormalizerInterface, NormalizerInterface, D use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\Context::class === $type; + return $type === 'Gyroscops\\Api\\Model\\Context'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\Context::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\Context'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,28 +52,39 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('step', $data) && null !== $data['step']) { + if (\array_key_exists('step', $data) && $data['step'] !== null) { $object->setStep($data['step']); - } elseif (\array_key_exists('step', $data) && null === $data['step']) { + unset($data['step']); + } elseif (\array_key_exists('step', $data) && $data['step'] === null) { $object->setStep(null); } - if (\array_key_exists('fixedScale', $data) && null !== $data['fixedScale']) { + if (\array_key_exists('fixedScale', $data) && $data['fixedScale'] !== null) { $object->setFixedScale($data['fixedScale']); - } elseif (\array_key_exists('fixedScale', $data) && null === $data['fixedScale']) { + unset($data['fixedScale']); + } elseif (\array_key_exists('fixedScale', $data) && $data['fixedScale'] === null) { $object->setFixedScale(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/CreateSecretInputJsonldNormalizer.php b/src/Normalizer/CreateSecretInputJsonldNormalizer.php index a8e26a81..f014c0b5 100644 --- a/src/Normalizer/CreateSecretInputJsonldNormalizer.php +++ b/src/Normalizer/CreateSecretInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class CreateSecretInputJsonldNormalizer implements DenormalizerInterface, Normal use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\CreateSecretInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\CreateSecretInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\CreateSecretInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\CreateSecretInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,89 +52,78 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('description', $data) && null !== $data['description']) { + if (\array_key_exists('description', $data) && $data['description'] !== null) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && null === $data['description']) { + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { $object->setDescription(null); } - if (\array_key_exists('contents', $data) && null !== $data['contents']) { + if (\array_key_exists('contents', $data) && $data['contents'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { + unset($data['contents']); + } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { $object->setContents(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { - $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { - $object->setOrganization(null); - } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { - $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { - $object->setWorkspace(null); - } - if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { - $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonld::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { - $object->setIterator(null); + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getDescription()) { + if ($object->isInitialized('description') && null !== $object->getDescription()) { $data['description'] = $object->getDescription(); } - if (null !== $object->getContents()) { + if ($object->isInitialized('contents') && null !== $object->getContents()) { $values = []; foreach ($object->getContents() as $key => $value) { $values[$key] = $value; } $data['contents'] = $values; } - if (null !== $object->getOrganization()) { - $data['organization'] = $object->getOrganization(); - } - if (null !== $object->getWorkspace()) { - $data['workspace'] = $object->getWorkspace(); - } - if (null !== $object->getIterator()) { - $data['iterator'] = $this->normalizer->normalize($object->getIterator(), 'json', $context); + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } } return $data; diff --git a/src/Normalizer/CreateSecretInputNormalizer.php b/src/Normalizer/CreateSecretInputNormalizer.php index 3e9aa889..2669e16a 100644 --- a/src/Normalizer/CreateSecretInputNormalizer.php +++ b/src/Normalizer/CreateSecretInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class CreateSecretInputNormalizer implements DenormalizerInterface, NormalizerIn use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\CreateSecretInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\CreateSecretInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\CreateSecretInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\CreateSecretInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,74 +52,60 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('description', $data) && null !== $data['description']) { + if (\array_key_exists('description', $data) && $data['description'] !== null) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && null === $data['description']) { + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { $object->setDescription(null); } - if (\array_key_exists('contents', $data) && null !== $data['contents']) { + if (\array_key_exists('contents', $data) && $data['contents'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { + unset($data['contents']); + } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { $object->setContents(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { - $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { - $object->setOrganization(null); - } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { - $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { - $object->setWorkspace(null); - } - if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { - $object->setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { - $object->setIterator(null); + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getDescription()) { + if ($object->isInitialized('description') && null !== $object->getDescription()) { $data['description'] = $object->getDescription(); } - if (null !== $object->getContents()) { + if ($object->isInitialized('contents') && null !== $object->getContents()) { $values = []; foreach ($object->getContents() as $key => $value) { $values[$key] = $value; } $data['contents'] = $values; } - if (null !== $object->getOrganization()) { - $data['organization'] = $object->getOrganization(); - } - if (null !== $object->getWorkspace()) { - $data['workspace'] = $object->getWorkspace(); - } - if (null !== $object->getIterator()) { - $data['iterator'] = $object->getIterator(); + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } } return $data; diff --git a/src/Normalizer/CredentialsNormalizer.php b/src/Normalizer/CredentialsNormalizer.php index 93b68089..8ac4e061 100644 --- a/src/Normalizer/CredentialsNormalizer.php +++ b/src/Normalizer/CredentialsNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class CredentialsNormalizer implements DenormalizerInterface, NormalizerInterfac use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\Credentials::class === $type; + return $type === 'Gyroscops\\Api\\Model\\Credentials'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\Credentials::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\Credentials'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,34 +52,40 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('username', $data) && null !== $data['username']) { + if (\array_key_exists('username', $data) && $data['username'] !== null) { $object->setUsername($data['username']); - } elseif (\array_key_exists('username', $data) && null === $data['username']) { + unset($data['username']); + } elseif (\array_key_exists('username', $data) && $data['username'] === null) { $object->setUsername(null); } - if (\array_key_exists('password', $data) && null !== $data['password']) { + if (\array_key_exists('password', $data) && $data['password'] !== null) { $object->setPassword($data['password']); - } elseif (\array_key_exists('password', $data) && null === $data['password']) { + unset($data['password']); + } elseif (\array_key_exists('password', $data) && $data['password'] === null) { $object->setPassword(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { + if (\array_key_exists('organization', $data) && $data['organization'] !== null) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { + unset($data['organization']); + } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { + if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { + unset($data['workspace']); + } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { $object->setWorkspace(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -89,12 +93,17 @@ public function normalize($object, $format = null, array $context = []) $data = []; $data['username'] = $object->getUsername(); $data['password'] = $object->getPassword(); - if (null !== $object->getOrganization()) { + if ($object->isInitialized('organization') && null !== $object->getOrganization()) { $data['organization'] = $object->getOrganization(); } - if (null !== $object->getWorkspace()) { + if ($object->isInitialized('workspace') && null !== $object->getWorkspace()) { $data['workspace'] = $object->getWorkspace(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/CurrencyJsonldNormalizer.php b/src/Normalizer/CurrencyJsonldNormalizer.php index 881eac4e..9d947798 100644 --- a/src/Normalizer/CurrencyJsonldNormalizer.php +++ b/src/Normalizer/CurrencyJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class CurrencyJsonldNormalizer implements DenormalizerInterface, NormalizerInter use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\CurrencyJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\CurrencyJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\CurrencyJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\CurrencyJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,66 +52,80 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('currencyCode', $data) && null !== $data['currencyCode']) { + if (\array_key_exists('currencyCode', $data) && $data['currencyCode'] !== null) { $object->setCurrencyCode($data['currencyCode']); - } elseif (\array_key_exists('currencyCode', $data) && null === $data['currencyCode']) { + unset($data['currencyCode']); + } elseif (\array_key_exists('currencyCode', $data) && $data['currencyCode'] === null) { $object->setCurrencyCode(null); } - if (\array_key_exists('numericCode', $data) && null !== $data['numericCode']) { + if (\array_key_exists('numericCode', $data) && $data['numericCode'] !== null) { $object->setNumericCode($data['numericCode']); - } elseif (\array_key_exists('numericCode', $data) && null === $data['numericCode']) { + unset($data['numericCode']); + } elseif (\array_key_exists('numericCode', $data) && $data['numericCode'] === null) { $object->setNumericCode(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('defaultFractionDigits', $data) && null !== $data['defaultFractionDigits']) { + if (\array_key_exists('defaultFractionDigits', $data) && $data['defaultFractionDigits'] !== null) { $object->setDefaultFractionDigits($data['defaultFractionDigits']); - } elseif (\array_key_exists('defaultFractionDigits', $data) && null === $data['defaultFractionDigits']) { + unset($data['defaultFractionDigits']); + } elseif (\array_key_exists('defaultFractionDigits', $data) && $data['defaultFractionDigits'] === null) { $object->setDefaultFractionDigits(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getCurrencyCode()) { + if ($object->isInitialized('currencyCode') && null !== $object->getCurrencyCode()) { $data['currencyCode'] = $object->getCurrencyCode(); } - if (null !== $object->getNumericCode()) { + if ($object->isInitialized('numericCode') && null !== $object->getNumericCode()) { $data['numericCode'] = $object->getNumericCode(); } - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getDefaultFractionDigits()) { + if ($object->isInitialized('defaultFractionDigits') && null !== $object->getDefaultFractionDigits()) { $data['defaultFractionDigits'] = $object->getDefaultFractionDigits(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/CurrencyNormalizer.php b/src/Normalizer/CurrencyNormalizer.php index eea651bb..1235c9a4 100644 --- a/src/Normalizer/CurrencyNormalizer.php +++ b/src/Normalizer/CurrencyNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class CurrencyNormalizer implements DenormalizerInterface, NormalizerInterface, use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\Currency::class === $type; + return $type === 'Gyroscops\\Api\\Model\\Currency'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\Currency::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\Currency'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,51 +52,62 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('currencyCode', $data) && null !== $data['currencyCode']) { + if (\array_key_exists('currencyCode', $data) && $data['currencyCode'] !== null) { $object->setCurrencyCode($data['currencyCode']); - } elseif (\array_key_exists('currencyCode', $data) && null === $data['currencyCode']) { + unset($data['currencyCode']); + } elseif (\array_key_exists('currencyCode', $data) && $data['currencyCode'] === null) { $object->setCurrencyCode(null); } - if (\array_key_exists('numericCode', $data) && null !== $data['numericCode']) { + if (\array_key_exists('numericCode', $data) && $data['numericCode'] !== null) { $object->setNumericCode($data['numericCode']); - } elseif (\array_key_exists('numericCode', $data) && null === $data['numericCode']) { + unset($data['numericCode']); + } elseif (\array_key_exists('numericCode', $data) && $data['numericCode'] === null) { $object->setNumericCode(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('defaultFractionDigits', $data) && null !== $data['defaultFractionDigits']) { + if (\array_key_exists('defaultFractionDigits', $data) && $data['defaultFractionDigits'] !== null) { $object->setDefaultFractionDigits($data['defaultFractionDigits']); - } elseif (\array_key_exists('defaultFractionDigits', $data) && null === $data['defaultFractionDigits']) { + unset($data['defaultFractionDigits']); + } elseif (\array_key_exists('defaultFractionDigits', $data) && $data['defaultFractionDigits'] === null) { $object->setDefaultFractionDigits(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getCurrencyCode()) { + if ($object->isInitialized('currencyCode') && null !== $object->getCurrencyCode()) { $data['currencyCode'] = $object->getCurrencyCode(); } - if (null !== $object->getNumericCode()) { + if ($object->isInitialized('numericCode') && null !== $object->getNumericCode()) { $data['numericCode'] = $object->getNumericCode(); } - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getDefaultFractionDigits()) { + if ($object->isInitialized('defaultFractionDigits') && null !== $object->getDefaultFractionDigits()) { $data['defaultFractionDigits'] = $object->getDefaultFractionDigits(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/EnvironmentAddMultipleVariableFromConfigurationInputJsonldNormalizer.php b/src/Normalizer/EnvironmentAddMultipleVariableFromConfigurationInputJsonldNormalizer.php index 5bc65ca1..cd58819b 100644 --- a/src/Normalizer/EnvironmentAddMultipleVariableFromConfigurationInputJsonldNormalizer.php +++ b/src/Normalizer/EnvironmentAddMultipleVariableFromConfigurationInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class EnvironmentAddMultipleVariableFromConfigurationInputJsonldNormalizer imple use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConfigurationInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\EnvironmentAddMultipleVariableFromConfigurationInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConfigurationInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\EnvironmentAddMultipleVariableFromConfigurationInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,57 +52,60 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('variables', $data) && null !== $data['variables']) { + if (\array_key_exists('variables', $data) && $data['variables'] !== null) { $values = []; foreach ($data['variables'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\VariableFromConfigurationInputJsonld::class, 'json', $context); + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\VariableFromConfigurationInputJsonld', 'json', $context); } $object->setVariables($values); - } elseif (\array_key_exists('variables', $data) && null === $data['variables']) { + unset($data['variables']); + } elseif (\array_key_exists('variables', $data) && $data['variables'] === null) { $object->setVariables(null); } - if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { - $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonld::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { - $object->setIterator(null); + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getVariables()) { + if ($object->isInitialized('variables') && null !== $object->getVariables()) { $values = []; foreach ($object->getVariables() as $value) { $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['variables'] = $values; } - if (null !== $object->getIterator()) { - $data['iterator'] = $this->normalizer->normalize($object->getIterator(), 'json', $context); + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } return $data; diff --git a/src/Normalizer/EnvironmentAddMultipleVariableFromConfigurationInputNormalizer.php b/src/Normalizer/EnvironmentAddMultipleVariableFromConfigurationInputNormalizer.php index 0f3a340b..27fda4d8 100644 --- a/src/Normalizer/EnvironmentAddMultipleVariableFromConfigurationInputNormalizer.php +++ b/src/Normalizer/EnvironmentAddMultipleVariableFromConfigurationInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class EnvironmentAddMultipleVariableFromConfigurationInputNormalizer implements use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConfigurationInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\EnvironmentAddMultipleVariableFromConfigurationInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConfigurationInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\EnvironmentAddMultipleVariableFromConfigurationInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,42 +52,42 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('variables', $data) && null !== $data['variables']) { + if (\array_key_exists('variables', $data) && $data['variables'] !== null) { $values = []; foreach ($data['variables'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\VariableFromConfigurationInput::class, 'json', $context); + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\VariableFromConfigurationInput', 'json', $context); } $object->setVariables($values); - } elseif (\array_key_exists('variables', $data) && null === $data['variables']) { + unset($data['variables']); + } elseif (\array_key_exists('variables', $data) && $data['variables'] === null) { $object->setVariables(null); } - if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { - $object->setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { - $object->setIterator(null); + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getVariables()) { + if ($object->isInitialized('variables') && null !== $object->getVariables()) { $values = []; foreach ($object->getVariables() as $value) { $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['variables'] = $values; } - if (null !== $object->getIterator()) { - $data['iterator'] = $object->getIterator(); + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } return $data; diff --git a/src/Normalizer/EnvironmentAddMultipleVariableFromConstantInputJsonldNormalizer.php b/src/Normalizer/EnvironmentAddMultipleVariableFromConstantInputJsonldNormalizer.php index 8fe4f569..2c7f90f2 100644 --- a/src/Normalizer/EnvironmentAddMultipleVariableFromConstantInputJsonldNormalizer.php +++ b/src/Normalizer/EnvironmentAddMultipleVariableFromConstantInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class EnvironmentAddMultipleVariableFromConstantInputJsonldNormalizer implements use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConstantInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\EnvironmentAddMultipleVariableFromConstantInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConstantInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\EnvironmentAddMultipleVariableFromConstantInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,57 +52,60 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('variables', $data) && null !== $data['variables']) { + if (\array_key_exists('variables', $data) && $data['variables'] !== null) { $values = []; foreach ($data['variables'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\VariableFromConstantInputJsonld::class, 'json', $context); + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\VariableFromConstantInputJsonld', 'json', $context); } $object->setVariables($values); - } elseif (\array_key_exists('variables', $data) && null === $data['variables']) { + unset($data['variables']); + } elseif (\array_key_exists('variables', $data) && $data['variables'] === null) { $object->setVariables(null); } - if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { - $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonld::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { - $object->setIterator(null); + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getVariables()) { + if ($object->isInitialized('variables') && null !== $object->getVariables()) { $values = []; foreach ($object->getVariables() as $value) { $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['variables'] = $values; } - if (null !== $object->getIterator()) { - $data['iterator'] = $this->normalizer->normalize($object->getIterator(), 'json', $context); + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } return $data; diff --git a/src/Normalizer/EnvironmentAddMultipleVariableFromConstantInputNormalizer.php b/src/Normalizer/EnvironmentAddMultipleVariableFromConstantInputNormalizer.php index 0d45c466..dd8e2338 100644 --- a/src/Normalizer/EnvironmentAddMultipleVariableFromConstantInputNormalizer.php +++ b/src/Normalizer/EnvironmentAddMultipleVariableFromConstantInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class EnvironmentAddMultipleVariableFromConstantInputNormalizer implements Denor use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConstantInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\EnvironmentAddMultipleVariableFromConstantInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConstantInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\EnvironmentAddMultipleVariableFromConstantInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,42 +52,42 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('variables', $data) && null !== $data['variables']) { + if (\array_key_exists('variables', $data) && $data['variables'] !== null) { $values = []; foreach ($data['variables'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\VariableFromConstantInput::class, 'json', $context); + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\VariableFromConstantInput', 'json', $context); } $object->setVariables($values); - } elseif (\array_key_exists('variables', $data) && null === $data['variables']) { + unset($data['variables']); + } elseif (\array_key_exists('variables', $data) && $data['variables'] === null) { $object->setVariables(null); } - if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { - $object->setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { - $object->setIterator(null); + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getVariables()) { + if ($object->isInitialized('variables') && null !== $object->getVariables()) { $values = []; foreach ($object->getVariables() as $value) { $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['variables'] = $values; } - if (null !== $object->getIterator()) { - $data['iterator'] = $object->getIterator(); + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } return $data; diff --git a/src/Normalizer/EnvironmentAddMultipleVariableFromSecretInputJsonldNormalizer.php b/src/Normalizer/EnvironmentAddMultipleVariableFromSecretInputJsonldNormalizer.php index 4bced023..1928852f 100644 --- a/src/Normalizer/EnvironmentAddMultipleVariableFromSecretInputJsonldNormalizer.php +++ b/src/Normalizer/EnvironmentAddMultipleVariableFromSecretInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class EnvironmentAddMultipleVariableFromSecretInputJsonldNormalizer implements D use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromSecretInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\EnvironmentAddMultipleVariableFromSecretInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromSecretInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\EnvironmentAddMultipleVariableFromSecretInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,57 +52,60 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('variables', $data) && null !== $data['variables']) { + if (\array_key_exists('variables', $data) && $data['variables'] !== null) { $values = []; foreach ($data['variables'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\VariableFromSecretInputJsonld::class, 'json', $context); + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\VariableFromSecretInputJsonld', 'json', $context); } $object->setVariables($values); - } elseif (\array_key_exists('variables', $data) && null === $data['variables']) { + unset($data['variables']); + } elseif (\array_key_exists('variables', $data) && $data['variables'] === null) { $object->setVariables(null); } - if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { - $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonld::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { - $object->setIterator(null); + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getVariables()) { + if ($object->isInitialized('variables') && null !== $object->getVariables()) { $values = []; foreach ($object->getVariables() as $value) { $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['variables'] = $values; } - if (null !== $object->getIterator()) { - $data['iterator'] = $this->normalizer->normalize($object->getIterator(), 'json', $context); + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } return $data; diff --git a/src/Normalizer/EnvironmentAddMultipleVariableFromSecretInputNormalizer.php b/src/Normalizer/EnvironmentAddMultipleVariableFromSecretInputNormalizer.php index 7c9eda0d..2e9d409e 100644 --- a/src/Normalizer/EnvironmentAddMultipleVariableFromSecretInputNormalizer.php +++ b/src/Normalizer/EnvironmentAddMultipleVariableFromSecretInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class EnvironmentAddMultipleVariableFromSecretInputNormalizer implements Denorma use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromSecretInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\EnvironmentAddMultipleVariableFromSecretInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromSecretInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\EnvironmentAddMultipleVariableFromSecretInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,42 +52,42 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('variables', $data) && null !== $data['variables']) { + if (\array_key_exists('variables', $data) && $data['variables'] !== null) { $values = []; foreach ($data['variables'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\VariableFromSecretInput::class, 'json', $context); + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\VariableFromSecretInput', 'json', $context); } $object->setVariables($values); - } elseif (\array_key_exists('variables', $data) && null === $data['variables']) { + unset($data['variables']); + } elseif (\array_key_exists('variables', $data) && $data['variables'] === null) { $object->setVariables(null); } - if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { - $object->setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { - $object->setIterator(null); + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getVariables()) { + if ($object->isInitialized('variables') && null !== $object->getVariables()) { $values = []; foreach ($object->getVariables() as $value) { $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['variables'] = $values; } - if (null !== $object->getIterator()) { - $data['iterator'] = $object->getIterator(); + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } return $data; diff --git a/src/Normalizer/EnvironmentConfigurationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/EnvironmentConfigurationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..1e4804d9 --- /dev/null +++ b/src/Normalizer/EnvironmentConfigurationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/EnvironmentConfigurationsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/EnvironmentConfigurationsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..1d350e28 --- /dev/null +++ b/src/Normalizer/EnvironmentConfigurationsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\EnvironmentConfigurationsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/EnvironmentConfigurationsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/EnvironmentConfigurationsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..988f1ec3 --- /dev/null +++ b/src/Normalizer/EnvironmentConfigurationsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/EnvironmentConfigurationsGetLdjsonResponse200Normalizer.php b/src/Normalizer/EnvironmentConfigurationsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..cac30eb0 --- /dev/null +++ b/src/Normalizer/EnvironmentConfigurationsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\ConfigurationJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\EnvironmentConfigurationsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\EnvironmentConfigurationsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/EnvironmentConfigurationsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/EnvironmentConfigurationsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index f60eb3b5..00000000 --- a/src/Normalizer/EnvironmentConfigurationsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/EnvironmentConfigurationsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/EnvironmentConfigurationsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 619fdc1e..00000000 --- a/src/Normalizer/EnvironmentConfigurationsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/EnvironmentConfigurationsGetResponse200HydraViewNormalizer.php b/src/Normalizer/EnvironmentConfigurationsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index 49ff644e..00000000 --- a/src/Normalizer/EnvironmentConfigurationsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/EnvironmentConfigurationsGetResponse200Normalizer.php b/src/Normalizer/EnvironmentConfigurationsGetResponse200Normalizer.php deleted file mode 100644 index 634e15de..00000000 --- a/src/Normalizer/EnvironmentConfigurationsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\ConfigurationJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/EnvironmentCreateEnvironmentInputJsonldNormalizer.php b/src/Normalizer/EnvironmentCreateEnvironmentInputJsonldNormalizer.php index 3e8e9518..393cde1a 100644 --- a/src/Normalizer/EnvironmentCreateEnvironmentInputJsonldNormalizer.php +++ b/src/Normalizer/EnvironmentCreateEnvironmentInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class EnvironmentCreateEnvironmentInputJsonldNormalizer implements DenormalizerI use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\EnvironmentCreateEnvironmentInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\EnvironmentCreateEnvironmentInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\EnvironmentCreateEnvironmentInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\EnvironmentCreateEnvironmentInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,73 +52,78 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('description', $data) && null !== $data['description']) { + if (\array_key_exists('description', $data) && $data['description'] !== null) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && null === $data['description']) { + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { $object->setDescription(null); } - if (\array_key_exists('variables', $data) && null !== $data['variables']) { + if (\array_key_exists('variables', $data) && $data['variables'] !== null) { $values = []; foreach ($data['variables'] as $value) { $values[] = $value; } $object->setVariables($values); - } elseif (\array_key_exists('variables', $data) && null === $data['variables']) { + unset($data['variables']); + } elseif (\array_key_exists('variables', $data) && $data['variables'] === null) { $object->setVariables(null); } - if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { - $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonld::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { - $object->setIterator(null); + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getDescription()) { + if ($object->isInitialized('description') && null !== $object->getDescription()) { $data['description'] = $object->getDescription(); } - if (null !== $object->getVariables()) { + if ($object->isInitialized('variables') && null !== $object->getVariables()) { $values = []; foreach ($object->getVariables() as $value) { $values[] = $value; } $data['variables'] = $values; } - if (null !== $object->getIterator()) { - $data['iterator'] = $this->normalizer->normalize($object->getIterator(), 'json', $context); + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } return $data; diff --git a/src/Normalizer/EnvironmentCreateEnvironmentInputNormalizer.php b/src/Normalizer/EnvironmentCreateEnvironmentInputNormalizer.php index 57f72dda..64fdfc77 100644 --- a/src/Normalizer/EnvironmentCreateEnvironmentInputNormalizer.php +++ b/src/Normalizer/EnvironmentCreateEnvironmentInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class EnvironmentCreateEnvironmentInputNormalizer implements DenormalizerInterfa use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\EnvironmentCreateEnvironmentInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\EnvironmentCreateEnvironmentInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\EnvironmentCreateEnvironmentInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\EnvironmentCreateEnvironmentInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,58 +52,60 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('description', $data) && null !== $data['description']) { + if (\array_key_exists('description', $data) && $data['description'] !== null) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && null === $data['description']) { + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { $object->setDescription(null); } - if (\array_key_exists('variables', $data) && null !== $data['variables']) { + if (\array_key_exists('variables', $data) && $data['variables'] !== null) { $values = []; foreach ($data['variables'] as $value) { $values[] = $value; } $object->setVariables($values); - } elseif (\array_key_exists('variables', $data) && null === $data['variables']) { + unset($data['variables']); + } elseif (\array_key_exists('variables', $data) && $data['variables'] === null) { $object->setVariables(null); } - if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { - $object->setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { - $object->setIterator(null); + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getDescription()) { + if ($object->isInitialized('description') && null !== $object->getDescription()) { $data['description'] = $object->getDescription(); } - if (null !== $object->getVariables()) { + if ($object->isInitialized('variables') && null !== $object->getVariables()) { $values = []; foreach ($object->getVariables() as $value) { $values[] = $value; } $data['variables'] = $values; } - if (null !== $object->getIterator()) { - $data['iterator'] = $object->getIterator(); + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } return $data; diff --git a/src/Normalizer/EnvironmentEnvironmentsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/EnvironmentEnvironmentsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..85330053 --- /dev/null +++ b/src/Normalizer/EnvironmentEnvironmentsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/EnvironmentEnvironmentsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/EnvironmentEnvironmentsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..3d7bf7c2 --- /dev/null +++ b/src/Normalizer/EnvironmentEnvironmentsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\EnvironmentEnvironmentsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/EnvironmentEnvironmentsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/EnvironmentEnvironmentsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..f898a28e --- /dev/null +++ b/src/Normalizer/EnvironmentEnvironmentsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/EnvironmentEnvironmentsGetLdjsonResponse200Normalizer.php b/src/Normalizer/EnvironmentEnvironmentsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..441c5af1 --- /dev/null +++ b/src/Normalizer/EnvironmentEnvironmentsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\EnvironmentJsonldRead', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\EnvironmentEnvironmentsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\EnvironmentEnvironmentsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/EnvironmentEnvironmentsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/EnvironmentEnvironmentsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 4e698f1d..00000000 --- a/src/Normalizer/EnvironmentEnvironmentsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/EnvironmentEnvironmentsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/EnvironmentEnvironmentsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index f1805d40..00000000 --- a/src/Normalizer/EnvironmentEnvironmentsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/EnvironmentEnvironmentsGetResponse200HydraViewNormalizer.php b/src/Normalizer/EnvironmentEnvironmentsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index 3247947a..00000000 --- a/src/Normalizer/EnvironmentEnvironmentsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/EnvironmentEnvironmentsGetResponse200Normalizer.php b/src/Normalizer/EnvironmentEnvironmentsGetResponse200Normalizer.php deleted file mode 100644 index 052fb701..00000000 --- a/src/Normalizer/EnvironmentEnvironmentsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\EnvironmentJsonldRead::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..25b5a942 --- /dev/null +++ b/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..629159ac --- /dev/null +++ b/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..712f7d96 --- /dev/null +++ b/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200Normalizer.php b/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..f1665725 --- /dev/null +++ b/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\VariableJsonldRead', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 6355209d..00000000 --- a/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchNormalizer.php b/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 5b4498fe..00000000 --- a/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetResponse200HydraViewNormalizer.php b/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetResponse200HydraViewNormalizer.php deleted file mode 100644 index c1f53eee..00000000 --- a/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetResponse200Normalizer.php b/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetResponse200Normalizer.php deleted file mode 100644 index 3ab3c7f2..00000000 --- a/src/Normalizer/EnvironmentEnvironmentsIdVariablesGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\VariableJsonldRead::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/EnvironmentJsonldReadNormalizer.php b/src/Normalizer/EnvironmentJsonldReadNormalizer.php index c14762a4..4b8d2602 100644 --- a/src/Normalizer/EnvironmentJsonldReadNormalizer.php +++ b/src/Normalizer/EnvironmentJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class EnvironmentJsonldReadNormalizer implements DenormalizerInterface, Normaliz use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\EnvironmentJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\EnvironmentJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\EnvironmentJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\EnvironmentJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,71 +52,86 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('description', $data) && null !== $data['description']) { + if (\array_key_exists('description', $data) && $data['description'] !== null) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && null === $data['description']) { + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { $object->setDescription(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { + if (\array_key_exists('organization', $data) && $data['organization'] !== null) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { + unset($data['organization']); + } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { + if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { + unset($data['workspace']); + } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { $object->setWorkspace(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getDescription()) { + if ($object->isInitialized('description') && null !== $object->getDescription()) { $data['description'] = $object->getDescription(); } - if (null !== $object->getOrganization()) { + if ($object->isInitialized('organization') && null !== $object->getOrganization()) { $data['organization'] = $object->getOrganization(); } - if (null !== $object->getWorkspace()) { + if ($object->isInitialized('workspace') && null !== $object->getWorkspace()) { $data['workspace'] = $object->getWorkspace(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/EnvironmentJsonldWriteNormalizer.php b/src/Normalizer/EnvironmentJsonldWriteNormalizer.php index 7f42a6dd..0e734f85 100644 --- a/src/Normalizer/EnvironmentJsonldWriteNormalizer.php +++ b/src/Normalizer/EnvironmentJsonldWriteNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class EnvironmentJsonldWriteNormalizer implements DenormalizerInterface, Normali use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\EnvironmentJsonldWrite::class === $type; + return $type === 'Gyroscops\\Api\\Model\\EnvironmentJsonldWrite'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\EnvironmentJsonldWrite::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\EnvironmentJsonldWrite'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,50 +52,62 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('description', $data) && null !== $data['description']) { + if (\array_key_exists('description', $data) && $data['description'] !== null) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && null === $data['description']) { + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { $object->setDescription(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getDescription()) { + if ($object->isInitialized('description') && null !== $object->getDescription()) { $data['description'] = $object->getDescription(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/EnvironmentReadNormalizer.php b/src/Normalizer/EnvironmentReadNormalizer.php index 6348f19a..1c44f775 100644 --- a/src/Normalizer/EnvironmentReadNormalizer.php +++ b/src/Normalizer/EnvironmentReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class EnvironmentReadNormalizer implements DenormalizerInterface, NormalizerInte use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\EnvironmentRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\EnvironmentRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\EnvironmentRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\EnvironmentRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,56 +52,68 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('description', $data) && null !== $data['description']) { + if (\array_key_exists('description', $data) && $data['description'] !== null) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && null === $data['description']) { + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { $object->setDescription(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { + if (\array_key_exists('organization', $data) && $data['organization'] !== null) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { + unset($data['organization']); + } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { + if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { + unset($data['workspace']); + } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { $object->setWorkspace(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getDescription()) { + if ($object->isInitialized('description') && null !== $object->getDescription()) { $data['description'] = $object->getDescription(); } - if (null !== $object->getOrganization()) { + if ($object->isInitialized('organization') && null !== $object->getOrganization()) { $data['organization'] = $object->getOrganization(); } - if (null !== $object->getWorkspace()) { + if ($object->isInitialized('workspace') && null !== $object->getWorkspace()) { $data['workspace'] = $object->getWorkspace(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/EnvironmentSecretsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/EnvironmentSecretsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..f768448f --- /dev/null +++ b/src/Normalizer/EnvironmentSecretsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/EnvironmentSecretsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/EnvironmentSecretsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..4d61de9d --- /dev/null +++ b/src/Normalizer/EnvironmentSecretsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\EnvironmentSecretsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/EnvironmentSecretsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/EnvironmentSecretsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..9d03cbd1 --- /dev/null +++ b/src/Normalizer/EnvironmentSecretsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/EnvironmentSecretsGetLdjsonResponse200Normalizer.php b/src/Normalizer/EnvironmentSecretsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..55944b27 --- /dev/null +++ b/src/Normalizer/EnvironmentSecretsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\SecretJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\EnvironmentSecretsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\EnvironmentSecretsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/EnvironmentSecretsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/EnvironmentSecretsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index f1d880df..00000000 --- a/src/Normalizer/EnvironmentSecretsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/EnvironmentSecretsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/EnvironmentSecretsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 79443696..00000000 --- a/src/Normalizer/EnvironmentSecretsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/EnvironmentSecretsGetResponse200HydraViewNormalizer.php b/src/Normalizer/EnvironmentSecretsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index f8495b7e..00000000 --- a/src/Normalizer/EnvironmentSecretsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/EnvironmentSecretsGetResponse200Normalizer.php b/src/Normalizer/EnvironmentSecretsGetResponse200Normalizer.php deleted file mode 100644 index 6bb05a61..00000000 --- a/src/Normalizer/EnvironmentSecretsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\SecretJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/EnvironmentWriteNormalizer.php b/src/Normalizer/EnvironmentWriteNormalizer.php index c191ed26..715b94ab 100644 --- a/src/Normalizer/EnvironmentWriteNormalizer.php +++ b/src/Normalizer/EnvironmentWriteNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class EnvironmentWriteNormalizer implements DenormalizerInterface, NormalizerInt use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\EnvironmentWrite::class === $type; + return $type === 'Gyroscops\\Api\\Model\\EnvironmentWrite'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\EnvironmentWrite::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\EnvironmentWrite'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,35 +52,44 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('description', $data) && null !== $data['description']) { + if (\array_key_exists('description', $data) && $data['description'] !== null) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && null === $data['description']) { + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { $object->setDescription(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getDescription()) { + if ($object->isInitialized('description') && null !== $object->getDescription()) { $data['description'] = $object->getDescription(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/ExecutionActionJsonldNormalizer.php b/src/Normalizer/ExecutionActionJsonldNormalizer.php index feedd5f4..bdeb50df 100644 --- a/src/Normalizer/ExecutionActionJsonldNormalizer.php +++ b/src/Normalizer/ExecutionActionJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ExecutionActionJsonldNormalizer implements DenormalizerInterface, Normaliz use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ExecutionActionJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ExecutionActionJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ExecutionActionJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ExecutionActionJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,39 +52,46 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('execution', $data) && null !== $data['execution']) { + if (\array_key_exists('execution', $data) && $data['execution'] !== null) { $object->setExecution($data['execution']); - } elseif (\array_key_exists('execution', $data) && null === $data['execution']) { + unset($data['execution']); + } elseif (\array_key_exists('execution', $data) && $data['execution'] === null) { $object->setExecution(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -94,6 +99,11 @@ public function normalize($object, $format = null, array $context = []) $data = []; $data['execution'] = $object->getExecution(); $data['id'] = $object->getId2(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/ExecutionActionNormalizer.php b/src/Normalizer/ExecutionActionNormalizer.php index 2d4d42a9..35ecde06 100644 --- a/src/Normalizer/ExecutionActionNormalizer.php +++ b/src/Normalizer/ExecutionActionNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ExecutionActionNormalizer implements DenormalizerInterface, NormalizerInte use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ExecutionAction::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ExecutionAction'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ExecutionAction::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ExecutionAction'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,24 +52,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('execution', $data) && null !== $data['execution']) { + if (\array_key_exists('execution', $data) && $data['execution'] !== null) { $object->setExecution($data['execution']); - } elseif (\array_key_exists('execution', $data) && null === $data['execution']) { + unset($data['execution']); + } elseif (\array_key_exists('execution', $data) && $data['execution'] === null) { $object->setExecution(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -79,6 +81,11 @@ public function normalize($object, $format = null, array $context = []) $data = []; $data['execution'] = $object->getExecution(); $data['id'] = $object->getId(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/ExecutionDeclarePipelineExecutionCommandInputJsonldNormalizer.php b/src/Normalizer/ExecutionDeclarePipelineExecutionCommandInputJsonldNormalizer.php index bd4012dc..092473fe 100644 --- a/src/Normalizer/ExecutionDeclarePipelineExecutionCommandInputJsonldNormalizer.php +++ b/src/Normalizer/ExecutionDeclarePipelineExecutionCommandInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ExecutionDeclarePipelineExecutionCommandInputJsonldNormalizer implements D use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ExecutionDeclarePipelineExecutionCommandInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ExecutionDeclarePipelineExecutionCommandInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,46 +52,58 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('schedule', $data) && null !== $data['schedule']) { - $object->setSchedule($data['schedule']); - } elseif (\array_key_exists('schedule', $data) && null === $data['schedule']) { + if (\array_key_exists('schedule', $data) && $data['schedule'] !== null) { + $object->setSchedule($this->denormalizer->denormalize($data['schedule'], 'Gyroscops\\Api\\Model\\ScheduleJsonld', 'json', $context)); + unset($data['schedule']); + } elseif (\array_key_exists('schedule', $data) && $data['schedule'] === null) { $object->setSchedule(null); } - if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { - $object->setPipeline($data['pipeline']); - } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { + if (\array_key_exists('pipeline', $data) && $data['pipeline'] !== null) { + $object->setPipeline($this->denormalizer->denormalize($data['pipeline'], 'Gyroscops\\Api\\Model\\PipelineJsonld', 'json', $context)); + unset($data['pipeline']); + } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { $object->setPipeline(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - $data['schedule'] = $object->getSchedule(); - $data['pipeline'] = $object->getPipeline(); + $data['schedule'] = $this->normalizer->normalize($object->getSchedule(), 'json', $context); + $data['pipeline'] = $this->normalizer->normalize($object->getPipeline(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/ExecutionDeclarePipelineExecutionCommandInputNormalizer.php b/src/Normalizer/ExecutionDeclarePipelineExecutionCommandInputNormalizer.php index 2501b036..f5757a8f 100644 --- a/src/Normalizer/ExecutionDeclarePipelineExecutionCommandInputNormalizer.php +++ b/src/Normalizer/ExecutionDeclarePipelineExecutionCommandInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ExecutionDeclarePipelineExecutionCommandInputNormalizer implements Denorma use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ExecutionDeclarePipelineExecutionCommandInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ExecutionDeclarePipelineExecutionCommandInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,31 +52,48 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('schedule', $data) && null !== $data['schedule']) { - $object->setSchedule($data['schedule']); - } elseif (\array_key_exists('schedule', $data) && null === $data['schedule']) { + if (\array_key_exists('schedule', $data) && $data['schedule'] !== null) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['schedule'] as $key => $value) { + $values[$key] = $value; + } + $object->setSchedule($values); + unset($data['schedule']); + } elseif (\array_key_exists('schedule', $data) && $data['schedule'] === null) { $object->setSchedule(null); } - if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { - $object->setPipeline($data['pipeline']); - } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { + if (\array_key_exists('pipeline', $data) && $data['pipeline'] !== null) { + $object->setPipeline($this->denormalizer->denormalize($data['pipeline'], 'Gyroscops\\Api\\Model\\Pipeline', 'json', $context)); + unset($data['pipeline']); + } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { $object->setPipeline(null); } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - $data['schedule'] = $object->getSchedule(); - $data['pipeline'] = $object->getPipeline(); + $values = []; + foreach ($object->getSchedule() as $key => $value) { + $values[$key] = $value; + } + $data['schedule'] = $values; + $data['pipeline'] = $this->normalizer->normalize($object->getPipeline(), 'json', $context); + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/ExecutionDeclarePipelineExecutionCommandJsonldReadNormalizer.php b/src/Normalizer/ExecutionDeclarePipelineExecutionCommandJsonldReadNormalizer.php index 7a3e629f..8b93a479 100644 --- a/src/Normalizer/ExecutionDeclarePipelineExecutionCommandJsonldReadNormalizer.php +++ b/src/Normalizer/ExecutionDeclarePipelineExecutionCommandJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ExecutionDeclarePipelineExecutionCommandJsonldReadNormalizer implements De use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ExecutionDeclarePipelineExecutionCommandJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ExecutionDeclarePipelineExecutionCommandJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/ExecutionFinishPipelineExecutionCommandInputJsonldNormalizer.php b/src/Normalizer/ExecutionFinishPipelineExecutionCommandInputJsonldNormalizer.php deleted file mode 100644 index 2f3cfdbd..00000000 --- a/src/Normalizer/ExecutionFinishPipelineExecutionCommandInputJsonldNormalizer.php +++ /dev/null @@ -1,86 +0,0 @@ -setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { - $object->setContext(null); - } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { - $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - return []; - } -} diff --git a/src/Normalizer/ExecutionFinishPipelineExecutionCommandJsonldReadNormalizer.php b/src/Normalizer/ExecutionFinishPipelineExecutionCommandJsonldReadNormalizer.php deleted file mode 100644 index 0bf06d50..00000000 --- a/src/Normalizer/ExecutionFinishPipelineExecutionCommandJsonldReadNormalizer.php +++ /dev/null @@ -1,86 +0,0 @@ -setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { - $object->setContext(null); - } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { - $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - return []; - } -} diff --git a/src/Normalizer/ExecutionIdJsonldNormalizer.php b/src/Normalizer/ExecutionIdJsonldNormalizer.php new file mode 100644 index 00000000..90e1585a --- /dev/null +++ b/src/Normalizer/ExecutionIdJsonldNormalizer.php @@ -0,0 +1,102 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('nil', $data) && $data['nil'] !== null) { + $object->setNil($data['nil']); + unset($data['nil']); + } elseif (\array_key_exists('nil', $data) && $data['nil'] === null) { + $object->setNil(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ExecutionIdNormalizer.php b/src/Normalizer/ExecutionIdNormalizer.php new file mode 100644 index 00000000..36a65e90 --- /dev/null +++ b/src/Normalizer/ExecutionIdNormalizer.php @@ -0,0 +1,84 @@ +setNil($data['nil']); + unset($data['nil']); + } elseif (\array_key_exists('nil', $data) && $data['nil'] === null) { + $object->setNil(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ExecutionInterruptPipelineExecutionCommandInputJsonldNormalizer.php b/src/Normalizer/ExecutionInterruptPipelineExecutionCommandInputJsonldNormalizer.php index 99ec5199..36c10517 100644 --- a/src/Normalizer/ExecutionInterruptPipelineExecutionCommandInputJsonldNormalizer.php +++ b/src/Normalizer/ExecutionInterruptPipelineExecutionCommandInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ExecutionInterruptPipelineExecutionCommandInputJsonldNormalizer implements use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ExecutionInterruptPipelineExecutionCommandInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ExecutionInterruptPipelineExecutionCommandInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ExecutionInterruptPipelineExecutionCommandInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ExecutionInterruptPipelineExecutionCommandInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/ExecutionInterruptPipelineExecutionCommandJsonldReadNormalizer.php b/src/Normalizer/ExecutionInterruptPipelineExecutionCommandJsonldReadNormalizer.php index 8136bba8..60b75204 100644 --- a/src/Normalizer/ExecutionInterruptPipelineExecutionCommandJsonldReadNormalizer.php +++ b/src/Normalizer/ExecutionInterruptPipelineExecutionCommandJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ExecutionInterruptPipelineExecutionCommandJsonldReadNormalizer implements use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ExecutionInterruptPipelineExecutionCommandJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ExecutionInterruptPipelineExecutionCommandJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ExecutionInterruptPipelineExecutionCommandJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ExecutionInterruptPipelineExecutionCommandJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/ExecutionJsonldReadNormalizer.php b/src/Normalizer/ExecutionJsonldReadNormalizer.php index da865574..ee06ea40 100644 --- a/src/Normalizer/ExecutionJsonldReadNormalizer.php +++ b/src/Normalizer/ExecutionJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ExecutionJsonldReadNormalizer implements DenormalizerInterface, Normalizer use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ExecutionJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ExecutionJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ExecutionJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ExecutionJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,89 +52,112 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('code', $data) && null !== $data['code']) { + if (\array_key_exists('code', $data) && $data['code'] !== null) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { $object->setCode(null); } - if (\array_key_exists('status', $data) && null !== $data['status']) { + if (\array_key_exists('status', $data) && $data['status'] !== null) { $object->setStatus($data['status']); - } elseif (\array_key_exists('status', $data) && null === $data['status']) { + unset($data['status']); + } elseif (\array_key_exists('status', $data) && $data['status'] === null) { $object->setStatus(null); } - if (\array_key_exists('errors', $data) && null !== $data['errors']) { + if (\array_key_exists('errors', $data) && $data['errors'] !== null) { $object->setErrors($data['errors']); - } elseif (\array_key_exists('errors', $data) && null === $data['errors']) { + unset($data['errors']); + } elseif (\array_key_exists('errors', $data) && $data['errors'] === null) { $object->setErrors(null); } - if (\array_key_exists('scheduledAt', $data) && null !== $data['scheduledAt']) { + if (\array_key_exists('scheduledAt', $data) && $data['scheduledAt'] !== null) { $object->setScheduledAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['scheduledAt'])); - } elseif (\array_key_exists('scheduledAt', $data) && null === $data['scheduledAt']) { + unset($data['scheduledAt']); + } elseif (\array_key_exists('scheduledAt', $data) && $data['scheduledAt'] === null) { $object->setScheduledAt(null); } - if (\array_key_exists('startedAt', $data) && null !== $data['startedAt']) { + if (\array_key_exists('startedAt', $data) && $data['startedAt'] !== null) { $object->setStartedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['startedAt'])); - } elseif (\array_key_exists('startedAt', $data) && null === $data['startedAt']) { + unset($data['startedAt']); + } elseif (\array_key_exists('startedAt', $data) && $data['startedAt'] === null) { $object->setStartedAt(null); } - if (\array_key_exists('finishedAt', $data) && null !== $data['finishedAt']) { + if (\array_key_exists('finishedAt', $data) && $data['finishedAt'] !== null) { $object->setFinishedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['finishedAt'])); - } elseif (\array_key_exists('finishedAt', $data) && null === $data['finishedAt']) { + unset($data['finishedAt']); + } elseif (\array_key_exists('finishedAt', $data) && $data['finishedAt'] === null) { $object->setFinishedAt(null); } - if (\array_key_exists('interruptedAt', $data) && null !== $data['interruptedAt']) { + if (\array_key_exists('interruptedAt', $data) && $data['interruptedAt'] !== null) { $object->setInterruptedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['interruptedAt'])); - } elseif (\array_key_exists('interruptedAt', $data) && null === $data['interruptedAt']) { + unset($data['interruptedAt']); + } elseif (\array_key_exists('interruptedAt', $data) && $data['interruptedAt'] === null) { $object->setInterruptedAt(null); } - if (\array_key_exists('resumedAt', $data) && null !== $data['resumedAt']) { + if (\array_key_exists('resumedAt', $data) && $data['resumedAt'] !== null) { $object->setResumedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['resumedAt'])); - } elseif (\array_key_exists('resumedAt', $data) && null === $data['resumedAt']) { + unset($data['resumedAt']); + } elseif (\array_key_exists('resumedAt', $data) && $data['resumedAt'] === null) { $object->setResumedAt(null); } - if (\array_key_exists('updatedAt', $data) && null !== $data['updatedAt']) { + if (\array_key_exists('updatedAt', $data) && $data['updatedAt'] !== null) { $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['updatedAt'])); - } elseif (\array_key_exists('updatedAt', $data) && null === $data['updatedAt']) { + unset($data['updatedAt']); + } elseif (\array_key_exists('updatedAt', $data) && $data['updatedAt'] === null) { $object->setUpdatedAt(null); } - if (\array_key_exists('terminatedAt', $data) && null !== $data['terminatedAt']) { + if (\array_key_exists('terminatedAt', $data) && $data['terminatedAt'] !== null) { $object->setTerminatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['terminatedAt'])); - } elseif (\array_key_exists('terminatedAt', $data) && null === $data['terminatedAt']) { + unset($data['terminatedAt']); + } elseif (\array_key_exists('terminatedAt', $data) && $data['terminatedAt'] === null) { $object->setTerminatedAt(null); } - if (\array_key_exists('reason', $data) && null !== $data['reason']) { + if (\array_key_exists('reason', $data) && $data['reason'] !== null) { $object->setReason($data['reason']); - } elseif (\array_key_exists('reason', $data) && null === $data['reason']) { + unset($data['reason']); + } elseif (\array_key_exists('reason', $data) && $data['reason'] === null) { $object->setReason(null); } + if (\array_key_exists('currentVersion', $data) && $data['currentVersion'] !== null) { + $object->setCurrentVersion($data['currentVersion']); + unset($data['currentVersion']); + } elseif (\array_key_exists('currentVersion', $data) && $data['currentVersion'] === null) { + $object->setCurrentVersion(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -147,25 +168,33 @@ public function normalize($object, $format = null, array $context = []) $data['status'] = $object->getStatus(); $data['errors'] = $object->getErrors(); $data['scheduledAt'] = $object->getScheduledAt()->format('Y-m-d\\TH:i:sP'); - if (null !== $object->getStartedAt()) { + if ($object->isInitialized('startedAt') && null !== $object->getStartedAt()) { $data['startedAt'] = $object->getStartedAt()->format('Y-m-d\\TH:i:sP'); } - if (null !== $object->getFinishedAt()) { + if ($object->isInitialized('finishedAt') && null !== $object->getFinishedAt()) { $data['finishedAt'] = $object->getFinishedAt()->format('Y-m-d\\TH:i:sP'); } - if (null !== $object->getInterruptedAt()) { + if ($object->isInitialized('interruptedAt') && null !== $object->getInterruptedAt()) { $data['interruptedAt'] = $object->getInterruptedAt()->format('Y-m-d\\TH:i:sP'); } - if (null !== $object->getResumedAt()) { + if ($object->isInitialized('resumedAt') && null !== $object->getResumedAt()) { $data['resumedAt'] = $object->getResumedAt()->format('Y-m-d\\TH:i:sP'); } - if (null !== $object->getUpdatedAt()) { + if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { $data['updatedAt'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:sP'); } - if (null !== $object->getTerminatedAt()) { + if ($object->isInitialized('terminatedAt') && null !== $object->getTerminatedAt()) { $data['terminatedAt'] = $object->getTerminatedAt()->format('Y-m-d\\TH:i:sP'); } $data['reason'] = $object->getReason(); + if ($object->isInitialized('currentVersion') && null !== $object->getCurrentVersion()) { + $data['currentVersion'] = $object->getCurrentVersion(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/ExecutionPipelineJobJsonldNormalizer.php b/src/Normalizer/ExecutionPipelineJobJsonldNormalizer.php index 39e4b714..6ec4d0c3 100644 --- a/src/Normalizer/ExecutionPipelineJobJsonldNormalizer.php +++ b/src/Normalizer/ExecutionPipelineJobJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ExecutionPipelineJobJsonldNormalizer implements DenormalizerInterface, Nor use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ExecutionPipelineJobJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ExecutionPipelineJobJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ExecutionPipelineJobJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ExecutionPipelineJobJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,61 +52,74 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { - $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { - $object->setContext(null); - } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('job', $data) && null !== $data['job']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + $object->setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('job', $data) && $data['job'] !== null) { $object->setJob($data['job']); - } elseif (\array_key_exists('job', $data) && null === $data['job']) { + unset($data['job']); + } elseif (\array_key_exists('job', $data) && $data['job'] === null) { $object->setJob(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('steps', $data) && null !== $data['steps']) { + if (\array_key_exists('steps', $data) && $data['steps'] !== null) { $values = []; foreach ($data['steps'] as $value) { $values[] = $value; } $object->setSteps($values); - } elseif (\array_key_exists('steps', $data) && null === $data['steps']) { + unset($data['steps']); + } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { $object->setSteps(null); } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; $data['job'] = $object->getJob(); - if (null !== $object->getSteps()) { + if ($object->isInitialized('steps') && null !== $object->getSteps()) { $values = []; foreach ($object->getSteps() as $value) { $values[] = $value; } $data['steps'] = $values; } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/ExecutionPipelineJobNormalizer.php b/src/Normalizer/ExecutionPipelineJobNormalizer.php index debc1efe..1dc479c3 100644 --- a/src/Normalizer/ExecutionPipelineJobNormalizer.php +++ b/src/Normalizer/ExecutionPipelineJobNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ExecutionPipelineJobNormalizer implements DenormalizerInterface, Normalize use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ExecutionPipelineJob::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ExecutionPipelineJob'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ExecutionPipelineJob::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ExecutionPipelineJob'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,46 +52,56 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('job', $data) && null !== $data['job']) { + if (\array_key_exists('job', $data) && $data['job'] !== null) { $object->setJob($data['job']); - } elseif (\array_key_exists('job', $data) && null === $data['job']) { + unset($data['job']); + } elseif (\array_key_exists('job', $data) && $data['job'] === null) { $object->setJob(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('steps', $data) && null !== $data['steps']) { + if (\array_key_exists('steps', $data) && $data['steps'] !== null) { $values = []; foreach ($data['steps'] as $value) { $values[] = $value; } $object->setSteps($values); - } elseif (\array_key_exists('steps', $data) && null === $data['steps']) { + unset($data['steps']); + } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { $object->setSteps(null); } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; $data['job'] = $object->getJob(); - if (null !== $object->getSteps()) { + if ($object->isInitialized('steps') && null !== $object->getSteps()) { $values = []; foreach ($object->getSteps() as $value) { $values[] = $value; } $data['steps'] = $values; } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/ExecutionPipelineJsonldNormalizer.php b/src/Normalizer/ExecutionPipelineJsonldNormalizer.php index 4b720d38..becc529c 100644 --- a/src/Normalizer/ExecutionPipelineJsonldNormalizer.php +++ b/src/Normalizer/ExecutionPipelineJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ExecutionPipelineJsonldNormalizer implements DenormalizerInterface, Normal use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ExecutionPipelineJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ExecutionPipelineJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ExecutionPipelineJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ExecutionPipelineJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,61 +52,74 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('execution', $data) && null !== $data['execution']) { + if (\array_key_exists('execution', $data) && $data['execution'] !== null) { $object->setExecution($data['execution']); - } elseif (\array_key_exists('execution', $data) && null === $data['execution']) { + unset($data['execution']); + } elseif (\array_key_exists('execution', $data) && $data['execution'] === null) { $object->setExecution(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('steps', $data) && null !== $data['steps']) { + if (\array_key_exists('steps', $data) && $data['steps'] !== null) { $values = []; foreach ($data['steps'] as $value) { $values[] = $value; } $object->setSteps($values); - } elseif (\array_key_exists('steps', $data) && null === $data['steps']) { + unset($data['steps']); + } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { $object->setSteps(null); } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; $data['execution'] = $object->getExecution(); - if (null !== $object->getSteps()) { + if ($object->isInitialized('steps') && null !== $object->getSteps()) { $values = []; foreach ($object->getSteps() as $value) { $values[] = $value; } $data['steps'] = $values; } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/ExecutionPipelineNormalizer.php b/src/Normalizer/ExecutionPipelineNormalizer.php index 59f4857b..b7979ffb 100644 --- a/src/Normalizer/ExecutionPipelineNormalizer.php +++ b/src/Normalizer/ExecutionPipelineNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ExecutionPipelineNormalizer implements DenormalizerInterface, NormalizerIn use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ExecutionPipeline::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ExecutionPipeline'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ExecutionPipeline::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ExecutionPipeline'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,46 +52,56 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('execution', $data) && null !== $data['execution']) { + if (\array_key_exists('execution', $data) && $data['execution'] !== null) { $object->setExecution($data['execution']); - } elseif (\array_key_exists('execution', $data) && null === $data['execution']) { + unset($data['execution']); + } elseif (\array_key_exists('execution', $data) && $data['execution'] === null) { $object->setExecution(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('steps', $data) && null !== $data['steps']) { + if (\array_key_exists('steps', $data) && $data['steps'] !== null) { $values = []; foreach ($data['steps'] as $value) { $values[] = $value; } $object->setSteps($values); - } elseif (\array_key_exists('steps', $data) && null === $data['steps']) { + unset($data['steps']); + } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { $object->setSteps(null); } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; $data['execution'] = $object->getExecution(); - if (null !== $object->getSteps()) { + if ($object->isInitialized('steps') && null !== $object->getSteps()) { $values = []; foreach ($object->getSteps() as $value) { $values[] = $value; } $data['steps'] = $values; } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/ExecutionPipelineStepJsonldNormalizer.php b/src/Normalizer/ExecutionPipelineStepJsonldNormalizer.php index 92dff70b..07d8c352 100644 --- a/src/Normalizer/ExecutionPipelineStepJsonldNormalizer.php +++ b/src/Normalizer/ExecutionPipelineStepJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ExecutionPipelineStepJsonldNormalizer implements DenormalizerInterface, No use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ExecutionPipelineStepJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ExecutionPipelineStepJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ExecutionPipelineStepJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ExecutionPipelineStepJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,61 +52,74 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { - $object->setPipeline($this->denormalizer->denormalize($data['pipeline'], \Gyroscops\Api\Model\AbstractPipelineJsonld::class, 'json', $context)); - } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { + if (\array_key_exists('pipeline', $data) && $data['pipeline'] !== null) { + $object->setPipeline($this->denormalizer->denormalize($data['pipeline'], 'Gyroscops\\Api\\Model\\AbstractPipelineJsonld', 'json', $context)); + unset($data['pipeline']); + } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { $object->setPipeline(null); } - if (\array_key_exists('metrics', $data) && null !== $data['metrics']) { + if (\array_key_exists('metrics', $data) && $data['metrics'] !== null) { $values = []; foreach ($data['metrics'] as $value) { $values[] = $value; } $object->setMetrics($values); - } elseif (\array_key_exists('metrics', $data) && null === $data['metrics']) { + unset($data['metrics']); + } elseif (\array_key_exists('metrics', $data) && $data['metrics'] === null) { $object->setMetrics(null); } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; $data['pipeline'] = $this->normalizer->normalize($object->getPipeline(), 'json', $context); - if (null !== $object->getMetrics()) { + if ($object->isInitialized('metrics') && null !== $object->getMetrics()) { $values = []; foreach ($object->getMetrics() as $value) { $values[] = $value; } $data['metrics'] = $values; } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/ExecutionPipelineStepNormalizer.php b/src/Normalizer/ExecutionPipelineStepNormalizer.php index 7fe6525a..b8015e5d 100644 --- a/src/Normalizer/ExecutionPipelineStepNormalizer.php +++ b/src/Normalizer/ExecutionPipelineStepNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ExecutionPipelineStepNormalizer implements DenormalizerInterface, Normaliz use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ExecutionPipelineStep::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ExecutionPipelineStep'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ExecutionPipelineStep::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ExecutionPipelineStep'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,46 +52,56 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { - $object->setPipeline($this->denormalizer->denormalize($data['pipeline'], \Gyroscops\Api\Model\AbstractPipeline::class, 'json', $context)); - } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { + if (\array_key_exists('pipeline', $data) && $data['pipeline'] !== null) { + $object->setPipeline($this->denormalizer->denormalize($data['pipeline'], 'Gyroscops\\Api\\Model\\AbstractPipeline', 'json', $context)); + unset($data['pipeline']); + } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { $object->setPipeline(null); } - if (\array_key_exists('metrics', $data) && null !== $data['metrics']) { + if (\array_key_exists('metrics', $data) && $data['metrics'] !== null) { $values = []; foreach ($data['metrics'] as $value) { $values[] = $value; } $object->setMetrics($values); - } elseif (\array_key_exists('metrics', $data) && null === $data['metrics']) { + unset($data['metrics']); + } elseif (\array_key_exists('metrics', $data) && $data['metrics'] === null) { $object->setMetrics(null); } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; $data['pipeline'] = $this->normalizer->normalize($object->getPipeline(), 'json', $context); - if (null !== $object->getMetrics()) { + if ($object->isInitialized('metrics') && null !== $object->getMetrics()) { $values = []; foreach ($object->getMetrics() as $value) { $values[] = $value; } $data['metrics'] = $values; } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/ExecutionReadNormalizer.php b/src/Normalizer/ExecutionReadNormalizer.php index b3e707ad..f5d9010e 100644 --- a/src/Normalizer/ExecutionReadNormalizer.php +++ b/src/Normalizer/ExecutionReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ExecutionReadNormalizer implements DenormalizerInterface, NormalizerInterf use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ExecutionRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ExecutionRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ExecutionRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ExecutionRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,74 +52,94 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('code', $data) && null !== $data['code']) { + if (\array_key_exists('code', $data) && $data['code'] !== null) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { $object->setCode(null); } - if (\array_key_exists('status', $data) && null !== $data['status']) { + if (\array_key_exists('status', $data) && $data['status'] !== null) { $object->setStatus($data['status']); - } elseif (\array_key_exists('status', $data) && null === $data['status']) { + unset($data['status']); + } elseif (\array_key_exists('status', $data) && $data['status'] === null) { $object->setStatus(null); } - if (\array_key_exists('errors', $data) && null !== $data['errors']) { + if (\array_key_exists('errors', $data) && $data['errors'] !== null) { $object->setErrors($data['errors']); - } elseif (\array_key_exists('errors', $data) && null === $data['errors']) { + unset($data['errors']); + } elseif (\array_key_exists('errors', $data) && $data['errors'] === null) { $object->setErrors(null); } - if (\array_key_exists('scheduledAt', $data) && null !== $data['scheduledAt']) { + if (\array_key_exists('scheduledAt', $data) && $data['scheduledAt'] !== null) { $object->setScheduledAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['scheduledAt'])); - } elseif (\array_key_exists('scheduledAt', $data) && null === $data['scheduledAt']) { + unset($data['scheduledAt']); + } elseif (\array_key_exists('scheduledAt', $data) && $data['scheduledAt'] === null) { $object->setScheduledAt(null); } - if (\array_key_exists('startedAt', $data) && null !== $data['startedAt']) { + if (\array_key_exists('startedAt', $data) && $data['startedAt'] !== null) { $object->setStartedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['startedAt'])); - } elseif (\array_key_exists('startedAt', $data) && null === $data['startedAt']) { + unset($data['startedAt']); + } elseif (\array_key_exists('startedAt', $data) && $data['startedAt'] === null) { $object->setStartedAt(null); } - if (\array_key_exists('finishedAt', $data) && null !== $data['finishedAt']) { + if (\array_key_exists('finishedAt', $data) && $data['finishedAt'] !== null) { $object->setFinishedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['finishedAt'])); - } elseif (\array_key_exists('finishedAt', $data) && null === $data['finishedAt']) { + unset($data['finishedAt']); + } elseif (\array_key_exists('finishedAt', $data) && $data['finishedAt'] === null) { $object->setFinishedAt(null); } - if (\array_key_exists('interruptedAt', $data) && null !== $data['interruptedAt']) { + if (\array_key_exists('interruptedAt', $data) && $data['interruptedAt'] !== null) { $object->setInterruptedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['interruptedAt'])); - } elseif (\array_key_exists('interruptedAt', $data) && null === $data['interruptedAt']) { + unset($data['interruptedAt']); + } elseif (\array_key_exists('interruptedAt', $data) && $data['interruptedAt'] === null) { $object->setInterruptedAt(null); } - if (\array_key_exists('resumedAt', $data) && null !== $data['resumedAt']) { + if (\array_key_exists('resumedAt', $data) && $data['resumedAt'] !== null) { $object->setResumedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['resumedAt'])); - } elseif (\array_key_exists('resumedAt', $data) && null === $data['resumedAt']) { + unset($data['resumedAt']); + } elseif (\array_key_exists('resumedAt', $data) && $data['resumedAt'] === null) { $object->setResumedAt(null); } - if (\array_key_exists('updatedAt', $data) && null !== $data['updatedAt']) { + if (\array_key_exists('updatedAt', $data) && $data['updatedAt'] !== null) { $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['updatedAt'])); - } elseif (\array_key_exists('updatedAt', $data) && null === $data['updatedAt']) { + unset($data['updatedAt']); + } elseif (\array_key_exists('updatedAt', $data) && $data['updatedAt'] === null) { $object->setUpdatedAt(null); } - if (\array_key_exists('terminatedAt', $data) && null !== $data['terminatedAt']) { + if (\array_key_exists('terminatedAt', $data) && $data['terminatedAt'] !== null) { $object->setTerminatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['terminatedAt'])); - } elseif (\array_key_exists('terminatedAt', $data) && null === $data['terminatedAt']) { + unset($data['terminatedAt']); + } elseif (\array_key_exists('terminatedAt', $data) && $data['terminatedAt'] === null) { $object->setTerminatedAt(null); } - if (\array_key_exists('reason', $data) && null !== $data['reason']) { + if (\array_key_exists('reason', $data) && $data['reason'] !== null) { $object->setReason($data['reason']); - } elseif (\array_key_exists('reason', $data) && null === $data['reason']) { + unset($data['reason']); + } elseif (\array_key_exists('reason', $data) && $data['reason'] === null) { $object->setReason(null); } + if (\array_key_exists('currentVersion', $data) && $data['currentVersion'] !== null) { + $object->setCurrentVersion($data['currentVersion']); + unset($data['currentVersion']); + } elseif (\array_key_exists('currentVersion', $data) && $data['currentVersion'] === null) { + $object->setCurrentVersion(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -132,25 +150,33 @@ public function normalize($object, $format = null, array $context = []) $data['status'] = $object->getStatus(); $data['errors'] = $object->getErrors(); $data['scheduledAt'] = $object->getScheduledAt()->format('Y-m-d\\TH:i:sP'); - if (null !== $object->getStartedAt()) { + if ($object->isInitialized('startedAt') && null !== $object->getStartedAt()) { $data['startedAt'] = $object->getStartedAt()->format('Y-m-d\\TH:i:sP'); } - if (null !== $object->getFinishedAt()) { + if ($object->isInitialized('finishedAt') && null !== $object->getFinishedAt()) { $data['finishedAt'] = $object->getFinishedAt()->format('Y-m-d\\TH:i:sP'); } - if (null !== $object->getInterruptedAt()) { + if ($object->isInitialized('interruptedAt') && null !== $object->getInterruptedAt()) { $data['interruptedAt'] = $object->getInterruptedAt()->format('Y-m-d\\TH:i:sP'); } - if (null !== $object->getResumedAt()) { + if ($object->isInitialized('resumedAt') && null !== $object->getResumedAt()) { $data['resumedAt'] = $object->getResumedAt()->format('Y-m-d\\TH:i:sP'); } - if (null !== $object->getUpdatedAt()) { + if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { $data['updatedAt'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:sP'); } - if (null !== $object->getTerminatedAt()) { + if ($object->isInitialized('terminatedAt') && null !== $object->getTerminatedAt()) { $data['terminatedAt'] = $object->getTerminatedAt()->format('Y-m-d\\TH:i:sP'); } $data['reason'] = $object->getReason(); + if ($object->isInitialized('currentVersion') && null !== $object->getCurrentVersion()) { + $data['currentVersion'] = $object->getCurrentVersion(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/ExecutionResumePipelineExecutionCommandInputJsonldNormalizer.php b/src/Normalizer/ExecutionResumePipelineExecutionCommandInputJsonldNormalizer.php index f7d7f8d5..f849b9e5 100644 --- a/src/Normalizer/ExecutionResumePipelineExecutionCommandInputJsonldNormalizer.php +++ b/src/Normalizer/ExecutionResumePipelineExecutionCommandInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ExecutionResumePipelineExecutionCommandInputJsonldNormalizer implements De use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ExecutionResumePipelineExecutionCommandInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ExecutionResumePipelineExecutionCommandInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ExecutionResumePipelineExecutionCommandInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ExecutionResumePipelineExecutionCommandInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/ExecutionResumePipelineExecutionCommandJsonldReadNormalizer.php b/src/Normalizer/ExecutionResumePipelineExecutionCommandJsonldReadNormalizer.php index 7582f071..033bf1c8 100644 --- a/src/Normalizer/ExecutionResumePipelineExecutionCommandJsonldReadNormalizer.php +++ b/src/Normalizer/ExecutionResumePipelineExecutionCommandJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ExecutionResumePipelineExecutionCommandJsonldReadNormalizer implements Den use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ExecutionResumePipelineExecutionCommandJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ExecutionResumePipelineExecutionCommandJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ExecutionResumePipelineExecutionCommandJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ExecutionResumePipelineExecutionCommandJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/ExecutionStartPipelineExecutionCommandInputJsonldNormalizer.php b/src/Normalizer/ExecutionStartPipelineExecutionCommandInputJsonldNormalizer.php deleted file mode 100644 index c90b846c..00000000 --- a/src/Normalizer/ExecutionStartPipelineExecutionCommandInputJsonldNormalizer.php +++ /dev/null @@ -1,86 +0,0 @@ -setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { - $object->setContext(null); - } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { - $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - return []; - } -} diff --git a/src/Normalizer/ExecutionStartPipelineExecutionCommandJsonldReadNormalizer.php b/src/Normalizer/ExecutionStartPipelineExecutionCommandJsonldReadNormalizer.php deleted file mode 100644 index d7f47c20..00000000 --- a/src/Normalizer/ExecutionStartPipelineExecutionCommandJsonldReadNormalizer.php +++ /dev/null @@ -1,86 +0,0 @@ -setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { - $object->setContext(null); - } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { - $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - return []; - } -} diff --git a/src/Normalizer/ExecutionTerminatePipelineExecutionCommandInputJsonldNormalizer.php b/src/Normalizer/ExecutionTerminatePipelineExecutionCommandInputJsonldNormalizer.php index 9df2f387..f4789c4c 100644 --- a/src/Normalizer/ExecutionTerminatePipelineExecutionCommandInputJsonldNormalizer.php +++ b/src/Normalizer/ExecutionTerminatePipelineExecutionCommandInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ExecutionTerminatePipelineExecutionCommandInputJsonldNormalizer implements use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ExecutionTerminatePipelineExecutionCommandInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ExecutionTerminatePipelineExecutionCommandInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,40 +52,51 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('reason', $data) && null !== $data['reason']) { + if (\array_key_exists('reason', $data) && $data['reason'] !== null) { $object->setReason($data['reason']); - } elseif (\array_key_exists('reason', $data) && null === $data['reason']) { + unset($data['reason']); + } elseif (\array_key_exists('reason', $data) && $data['reason'] === null) { $object->setReason(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; $data['reason'] = $object->getReason(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/ExecutionTerminatePipelineExecutionCommandInputNormalizer.php b/src/Normalizer/ExecutionTerminatePipelineExecutionCommandInputNormalizer.php index 4031ca59..9e818ed5 100644 --- a/src/Normalizer/ExecutionTerminatePipelineExecutionCommandInputNormalizer.php +++ b/src/Normalizer/ExecutionTerminatePipelineExecutionCommandInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ExecutionTerminatePipelineExecutionCommandInputNormalizer implements Denor use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ExecutionTerminatePipelineExecutionCommandInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ExecutionTerminatePipelineExecutionCommandInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,25 +52,33 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('reason', $data) && null !== $data['reason']) { + if (\array_key_exists('reason', $data) && $data['reason'] !== null) { $object->setReason($data['reason']); - } elseif (\array_key_exists('reason', $data) && null === $data['reason']) { + unset($data['reason']); + } elseif (\array_key_exists('reason', $data) && $data['reason'] === null) { $object->setReason(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; $data['reason'] = $object->getReason(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/ExecutionTerminatePipelineExecutionCommandJsonldReadNormalizer.php b/src/Normalizer/ExecutionTerminatePipelineExecutionCommandJsonldReadNormalizer.php index 688f1bbd..f6ab6d36 100644 --- a/src/Normalizer/ExecutionTerminatePipelineExecutionCommandJsonldReadNormalizer.php +++ b/src/Normalizer/ExecutionTerminatePipelineExecutionCommandJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ExecutionTerminatePipelineExecutionCommandJsonldReadNormalizer implements use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ExecutionTerminatePipelineExecutionCommandJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ExecutionTerminatePipelineExecutionCommandJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/ExecutionUpdatePipelineExecutionStateCommandInputJsonldNormalizer.php b/src/Normalizer/ExecutionUpdatePipelineExecutionStateCommandInputJsonldNormalizer.php deleted file mode 100644 index 8346fa43..00000000 --- a/src/Normalizer/ExecutionUpdatePipelineExecutionStateCommandInputJsonldNormalizer.php +++ /dev/null @@ -1,94 +0,0 @@ -setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { - $object->setContext(null); - } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { - $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('stepsUpdates', $data) && null !== $data['stepsUpdates']) { - $object->setStepsUpdates($this->denormalizer->denormalize($data['stepsUpdates'], \Gyroscops\Api\Model\UpdateListJsonld::class, 'json', $context)); - } elseif (\array_key_exists('stepsUpdates', $data) && null === $data['stepsUpdates']) { - $object->setStepsUpdates(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $data['stepsUpdates'] = $this->normalizer->normalize($object->getStepsUpdates(), 'json', $context); - - return $data; - } -} diff --git a/src/Normalizer/ExecutionUpdatePipelineExecutionStateCommandInputNormalizer.php b/src/Normalizer/ExecutionUpdatePipelineExecutionStateCommandInputNormalizer.php deleted file mode 100644 index af55cf43..00000000 --- a/src/Normalizer/ExecutionUpdatePipelineExecutionStateCommandInputNormalizer.php +++ /dev/null @@ -1,79 +0,0 @@ -setStepsUpdates($this->denormalizer->denormalize($data['stepsUpdates'], \Gyroscops\Api\Model\UpdateList::class, 'json', $context)); - } elseif (\array_key_exists('stepsUpdates', $data) && null === $data['stepsUpdates']) { - $object->setStepsUpdates(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $data['stepsUpdates'] = $this->normalizer->normalize($object->getStepsUpdates(), 'json', $context); - - return $data; - } -} diff --git a/src/Normalizer/ExecutionUpdatePipelineExecutionStateCommandJsonldReadNormalizer.php b/src/Normalizer/ExecutionUpdatePipelineExecutionStateCommandJsonldReadNormalizer.php deleted file mode 100644 index 06beb257..00000000 --- a/src/Normalizer/ExecutionUpdatePipelineExecutionStateCommandJsonldReadNormalizer.php +++ /dev/null @@ -1,86 +0,0 @@ -setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { - $object->setContext(null); - } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { - $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - return []; - } -} diff --git a/src/Normalizer/ExecutionWorkflowInterruptWorkflowExecutionCommandInputJsonldNormalizer.php b/src/Normalizer/ExecutionWorkflowInterruptWorkflowExecutionCommandInputJsonldNormalizer.php new file mode 100644 index 00000000..860a963a --- /dev/null +++ b/src/Normalizer/ExecutionWorkflowInterruptWorkflowExecutionCommandInputJsonldNormalizer.php @@ -0,0 +1,96 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ExecutionWorkflowInterruptWorkflowExecutionCommandJsonldNormalizer.php b/src/Normalizer/ExecutionWorkflowInterruptWorkflowExecutionCommandJsonldNormalizer.php new file mode 100644 index 00000000..24b251c2 --- /dev/null +++ b/src/Normalizer/ExecutionWorkflowInterruptWorkflowExecutionCommandJsonldNormalizer.php @@ -0,0 +1,131 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId2($this->denormalizer->denormalize($data['id'], 'Gyroscops\\Api\\Model\\ExecutionIdJsonld', 'json', $context)); + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId2(null); + } + if (\array_key_exists('date', $data) && $data['date'] !== null) { + $object->setDate(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['date'])); + unset($data['date']); + } elseif (\array_key_exists('date', $data) && $data['date'] === null) { + $object->setDate(null); + } + if (\array_key_exists('user', $data) && $data['user'] !== null) { + $value = $data['user']; + if (is_array($data['user'])) { + $value = $this->denormalizer->denormalize($data['user'], 'Gyroscops\\Api\\Model\\UserIdJsonld', 'json', $context); + } + $object->setUser($value); + unset($data['user']); + } elseif (\array_key_exists('user', $data) && $data['user'] === null) { + $object->setUser(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id2') && null !== $object->getId2()) { + $data['id'] = $this->normalizer->normalize($object->getId2(), 'json', $context); + } + if ($object->isInitialized('date') && null !== $object->getDate()) { + $data['date'] = $object->getDate()->format('Y-m-d\\TH:i:sP'); + } + if ($object->isInitialized('user') && null !== $object->getUser()) { + $value = $object->getUser(); + if (is_object($object->getUser())) { + $value = $this->normalizer->normalize($object->getUser(), 'json', $context); + } + $data['user'] = $value; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ExecutionWorkflowInterruptWorkflowExecutionCommandNormalizer.php b/src/Normalizer/ExecutionWorkflowInterruptWorkflowExecutionCommandNormalizer.php new file mode 100644 index 00000000..c15afb94 --- /dev/null +++ b/src/Normalizer/ExecutionWorkflowInterruptWorkflowExecutionCommandNormalizer.php @@ -0,0 +1,113 @@ +setId($this->denormalizer->denormalize($data['id'], 'Gyroscops\\Api\\Model\\ExecutionId', 'json', $context)); + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('date', $data) && $data['date'] !== null) { + $object->setDate(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['date'])); + unset($data['date']); + } elseif (\array_key_exists('date', $data) && $data['date'] === null) { + $object->setDate(null); + } + if (\array_key_exists('user', $data) && $data['user'] !== null) { + $value = $data['user']; + if (is_array($data['user'])) { + $value = $this->denormalizer->denormalize($data['user'], 'Gyroscops\\Api\\Model\\UserId', 'json', $context); + } + $object->setUser($value); + unset($data['user']); + } elseif (\array_key_exists('user', $data) && $data['user'] === null) { + $object->setUser(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $this->normalizer->normalize($object->getId(), 'json', $context); + } + if ($object->isInitialized('date') && null !== $object->getDate()) { + $data['date'] = $object->getDate()->format('Y-m-d\\TH:i:sP'); + } + if ($object->isInitialized('user') && null !== $object->getUser()) { + $value = $object->getUser(); + if (is_object($object->getUser())) { + $value = $this->normalizer->normalize($object->getUser(), 'json', $context); + } + $data['user'] = $value; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ExecutionWorkflowJobActionJsonldNormalizer.php b/src/Normalizer/ExecutionWorkflowJobActionJsonldNormalizer.php index 95d0e3cc..69323da0 100644 --- a/src/Normalizer/ExecutionWorkflowJobActionJsonldNormalizer.php +++ b/src/Normalizer/ExecutionWorkflowJobActionJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ExecutionWorkflowJobActionJsonldNormalizer implements DenormalizerInterfac use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ExecutionWorkflowJobActionJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ExecutionWorkflowJobActionJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ExecutionWorkflowJobActionJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ExecutionWorkflowJobActionJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,39 +52,46 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('job', $data) && null !== $data['job']) { + if (\array_key_exists('job', $data) && $data['job'] !== null) { $object->setJob($data['job']); - } elseif (\array_key_exists('job', $data) && null === $data['job']) { + unset($data['job']); + } elseif (\array_key_exists('job', $data) && $data['job'] === null) { $object->setJob(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -94,6 +99,11 @@ public function normalize($object, $format = null, array $context = []) $data = []; $data['job'] = $object->getJob(); $data['id'] = $object->getId2(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/ExecutionWorkflowJobActionNormalizer.php b/src/Normalizer/ExecutionWorkflowJobActionNormalizer.php index 9e7656fd..804c418a 100644 --- a/src/Normalizer/ExecutionWorkflowJobActionNormalizer.php +++ b/src/Normalizer/ExecutionWorkflowJobActionNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ExecutionWorkflowJobActionNormalizer implements DenormalizerInterface, Nor use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ExecutionWorkflowJobAction::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ExecutionWorkflowJobAction'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ExecutionWorkflowJobAction::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ExecutionWorkflowJobAction'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,24 +52,28 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('job', $data) && null !== $data['job']) { + if (\array_key_exists('job', $data) && $data['job'] !== null) { $object->setJob($data['job']); - } elseif (\array_key_exists('job', $data) && null === $data['job']) { + unset($data['job']); + } elseif (\array_key_exists('job', $data) && $data['job'] === null) { $object->setJob(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -79,6 +81,11 @@ public function normalize($object, $format = null, array $context = []) $data = []; $data['job'] = $object->getJob(); $data['id'] = $object->getId(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/ExecutionWorkflowJobJsonldNormalizer.php b/src/Normalizer/ExecutionWorkflowJobJsonldNormalizer.php index 656c9ce8..2061431c 100644 --- a/src/Normalizer/ExecutionWorkflowJobJsonldNormalizer.php +++ b/src/Normalizer/ExecutionWorkflowJobJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ExecutionWorkflowJobJsonldNormalizer implements DenormalizerInterface, Nor use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ExecutionWorkflowJobJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ExecutionWorkflowJobJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ExecutionWorkflowJobJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ExecutionWorkflowJobJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,49 +52,58 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('workflow', $data) && null !== $data['workflow']) { + if (\array_key_exists('workflow', $data) && $data['workflow'] !== null) { $object->setWorkflow($data['workflow']); - } elseif (\array_key_exists('workflow', $data) && null === $data['workflow']) { + unset($data['workflow']); + } elseif (\array_key_exists('workflow', $data) && $data['workflow'] === null) { $object->setWorkflow(null); } - if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { + if (\array_key_exists('pipeline', $data) && $data['pipeline'] !== null) { $object->setPipeline($data['pipeline']); - } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { + unset($data['pipeline']); + } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { $object->setPipeline(null); } - if (\array_key_exists('action', $data) && null !== $data['action']) { + if (\array_key_exists('action', $data) && $data['action'] !== null) { $object->setAction($data['action']); - } elseif (\array_key_exists('action', $data) && null === $data['action']) { + unset($data['action']); + } elseif (\array_key_exists('action', $data) && $data['action'] === null) { $object->setAction(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -106,6 +113,11 @@ public function normalize($object, $format = null, array $context = []) $data['workflow'] = $object->getWorkflow(); $data['pipeline'] = $object->getPipeline(); $data['action'] = $object->getAction(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/ExecutionWorkflowJobNormalizer.php b/src/Normalizer/ExecutionWorkflowJobNormalizer.php index db764a57..5c764e41 100644 --- a/src/Normalizer/ExecutionWorkflowJobNormalizer.php +++ b/src/Normalizer/ExecutionWorkflowJobNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ExecutionWorkflowJobNormalizer implements DenormalizerInterface, Normalize use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ExecutionWorkflowJob::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ExecutionWorkflowJob'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ExecutionWorkflowJob::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ExecutionWorkflowJob'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,34 +52,40 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('workflow', $data) && null !== $data['workflow']) { + if (\array_key_exists('workflow', $data) && $data['workflow'] !== null) { $object->setWorkflow($data['workflow']); - } elseif (\array_key_exists('workflow', $data) && null === $data['workflow']) { + unset($data['workflow']); + } elseif (\array_key_exists('workflow', $data) && $data['workflow'] === null) { $object->setWorkflow(null); } - if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { + if (\array_key_exists('pipeline', $data) && $data['pipeline'] !== null) { $object->setPipeline($data['pipeline']); - } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { + unset($data['pipeline']); + } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { $object->setPipeline(null); } - if (\array_key_exists('action', $data) && null !== $data['action']) { + if (\array_key_exists('action', $data) && $data['action'] !== null) { $object->setAction($data['action']); - } elseif (\array_key_exists('action', $data) && null === $data['action']) { + unset($data['action']); + } elseif (\array_key_exists('action', $data) && $data['action'] === null) { $object->setAction(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -91,6 +95,11 @@ public function normalize($object, $format = null, array $context = []) $data['workflow'] = $object->getWorkflow(); $data['pipeline'] = $object->getPipeline(); $data['action'] = $object->getAction(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/ExecutionWorkflowJsonldNormalizer.php b/src/Normalizer/ExecutionWorkflowJsonldNormalizer.php index 0afca043..31c16eab 100644 --- a/src/Normalizer/ExecutionWorkflowJsonldNormalizer.php +++ b/src/Normalizer/ExecutionWorkflowJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ExecutionWorkflowJsonldNormalizer implements DenormalizerInterface, Normal use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ExecutionWorkflowJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ExecutionWorkflowJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ExecutionWorkflowJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ExecutionWorkflowJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,54 +52,62 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('jobs', $data) && null !== $data['jobs']) { + if (\array_key_exists('jobs', $data) && $data['jobs'] !== null) { $values = []; foreach ($data['jobs'] as $value) { $values[] = $value; } $object->setJobs($values); - } elseif (\array_key_exists('jobs', $data) && null === $data['jobs']) { + unset($data['jobs']); + } elseif (\array_key_exists('jobs', $data) && $data['jobs'] === null) { $object->setJobs(null); } - if (\array_key_exists('execution', $data) && null !== $data['execution']) { + if (\array_key_exists('execution', $data) && $data['execution'] !== null) { $object->setExecution($data['execution']); - } elseif (\array_key_exists('execution', $data) && null === $data['execution']) { + unset($data['execution']); + } elseif (\array_key_exists('execution', $data) && $data['execution'] === null) { $object->setExecution(null); } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getJobs()) { + if ($object->isInitialized('jobs') && null !== $object->getJobs()) { $values = []; foreach ($object->getJobs() as $value) { $values[] = $value; @@ -109,6 +115,11 @@ public function normalize($object, $format = null, array $context = []) $data['jobs'] = $values; } $data['execution'] = $object->getExecution(); + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/ExecutionWorkflowNormalizer.php b/src/Normalizer/ExecutionWorkflowNormalizer.php index fd3089d1..3575336f 100644 --- a/src/Normalizer/ExecutionWorkflowNormalizer.php +++ b/src/Normalizer/ExecutionWorkflowNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ExecutionWorkflowNormalizer implements DenormalizerInterface, NormalizerIn use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ExecutionWorkflow::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ExecutionWorkflow'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ExecutionWorkflow::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ExecutionWorkflow'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,39 +52,44 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('jobs', $data) && null !== $data['jobs']) { + if (\array_key_exists('jobs', $data) && $data['jobs'] !== null) { $values = []; foreach ($data['jobs'] as $value) { $values[] = $value; } $object->setJobs($values); - } elseif (\array_key_exists('jobs', $data) && null === $data['jobs']) { + unset($data['jobs']); + } elseif (\array_key_exists('jobs', $data) && $data['jobs'] === null) { $object->setJobs(null); } - if (\array_key_exists('execution', $data) && null !== $data['execution']) { + if (\array_key_exists('execution', $data) && $data['execution'] !== null) { $object->setExecution($data['execution']); - } elseif (\array_key_exists('execution', $data) && null === $data['execution']) { + unset($data['execution']); + } elseif (\array_key_exists('execution', $data) && $data['execution'] === null) { $object->setExecution(null); } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getJobs()) { + if ($object->isInitialized('jobs') && null !== $object->getJobs()) { $values = []; foreach ($object->getJobs() as $value) { $values[] = $value; @@ -94,6 +97,11 @@ public function normalize($object, $format = null, array $context = []) $data['jobs'] = $values; } $data['execution'] = $object->getExecution(); + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/ExecutionWorkflowResumeWorkflowExecutionCommandInputJsonldNormalizer.php b/src/Normalizer/ExecutionWorkflowResumeWorkflowExecutionCommandInputJsonldNormalizer.php new file mode 100644 index 00000000..49c4d3ab --- /dev/null +++ b/src/Normalizer/ExecutionWorkflowResumeWorkflowExecutionCommandInputJsonldNormalizer.php @@ -0,0 +1,96 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ExecutionWorkflowResumeWorkflowExecutionCommandJsonldNormalizer.php b/src/Normalizer/ExecutionWorkflowResumeWorkflowExecutionCommandJsonldNormalizer.php new file mode 100644 index 00000000..6890e077 --- /dev/null +++ b/src/Normalizer/ExecutionWorkflowResumeWorkflowExecutionCommandJsonldNormalizer.php @@ -0,0 +1,131 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId2($this->denormalizer->denormalize($data['id'], 'Gyroscops\\Api\\Model\\ExecutionIdJsonld', 'json', $context)); + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId2(null); + } + if (\array_key_exists('date', $data) && $data['date'] !== null) { + $object->setDate(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['date'])); + unset($data['date']); + } elseif (\array_key_exists('date', $data) && $data['date'] === null) { + $object->setDate(null); + } + if (\array_key_exists('user', $data) && $data['user'] !== null) { + $value = $data['user']; + if (is_array($data['user'])) { + $value = $this->denormalizer->denormalize($data['user'], 'Gyroscops\\Api\\Model\\UserIdJsonld', 'json', $context); + } + $object->setUser($value); + unset($data['user']); + } elseif (\array_key_exists('user', $data) && $data['user'] === null) { + $object->setUser(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id2') && null !== $object->getId2()) { + $data['id'] = $this->normalizer->normalize($object->getId2(), 'json', $context); + } + if ($object->isInitialized('date') && null !== $object->getDate()) { + $data['date'] = $object->getDate()->format('Y-m-d\\TH:i:sP'); + } + if ($object->isInitialized('user') && null !== $object->getUser()) { + $value = $object->getUser(); + if (is_object($object->getUser())) { + $value = $this->normalizer->normalize($object->getUser(), 'json', $context); + } + $data['user'] = $value; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ExecutionWorkflowResumeWorkflowExecutionCommandNormalizer.php b/src/Normalizer/ExecutionWorkflowResumeWorkflowExecutionCommandNormalizer.php new file mode 100644 index 00000000..a98f7091 --- /dev/null +++ b/src/Normalizer/ExecutionWorkflowResumeWorkflowExecutionCommandNormalizer.php @@ -0,0 +1,113 @@ +setId($this->denormalizer->denormalize($data['id'], 'Gyroscops\\Api\\Model\\ExecutionId', 'json', $context)); + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('date', $data) && $data['date'] !== null) { + $object->setDate(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['date'])); + unset($data['date']); + } elseif (\array_key_exists('date', $data) && $data['date'] === null) { + $object->setDate(null); + } + if (\array_key_exists('user', $data) && $data['user'] !== null) { + $value = $data['user']; + if (is_array($data['user'])) { + $value = $this->denormalizer->denormalize($data['user'], 'Gyroscops\\Api\\Model\\UserId', 'json', $context); + } + $object->setUser($value); + unset($data['user']); + } elseif (\array_key_exists('user', $data) && $data['user'] === null) { + $object->setUser(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $this->normalizer->normalize($object->getId(), 'json', $context); + } + if ($object->isInitialized('date') && null !== $object->getDate()) { + $data['date'] = $object->getDate()->format('Y-m-d\\TH:i:sP'); + } + if ($object->isInitialized('user') && null !== $object->getUser()) { + $value = $object->getUser(); + if (is_object($object->getUser())) { + $value = $this->normalizer->normalize($object->getUser(), 'json', $context); + } + $data['user'] = $value; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ExecutionWorkflowTerminateWorkflowExecutionCommandInputJsonldNormalizer.php b/src/Normalizer/ExecutionWorkflowTerminateWorkflowExecutionCommandInputJsonldNormalizer.php new file mode 100644 index 00000000..4829b1cb --- /dev/null +++ b/src/Normalizer/ExecutionWorkflowTerminateWorkflowExecutionCommandInputJsonldNormalizer.php @@ -0,0 +1,103 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('reason', $data) && $data['reason'] !== null) { + $object->setReason($data['reason']); + unset($data['reason']); + } elseif (\array_key_exists('reason', $data) && $data['reason'] === null) { + $object->setReason(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['reason'] = $object->getReason(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ExecutionWorkflowTerminateWorkflowExecutionCommandInputNormalizer.php b/src/Normalizer/ExecutionWorkflowTerminateWorkflowExecutionCommandInputNormalizer.php new file mode 100644 index 00000000..d5e32a0e --- /dev/null +++ b/src/Normalizer/ExecutionWorkflowTerminateWorkflowExecutionCommandInputNormalizer.php @@ -0,0 +1,85 @@ +setReason($data['reason']); + unset($data['reason']); + } elseif (\array_key_exists('reason', $data) && $data['reason'] === null) { + $object->setReason(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['reason'] = $object->getReason(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ExecutionWorkflowTerminateWorkflowExecutionCommandJsonldNormalizer.php b/src/Normalizer/ExecutionWorkflowTerminateWorkflowExecutionCommandJsonldNormalizer.php new file mode 100644 index 00000000..b467dab5 --- /dev/null +++ b/src/Normalizer/ExecutionWorkflowTerminateWorkflowExecutionCommandJsonldNormalizer.php @@ -0,0 +1,140 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId2($this->denormalizer->denormalize($data['id'], 'Gyroscops\\Api\\Model\\ExecutionIdJsonld', 'json', $context)); + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId2(null); + } + if (\array_key_exists('date', $data) && $data['date'] !== null) { + $object->setDate(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['date'])); + unset($data['date']); + } elseif (\array_key_exists('date', $data) && $data['date'] === null) { + $object->setDate(null); + } + if (\array_key_exists('reason', $data) && $data['reason'] !== null) { + $object->setReason($data['reason']); + unset($data['reason']); + } elseif (\array_key_exists('reason', $data) && $data['reason'] === null) { + $object->setReason(null); + } + if (\array_key_exists('user', $data) && $data['user'] !== null) { + $value = $data['user']; + if (is_array($data['user'])) { + $value = $this->denormalizer->denormalize($data['user'], 'Gyroscops\\Api\\Model\\UserIdJsonld', 'json', $context); + } + $object->setUser($value); + unset($data['user']); + } elseif (\array_key_exists('user', $data) && $data['user'] === null) { + $object->setUser(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id2') && null !== $object->getId2()) { + $data['id'] = $this->normalizer->normalize($object->getId2(), 'json', $context); + } + if ($object->isInitialized('date') && null !== $object->getDate()) { + $data['date'] = $object->getDate()->format('Y-m-d\\TH:i:sP'); + } + if ($object->isInitialized('reason') && null !== $object->getReason()) { + $data['reason'] = $object->getReason(); + } + if ($object->isInitialized('user') && null !== $object->getUser()) { + $value = $object->getUser(); + if (is_object($object->getUser())) { + $value = $this->normalizer->normalize($object->getUser(), 'json', $context); + } + $data['user'] = $value; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ExecutionWorkflowTerminateWorkflowExecutionCommandNormalizer.php b/src/Normalizer/ExecutionWorkflowTerminateWorkflowExecutionCommandNormalizer.php new file mode 100644 index 00000000..c85259fe --- /dev/null +++ b/src/Normalizer/ExecutionWorkflowTerminateWorkflowExecutionCommandNormalizer.php @@ -0,0 +1,122 @@ +setId($this->denormalizer->denormalize($data['id'], 'Gyroscops\\Api\\Model\\ExecutionId', 'json', $context)); + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('date', $data) && $data['date'] !== null) { + $object->setDate(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['date'])); + unset($data['date']); + } elseif (\array_key_exists('date', $data) && $data['date'] === null) { + $object->setDate(null); + } + if (\array_key_exists('reason', $data) && $data['reason'] !== null) { + $object->setReason($data['reason']); + unset($data['reason']); + } elseif (\array_key_exists('reason', $data) && $data['reason'] === null) { + $object->setReason(null); + } + if (\array_key_exists('user', $data) && $data['user'] !== null) { + $value = $data['user']; + if (is_array($data['user'])) { + $value = $this->denormalizer->denormalize($data['user'], 'Gyroscops\\Api\\Model\\UserId', 'json', $context); + } + $object->setUser($value); + unset($data['user']); + } elseif (\array_key_exists('user', $data) && $data['user'] === null) { + $object->setUser(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $this->normalizer->normalize($object->getId(), 'json', $context); + } + if ($object->isInitialized('date') && null !== $object->getDate()) { + $data['date'] = $object->getDate()->format('Y-m-d\\TH:i:sP'); + } + if ($object->isInitialized('reason') && null !== $object->getReason()) { + $data['reason'] = $object->getReason(); + } + if ($object->isInitialized('user') && null !== $object->getUser()) { + $value = $object->getUser(); + if (is_object($object->getUser())) { + $value = $this->normalizer->normalize($object->getUser(), 'json', $context); + } + $data['user'] = $value; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 9d5e3645..00000000 --- a/src/Normalizer/GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchNormalizer.php b/src/Normalizer/GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 6eb2a7ad..00000000 --- a/src/Normalizer/GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/GatewayAkeneoInstanceFromUrlGetResponse200HydraViewNormalizer.php b/src/Normalizer/GatewayAkeneoInstanceFromUrlGetResponse200HydraViewNormalizer.php deleted file mode 100644 index d4943dac..00000000 --- a/src/Normalizer/GatewayAkeneoInstanceFromUrlGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/GatewayAkeneoInstanceFromUrlGetResponse200Normalizer.php b/src/Normalizer/GatewayAkeneoInstanceFromUrlGetResponse200Normalizer.php deleted file mode 100644 index 50ee32fc..00000000 --- a/src/Normalizer/GatewayAkeneoInstanceFromUrlGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\AkeneoInstanceJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index b8356836..00000000 --- a/src/Normalizer/GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchNormalizer.php b/src/Normalizer/GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index ca8fd44a..00000000 --- a/src/Normalizer/GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/GatewayAkeneoInstanceOauthStateGetResponse200HydraViewNormalizer.php b/src/Normalizer/GatewayAkeneoInstanceOauthStateGetResponse200HydraViewNormalizer.php deleted file mode 100644 index ce6e706a..00000000 --- a/src/Normalizer/GatewayAkeneoInstanceOauthStateGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/GatewayAkeneoInstanceOauthStateGetResponse200Normalizer.php b/src/Normalizer/GatewayAkeneoInstanceOauthStateGetResponse200Normalizer.php deleted file mode 100644 index 6c851321..00000000 --- a/src/Normalizer/GatewayAkeneoInstanceOauthStateGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\AkeneoInstanceJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..a5a7400b --- /dev/null +++ b/src/Normalizer/GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..4dc9e8dc --- /dev/null +++ b/src/Normalizer/GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..68113e05 --- /dev/null +++ b/src/Normalizer/GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/GatewayAkeneoInstancesFromUrlGetLdjsonResponse200Normalizer.php b/src/Normalizer/GatewayAkeneoInstancesFromUrlGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..55f6de7c --- /dev/null +++ b/src/Normalizer/GatewayAkeneoInstancesFromUrlGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\AkeneoInstanceJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/GatewayAkeneoInstancesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/GatewayAkeneoInstancesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..03042c68 --- /dev/null +++ b/src/Normalizer/GatewayAkeneoInstancesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/GatewayAkeneoInstancesGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/GatewayAkeneoInstancesGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..fba561ad --- /dev/null +++ b/src/Normalizer/GatewayAkeneoInstancesGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\GatewayAkeneoInstancesGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/GatewayAkeneoInstancesGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/GatewayAkeneoInstancesGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..d161c7cc --- /dev/null +++ b/src/Normalizer/GatewayAkeneoInstancesGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/GatewayAkeneoInstancesGetLdjsonResponse200Normalizer.php b/src/Normalizer/GatewayAkeneoInstancesGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..cbe293c4 --- /dev/null +++ b/src/Normalizer/GatewayAkeneoInstancesGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\AkeneoInstanceJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\GatewayAkeneoInstancesGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\GatewayAkeneoInstancesGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/GatewayAkeneoInstancesGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/GatewayAkeneoInstancesGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 2df6b149..00000000 --- a/src/Normalizer/GatewayAkeneoInstancesGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/GatewayAkeneoInstancesGetResponse200HydraSearchNormalizer.php b/src/Normalizer/GatewayAkeneoInstancesGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index a51a7adb..00000000 --- a/src/Normalizer/GatewayAkeneoInstancesGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/GatewayAkeneoInstancesGetResponse200HydraViewNormalizer.php b/src/Normalizer/GatewayAkeneoInstancesGetResponse200HydraViewNormalizer.php deleted file mode 100644 index d62b4bb4..00000000 --- a/src/Normalizer/GatewayAkeneoInstancesGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/GatewayAkeneoInstancesGetResponse200Normalizer.php b/src/Normalizer/GatewayAkeneoInstancesGetResponse200Normalizer.php deleted file mode 100644 index 5c7cbf8e..00000000 --- a/src/Normalizer/GatewayAkeneoInstancesGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\AkeneoInstanceJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..7c2c6851 --- /dev/null +++ b/src/Normalizer/GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..54ede6f3 --- /dev/null +++ b/src/Normalizer/GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..98cb141e --- /dev/null +++ b/src/Normalizer/GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/GatewayAkeneoInstancesOauthStateGetLdjsonResponse200Normalizer.php b/src/Normalizer/GatewayAkeneoInstancesOauthStateGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..625876ca --- /dev/null +++ b/src/Normalizer/GatewayAkeneoInstancesOauthStateGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\AkeneoInstanceJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..c7820850 --- /dev/null +++ b/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..4a82ff8c --- /dev/null +++ b/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..6f4073e5 --- /dev/null +++ b/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200Normalizer.php b/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..2edb91b2 --- /dev/null +++ b/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\AkeneoLinkedAccountJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 94cc6501..00000000 --- a/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchNormalizer.php b/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index b4ea3219..00000000 --- a/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraViewNormalizer.php b/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraViewNormalizer.php deleted file mode 100644 index a5ea28b6..00000000 --- a/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200Normalizer.php b/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200Normalizer.php deleted file mode 100644 index 7e94c991..00000000 --- a/src/Normalizer/GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\AkeneoLinkedAccountJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..c070ef6e --- /dev/null +++ b/src/Normalizer/GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..ab9b39de --- /dev/null +++ b/src/Normalizer/GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..58628163 --- /dev/null +++ b/src/Normalizer/GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/GatewayAkeneoLinkedAccountsGetLdjsonResponse200Normalizer.php b/src/Normalizer/GatewayAkeneoLinkedAccountsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..e48dff4e --- /dev/null +++ b/src/Normalizer/GatewayAkeneoLinkedAccountsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\AkeneoLinkedAccountJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/GatewayAkeneoLinkedAccountsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/GatewayAkeneoLinkedAccountsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index caec832d..00000000 --- a/src/Normalizer/GatewayAkeneoLinkedAccountsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/GatewayAkeneoLinkedAccountsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/GatewayAkeneoLinkedAccountsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index e7a0fde3..00000000 --- a/src/Normalizer/GatewayAkeneoLinkedAccountsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/GatewayAkeneoLinkedAccountsGetResponse200HydraViewNormalizer.php b/src/Normalizer/GatewayAkeneoLinkedAccountsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index bc0a821f..00000000 --- a/src/Normalizer/GatewayAkeneoLinkedAccountsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/GatewayAkeneoLinkedAccountsGetResponse200Normalizer.php b/src/Normalizer/GatewayAkeneoLinkedAccountsGetResponse200Normalizer.php deleted file mode 100644 index c1ed8405..00000000 --- a/src/Normalizer/GatewayAkeneoLinkedAccountsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\AkeneoLinkedAccountJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/GatewayAkeneoOauthStatesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/GatewayAkeneoOauthStatesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..7e07a82b --- /dev/null +++ b/src/Normalizer/GatewayAkeneoOauthStatesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/GatewayAkeneoOauthStatesGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/GatewayAkeneoOauthStatesGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..7ef202af --- /dev/null +++ b/src/Normalizer/GatewayAkeneoOauthStatesGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthStatesGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/GatewayAkeneoOauthStatesGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/GatewayAkeneoOauthStatesGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..8b1605cc --- /dev/null +++ b/src/Normalizer/GatewayAkeneoOauthStatesGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/GatewayAkeneoOauthStatesGetLdjsonResponse200Normalizer.php b/src/Normalizer/GatewayAkeneoOauthStatesGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..3c86a296 --- /dev/null +++ b/src/Normalizer/GatewayAkeneoOauthStatesGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\AkeneoOauthTokenJsonldRead', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthStatesGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthStatesGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/GatewayAkeneoOauthStatesGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/GatewayAkeneoOauthStatesGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 661dd5ff..00000000 --- a/src/Normalizer/GatewayAkeneoOauthStatesGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/GatewayAkeneoOauthStatesGetResponse200HydraSearchNormalizer.php b/src/Normalizer/GatewayAkeneoOauthStatesGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 9fd19dfe..00000000 --- a/src/Normalizer/GatewayAkeneoOauthStatesGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/GatewayAkeneoOauthStatesGetResponse200HydraViewNormalizer.php b/src/Normalizer/GatewayAkeneoOauthStatesGetResponse200HydraViewNormalizer.php deleted file mode 100644 index e12f635e..00000000 --- a/src/Normalizer/GatewayAkeneoOauthStatesGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/GatewayAkeneoOauthStatesGetResponse200Normalizer.php b/src/Normalizer/GatewayAkeneoOauthStatesGetResponse200Normalizer.php deleted file mode 100644 index 98d5eb45..00000000 --- a/src/Normalizer/GatewayAkeneoOauthStatesGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\AkeneoOauthTokenJsonldRead::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItemNormalizer.php index ff004c2e..e0b09d62 100644 --- a/src/Normalizer/GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItemNormalizer.php +++ b/src/Normalizer/GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItemNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItemNormalizer implem use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItem::class === $type; + return $type === 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItem'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItem::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItem'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,51 +52,62 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { $object->setVariable(null); } - if (\array_key_exists('property', $data) && null !== $data['property']) { + if (\array_key_exists('property', $data) && $data['property'] !== null) { $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { $object->setProperty(null); } - if (\array_key_exists('required', $data) && null !== $data['required']) { + if (\array_key_exists('required', $data) && $data['required'] !== null) { $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { $object->setRequired(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getType()) { + if ($object->isInitialized('type') && null !== $object->getType()) { $data['@type'] = $object->getType(); } - if (null !== $object->getVariable()) { + if ($object->isInitialized('variable') && null !== $object->getVariable()) { $data['variable'] = $object->getVariable(); } - if (null !== $object->getProperty()) { + if ($object->isInitialized('property') && null !== $object->getProperty()) { $data['property'] = $object->getProperty(); } - if (null !== $object->getRequired()) { + if ($object->isInitialized('required') && null !== $object->getRequired()) { $data['required'] = $object->getRequired(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/GatewayAkeneoOauthTokenPutBodyHydraSearchNormalizer.php b/src/Normalizer/GatewayAkeneoOauthTokenPutBodyHydraSearchNormalizer.php index c1a68612..e49b77c8 100644 --- a/src/Normalizer/GatewayAkeneoOauthTokenPutBodyHydraSearchNormalizer.php +++ b/src/Normalizer/GatewayAkeneoOauthTokenPutBodyHydraSearchNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class GatewayAkeneoOauthTokenPutBodyHydraSearchNormalizer implements Denormalize use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraSearch::class === $type; + return $type === 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthTokenPutBodyHydraSearch'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraSearch::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthTokenPutBodyHydraSearch'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,59 +52,70 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { $object->setHydraTemplate(null); } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { $object->setHydraVariableRepresentation(null); } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { $values = []; foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItem::class, 'json', $context); + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItem', 'json', $context); } $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { $object->setHydraMapping(null); } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getType()) { + if ($object->isInitialized('type') && null !== $object->getType()) { $data['@type'] = $object->getType(); } - if (null !== $object->getHydraTemplate()) { + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { $data['hydra:template'] = $object->getHydraTemplate(); } - if (null !== $object->getHydraVariableRepresentation()) { + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); } - if (null !== $object->getHydraMapping()) { + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { $values = []; foreach ($object->getHydraMapping() as $value) { $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['hydra:mapping'] = $values; } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/GatewayAkeneoOauthTokenPutBodyHydraViewNormalizer.php b/src/Normalizer/GatewayAkeneoOauthTokenPutBodyHydraViewNormalizer.php index 1f947e6e..67f98266 100644 --- a/src/Normalizer/GatewayAkeneoOauthTokenPutBodyHydraViewNormalizer.php +++ b/src/Normalizer/GatewayAkeneoOauthTokenPutBodyHydraViewNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class GatewayAkeneoOauthTokenPutBodyHydraViewNormalizer implements DenormalizerI use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraView::class === $type; + return $type === 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthTokenPutBodyHydraView'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraView::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthTokenPutBodyHydraView'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,67 +52,80 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { $object->setHydraFirst(null); } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { $object->setHydraLast(null); } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { $object->setHydraPrevious(null); } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { $object->setHydraNext(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getId()) { + if ($object->isInitialized('id') && null !== $object->getId()) { $data['@id'] = $object->getId(); } - if (null !== $object->getType()) { + if ($object->isInitialized('type') && null !== $object->getType()) { $data['@type'] = $object->getType(); } - if (null !== $object->getHydraFirst()) { + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { $data['hydra:first'] = $object->getHydraFirst(); } - if (null !== $object->getHydraLast()) { + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { $data['hydra:last'] = $object->getHydraLast(); } - if (null !== $object->getHydraPrevious()) { + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { $data['hydra:previous'] = $object->getHydraPrevious(); } - if (null !== $object->getHydraNext()) { + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { $data['hydra:next'] = $object->getHydraNext(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/GatewayAkeneoOauthTokenPutBodyNormalizer.php b/src/Normalizer/GatewayAkeneoOauthTokenPutBodyNormalizer.php index 05de7cd5..0ab5d348 100644 --- a/src/Normalizer/GatewayAkeneoOauthTokenPutBodyNormalizer.php +++ b/src/Normalizer/GatewayAkeneoOauthTokenPutBodyNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class GatewayAkeneoOauthTokenPutBodyNormalizer implements DenormalizerInterface, use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBody::class === $type; + return $type === 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthTokenPutBody'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBody::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthTokenPutBody'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,38 +52,44 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('hydra:member', $data) && null !== $data['hydra:member']) { + if (\array_key_exists('hydra:member', $data) && $data['hydra:member'] !== null) { $values = []; foreach ($data['hydra:member'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInputJsonld::class, 'json', $context); + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\AkeneoOauthTokenOauthTokenInputJsonld', 'json', $context); } $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { $object->setHydraMember(null); } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { $object->setHydraTotalItems(null); } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthTokenPutBodyHydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { $object->setHydraView(null); } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthTokenPutBodyHydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { $object->setHydraSearch(null); } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -96,15 +100,20 @@ public function normalize($object, $format = null, array $context = []) $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { $data['hydra:totalItems'] = $object->getHydraTotalItems(); } - if (null !== $object->getHydraView()) { + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); } - if (null !== $object->getHydraSearch()) { + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/GatewayAkeneoOauthTokenPutLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/GatewayAkeneoOauthTokenPutLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..3998ef2f --- /dev/null +++ b/src/Normalizer/GatewayAkeneoOauthTokenPutLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/GatewayAkeneoOauthTokenPutLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/GatewayAkeneoOauthTokenPutLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..a17e966e --- /dev/null +++ b/src/Normalizer/GatewayAkeneoOauthTokenPutLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthTokenPutLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/GatewayAkeneoOauthTokenPutLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/GatewayAkeneoOauthTokenPutLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..3e436019 --- /dev/null +++ b/src/Normalizer/GatewayAkeneoOauthTokenPutLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/GatewayAkeneoOauthTokenPutLdjsonResponse200Normalizer.php b/src/Normalizer/GatewayAkeneoOauthTokenPutLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..e7f6b86f --- /dev/null +++ b/src/Normalizer/GatewayAkeneoOauthTokenPutLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\AkeneoOauthTokenOauthTokenOutputJsonldRead', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthTokenPutLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthTokenPutLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/GatewayAkeneoOauthTokenPutResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/GatewayAkeneoOauthTokenPutResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index bc11f4a7..00000000 --- a/src/Normalizer/GatewayAkeneoOauthTokenPutResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/GatewayAkeneoOauthTokenPutResponse200HydraSearchNormalizer.php b/src/Normalizer/GatewayAkeneoOauthTokenPutResponse200HydraSearchNormalizer.php deleted file mode 100644 index 2f4cb2ab..00000000 --- a/src/Normalizer/GatewayAkeneoOauthTokenPutResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/GatewayAkeneoOauthTokenPutResponse200HydraViewNormalizer.php b/src/Normalizer/GatewayAkeneoOauthTokenPutResponse200HydraViewNormalizer.php deleted file mode 100644 index 63d64259..00000000 --- a/src/Normalizer/GatewayAkeneoOauthTokenPutResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/GatewayAkeneoOauthTokenPutResponse200Normalizer.php b/src/Normalizer/GatewayAkeneoOauthTokenPutResponse200Normalizer.php deleted file mode 100644 index 03963ab2..00000000 --- a/src/Normalizer/GatewayAkeneoOauthTokenPutResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenOutputJsonldRead::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/JaneObjectNormalizer.php b/src/Normalizer/JaneObjectNormalizer.php index 66eb55d4..692804fb 100644 --- a/src/Normalizer/JaneObjectNormalizer.php +++ b/src/Normalizer/JaneObjectNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; @@ -23,38 +24,32 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; - protected $normalizers = [\Gyroscops\Api\Model\AbstractPipeline::class => \Gyroscops\Api\Normalizer\AbstractPipelineNormalizer::class, \Gyroscops\Api\Model\AbstractPipelineJsonld::class => \Gyroscops\Api\Normalizer\AbstractPipelineJsonldNormalizer::class, \Gyroscops\Api\Model\ActionRead::class => \Gyroscops\Api\Normalizer\ActionReadNormalizer::class, \Gyroscops\Api\Model\ActionJsonldRead::class => \Gyroscops\Api\Normalizer\ActionJsonldReadNormalizer::class, \Gyroscops\Api\Model\AddPipelineComposerAuthCommandInput::class => \Gyroscops\Api\Normalizer\AddPipelineComposerAuthCommandInputNormalizer::class, \Gyroscops\Api\Model\AddPipelineComposerAuthCommandInputJsonld::class => \Gyroscops\Api\Normalizer\AddPipelineComposerAuthCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\AddPipelineComposerRepositoryCommandInput::class => \Gyroscops\Api\Normalizer\AddPipelineComposerRepositoryCommandInputNormalizer::class, \Gyroscops\Api\Model\AddPipelineComposerRepositoryCommandInputJsonld::class => \Gyroscops\Api\Normalizer\AddPipelineComposerRepositoryCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\AkeneoInstance::class => \Gyroscops\Api\Normalizer\AkeneoInstanceNormalizer::class, \Gyroscops\Api\Model\AkeneoInstanceAkeneoInstanceInput::class => \Gyroscops\Api\Normalizer\AkeneoInstanceAkeneoInstanceInputNormalizer::class, \Gyroscops\Api\Model\AkeneoInstanceAkeneoInstanceInputJsonld::class => \Gyroscops\Api\Normalizer\AkeneoInstanceAkeneoInstanceInputJsonldNormalizer::class, \Gyroscops\Api\Model\AkeneoInstanceJsonld::class => \Gyroscops\Api\Normalizer\AkeneoInstanceJsonldNormalizer::class, \Gyroscops\Api\Model\AkeneoLinkedAccount::class => \Gyroscops\Api\Normalizer\AkeneoLinkedAccountNormalizer::class, \Gyroscops\Api\Model\AkeneoLinkedAccountAkeneoLinkedAccountsInput::class => \Gyroscops\Api\Normalizer\AkeneoLinkedAccountAkeneoLinkedAccountsInputNormalizer::class, \Gyroscops\Api\Model\AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonld::class => \Gyroscops\Api\Normalizer\AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonldNormalizer::class, \Gyroscops\Api\Model\AkeneoLinkedAccountJsonld::class => \Gyroscops\Api\Normalizer\AkeneoLinkedAccountJsonldNormalizer::class, \Gyroscops\Api\Model\AkeneoOauthTokenRead::class => \Gyroscops\Api\Normalizer\AkeneoOauthTokenReadNormalizer::class, \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateInput::class => \Gyroscops\Api\Normalizer\AkeneoOauthTokenOauthStateInputNormalizer::class, \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateInputJsonld::class => \Gyroscops\Api\Normalizer\AkeneoOauthTokenOauthStateInputJsonldNormalizer::class, \Gyroscops\Api\Model\AkeneoOauthTokenOauthStateOutputJsonldRead::class => \Gyroscops\Api\Normalizer\AkeneoOauthTokenOauthStateOutputJsonldReadNormalizer::class, \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInput::class => \Gyroscops\Api\Normalizer\AkeneoOauthTokenOauthTokenInputNormalizer::class, \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenInputJsonld::class => \Gyroscops\Api\Normalizer\AkeneoOauthTokenOauthTokenInputJsonldNormalizer::class, \Gyroscops\Api\Model\AkeneoOauthTokenOauthTokenOutputJsonldRead::class => \Gyroscops\Api\Normalizer\AkeneoOauthTokenOauthTokenOutputJsonldReadNormalizer::class, \Gyroscops\Api\Model\AkeneoOauthTokenJsonldRead::class => \Gyroscops\Api\Normalizer\AkeneoOauthTokenJsonldReadNormalizer::class, \Gyroscops\Api\Model\AutoloadInput::class => \Gyroscops\Api\Normalizer\AutoloadInputNormalizer::class, \Gyroscops\Api\Model\AutoloadInputJsonld::class => \Gyroscops\Api\Normalizer\AutoloadInputJsonldNormalizer::class, \Gyroscops\Api\Model\BigDecimal::class => \Gyroscops\Api\Normalizer\BigDecimalNormalizer::class, \Gyroscops\Api\Model\BigDecimalJsonld::class => \Gyroscops\Api\Normalizer\BigDecimalJsonldNormalizer::class, \Gyroscops\Api\Model\BigInteger::class => \Gyroscops\Api\Normalizer\BigIntegerNormalizer::class, \Gyroscops\Api\Model\BigIntegerJsonld::class => \Gyroscops\Api\Normalizer\BigIntegerJsonldNormalizer::class, \Gyroscops\Api\Model\BigNumber::class => \Gyroscops\Api\Normalizer\BigNumberNormalizer::class, \Gyroscops\Api\Model\BigNumberJsonld::class => \Gyroscops\Api\Normalizer\BigNumberJsonldNormalizer::class, \Gyroscops\Api\Model\Compilation::class => \Gyroscops\Api\Normalizer\CompilationNormalizer::class, \Gyroscops\Api\Model\CompilationCompilePipelineCommand::class => \Gyroscops\Api\Normalizer\CompilationCompilePipelineCommandNormalizer::class, \Gyroscops\Api\Model\CompilationCompilePipelineCommandJsonld::class => \Gyroscops\Api\Normalizer\CompilationCompilePipelineCommandJsonldNormalizer::class, \Gyroscops\Api\Model\CompilationCompilePipelineCommandInputJsonld::class => \Gyroscops\Api\Normalizer\CompilationCompilePipelineCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\CompilationJsonld::class => \Gyroscops\Api\Normalizer\CompilationJsonldNormalizer::class, \Gyroscops\Api\Model\Configuration::class => \Gyroscops\Api\Normalizer\ConfigurationNormalizer::class, \Gyroscops\Api\Model\ConfigurationEdit::class => \Gyroscops\Api\Normalizer\ConfigurationEditNormalizer::class, \Gyroscops\Api\Model\ConfigurationRead::class => \Gyroscops\Api\Normalizer\ConfigurationReadNormalizer::class, \Gyroscops\Api\Model\ConfigurationChangeConfigurationValueInput::class => \Gyroscops\Api\Normalizer\ConfigurationChangeConfigurationValueInputNormalizer::class, \Gyroscops\Api\Model\ConfigurationChangeConfigurationValueInputJsonld::class => \Gyroscops\Api\Normalizer\ConfigurationChangeConfigurationValueInputJsonldNormalizer::class, \Gyroscops\Api\Model\ConfigurationCreateConfigurationInput::class => \Gyroscops\Api\Normalizer\ConfigurationCreateConfigurationInputNormalizer::class, \Gyroscops\Api\Model\ConfigurationCreateConfigurationInputJsonld::class => \Gyroscops\Api\Normalizer\ConfigurationCreateConfigurationInputJsonldNormalizer::class, \Gyroscops\Api\Model\ConfigurationRemoveConfigurationValueInput::class => \Gyroscops\Api\Normalizer\ConfigurationRemoveConfigurationValueInputNormalizer::class, \Gyroscops\Api\Model\ConfigurationRemoveConfigurationValueInputJsonld::class => \Gyroscops\Api\Normalizer\ConfigurationRemoveConfigurationValueInputJsonldNormalizer::class, \Gyroscops\Api\Model\ConfigurationJsonld::class => \Gyroscops\Api\Normalizer\ConfigurationJsonldNormalizer::class, \Gyroscops\Api\Model\ConfigurationJsonldEdit::class => \Gyroscops\Api\Normalizer\ConfigurationJsonldEditNormalizer::class, \Gyroscops\Api\Model\ConfigurationJsonldRead::class => \Gyroscops\Api\Normalizer\ConfigurationJsonldReadNormalizer::class, \Gyroscops\Api\Model\ConfigurationIdJsonld::class => \Gyroscops\Api\Normalizer\ConfigurationIdJsonldNormalizer::class, \Gyroscops\Api\Model\Context::class => \Gyroscops\Api\Normalizer\ContextNormalizer::class, \Gyroscops\Api\Model\ContextJsonld::class => \Gyroscops\Api\Normalizer\ContextJsonldNormalizer::class, \Gyroscops\Api\Model\CreateSecretInput::class => \Gyroscops\Api\Normalizer\CreateSecretInputNormalizer::class, \Gyroscops\Api\Model\CreateSecretInputJsonld::class => \Gyroscops\Api\Normalizer\CreateSecretInputJsonldNormalizer::class, \Gyroscops\Api\Model\Currency::class => \Gyroscops\Api\Normalizer\CurrencyNormalizer::class, \Gyroscops\Api\Model\CurrencyJsonld::class => \Gyroscops\Api\Normalizer\CurrencyJsonldNormalizer::class, \Gyroscops\Api\Model\EnvironmentRead::class => \Gyroscops\Api\Normalizer\EnvironmentReadNormalizer::class, \Gyroscops\Api\Model\EnvironmentWrite::class => \Gyroscops\Api\Normalizer\EnvironmentWriteNormalizer::class, \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConfigurationInput::class => \Gyroscops\Api\Normalizer\EnvironmentAddMultipleVariableFromConfigurationInputNormalizer::class, \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConfigurationInputJsonld::class => \Gyroscops\Api\Normalizer\EnvironmentAddMultipleVariableFromConfigurationInputJsonldNormalizer::class, \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConstantInput::class => \Gyroscops\Api\Normalizer\EnvironmentAddMultipleVariableFromConstantInputNormalizer::class, \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromConstantInputJsonld::class => \Gyroscops\Api\Normalizer\EnvironmentAddMultipleVariableFromConstantInputJsonldNormalizer::class, \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromSecretInput::class => \Gyroscops\Api\Normalizer\EnvironmentAddMultipleVariableFromSecretInputNormalizer::class, \Gyroscops\Api\Model\EnvironmentAddMultipleVariableFromSecretInputJsonld::class => \Gyroscops\Api\Normalizer\EnvironmentAddMultipleVariableFromSecretInputJsonldNormalizer::class, \Gyroscops\Api\Model\EnvironmentCreateEnvironmentInput::class => \Gyroscops\Api\Normalizer\EnvironmentCreateEnvironmentInputNormalizer::class, \Gyroscops\Api\Model\EnvironmentCreateEnvironmentInputJsonld::class => \Gyroscops\Api\Normalizer\EnvironmentCreateEnvironmentInputJsonldNormalizer::class, \Gyroscops\Api\Model\EnvironmentJsonldRead::class => \Gyroscops\Api\Normalizer\EnvironmentJsonldReadNormalizer::class, \Gyroscops\Api\Model\EnvironmentJsonldWrite::class => \Gyroscops\Api\Normalizer\EnvironmentJsonldWriteNormalizer::class, \Gyroscops\Api\Model\ExecutionRead::class => \Gyroscops\Api\Normalizer\ExecutionReadNormalizer::class, \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandJsonldRead::class => \Gyroscops\Api\Normalizer\ExecutionDeclarePipelineExecutionCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandInput::class => \Gyroscops\Api\Normalizer\ExecutionDeclarePipelineExecutionCommandInputNormalizer::class, \Gyroscops\Api\Model\ExecutionDeclarePipelineExecutionCommandInputJsonld::class => \Gyroscops\Api\Normalizer\ExecutionDeclarePipelineExecutionCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionFinishPipelineExecutionCommandJsonldRead::class => \Gyroscops\Api\Normalizer\ExecutionFinishPipelineExecutionCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\ExecutionFinishPipelineExecutionCommandInputJsonld::class => \Gyroscops\Api\Normalizer\ExecutionFinishPipelineExecutionCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionInterruptPipelineExecutionCommandJsonldRead::class => \Gyroscops\Api\Normalizer\ExecutionInterruptPipelineExecutionCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\ExecutionInterruptPipelineExecutionCommandInputJsonld::class => \Gyroscops\Api\Normalizer\ExecutionInterruptPipelineExecutionCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionResumePipelineExecutionCommandJsonldRead::class => \Gyroscops\Api\Normalizer\ExecutionResumePipelineExecutionCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\ExecutionResumePipelineExecutionCommandInputJsonld::class => \Gyroscops\Api\Normalizer\ExecutionResumePipelineExecutionCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionStartPipelineExecutionCommandJsonldRead::class => \Gyroscops\Api\Normalizer\ExecutionStartPipelineExecutionCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\ExecutionStartPipelineExecutionCommandInputJsonld::class => \Gyroscops\Api\Normalizer\ExecutionStartPipelineExecutionCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandJsonldRead::class => \Gyroscops\Api\Normalizer\ExecutionTerminatePipelineExecutionCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandInput::class => \Gyroscops\Api\Normalizer\ExecutionTerminatePipelineExecutionCommandInputNormalizer::class, \Gyroscops\Api\Model\ExecutionTerminatePipelineExecutionCommandInputJsonld::class => \Gyroscops\Api\Normalizer\ExecutionTerminatePipelineExecutionCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionUpdatePipelineExecutionStateCommandJsonldRead::class => \Gyroscops\Api\Normalizer\ExecutionUpdatePipelineExecutionStateCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\ExecutionUpdatePipelineExecutionStateCommandInput::class => \Gyroscops\Api\Normalizer\ExecutionUpdatePipelineExecutionStateCommandInputNormalizer::class, \Gyroscops\Api\Model\ExecutionUpdatePipelineExecutionStateCommandInputJsonld::class => \Gyroscops\Api\Normalizer\ExecutionUpdatePipelineExecutionStateCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionJsonldRead::class => \Gyroscops\Api\Normalizer\ExecutionJsonldReadNormalizer::class, \Gyroscops\Api\Model\ExecutionAction::class => \Gyroscops\Api\Normalizer\ExecutionActionNormalizer::class, \Gyroscops\Api\Model\ExecutionActionJsonld::class => \Gyroscops\Api\Normalizer\ExecutionActionJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionPipeline::class => \Gyroscops\Api\Normalizer\ExecutionPipelineNormalizer::class, \Gyroscops\Api\Model\ExecutionPipelineJsonld::class => \Gyroscops\Api\Normalizer\ExecutionPipelineJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionPipelineJob::class => \Gyroscops\Api\Normalizer\ExecutionPipelineJobNormalizer::class, \Gyroscops\Api\Model\ExecutionPipelineJobJsonld::class => \Gyroscops\Api\Normalizer\ExecutionPipelineJobJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionPipelineStep::class => \Gyroscops\Api\Normalizer\ExecutionPipelineStepNormalizer::class, \Gyroscops\Api\Model\ExecutionPipelineStepJsonld::class => \Gyroscops\Api\Normalizer\ExecutionPipelineStepJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionWorkflow::class => \Gyroscops\Api\Normalizer\ExecutionWorkflowNormalizer::class, \Gyroscops\Api\Model\ExecutionWorkflowJsonld::class => \Gyroscops\Api\Normalizer\ExecutionWorkflowJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionWorkflowJob::class => \Gyroscops\Api\Normalizer\ExecutionWorkflowJobNormalizer::class, \Gyroscops\Api\Model\ExecutionWorkflowJobJsonld::class => \Gyroscops\Api\Normalizer\ExecutionWorkflowJobJsonldNormalizer::class, \Gyroscops\Api\Model\ExecutionWorkflowJobAction::class => \Gyroscops\Api\Normalizer\ExecutionWorkflowJobActionNormalizer::class, \Gyroscops\Api\Model\ExecutionWorkflowJobActionJsonld::class => \Gyroscops\Api\Normalizer\ExecutionWorkflowJobActionJsonldNormalizer::class, \Gyroscops\Api\Model\Money::class => \Gyroscops\Api\Normalizer\MoneyNormalizer::class, \Gyroscops\Api\Model\MoneyJsonld::class => \Gyroscops\Api\Normalizer\MoneyJsonldNormalizer::class, \Gyroscops\Api\Model\Offer::class => \Gyroscops\Api\Normalizer\OfferNormalizer::class, \Gyroscops\Api\Model\OfferJsonld::class => \Gyroscops\Api\Normalizer\OfferJsonldNormalizer::class, \Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestRead::class => \Gyroscops\Api\Normalizer\OnPremiseRequestOnPremiseRequestReadNormalizer::class, \Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestWrite::class => \Gyroscops\Api\Normalizer\OnPremiseRequestOnPremiseRequestWriteNormalizer::class, \Gyroscops\Api\Model\OnPremiseRequestJsonldOnPremiseRequestRead::class => \Gyroscops\Api\Normalizer\OnPremiseRequestJsonldOnPremiseRequestReadNormalizer::class, \Gyroscops\Api\Model\OnPremiseRequestJsonldOnPremiseRequestWrite::class => \Gyroscops\Api\Normalizer\OnPremiseRequestJsonldOnPremiseRequestWriteNormalizer::class, \Gyroscops\Api\Model\Option::class => \Gyroscops\Api\Normalizer\OptionNormalizer::class, \Gyroscops\Api\Model\OptionJsonld::class => \Gyroscops\Api\Normalizer\OptionJsonldNormalizer::class, \Gyroscops\Api\Model\Organization::class => \Gyroscops\Api\Normalizer\OrganizationNormalizer::class, \Gyroscops\Api\Model\OrganizationJsonld::class => \Gyroscops\Api\Normalizer\OrganizationJsonldNormalizer::class, \Gyroscops\Api\Model\OrganizationIdJsonld::class => \Gyroscops\Api\Normalizer\OrganizationIdJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineRead::class => \Gyroscops\Api\Normalizer\PipelineReadNormalizer::class, \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineAddAfterPipelineStepCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandInput::class => \Gyroscops\Api\Normalizer\PipelineAddAfterPipelineStepCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineAddAfterPipelineStepCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineAddBeforePipelineStepCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandInput::class => \Gyroscops\Api\Normalizer\PipelineAddBeforePipelineStepCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineAddBeforePipelineStepCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerAuthCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandInput::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerAuthCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerAuthCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerPSR4AutoloadCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandInput::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerPSR4AutoloadCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerPackageCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandInput::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerPackageCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerPackageCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerRepositoryCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandInput::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerRepositoryCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineComposerRepositoryCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineStepProbCommandInput::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineStepProbCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineStepProbCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineStepProbCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineAddPipelineStepProbeCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineAddPipelineStepProbeCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineAppendPipelineStepCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandInput::class => \Gyroscops\Api\Normalizer\PipelineAppendPipelineStepCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineAppendPipelineStepCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineCompilePipelineCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineCompilePipelineCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineCompilePipelineCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineCompilePipelineCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineDeclarePipelineCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineDeclarePipelineCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineDeclarePipelineCommandInput::class => \Gyroscops\Api\Normalizer\PipelineDeclarePipelineCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineDeclarePipelineCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineDeclarePipelineCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineMoveAfterPipelineStepCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandInput::class => \Gyroscops\Api\Normalizer\PipelineMoveAfterPipelineStepCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineMoveAfterPipelineStepCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineMoveBeforePipelineStepCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandInput::class => \Gyroscops\Api\Normalizer\PipelineMoveBeforePipelineStepCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineMoveBeforePipelineStepCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerAuthCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandInput::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerAuthCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerAuthCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandInput::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerPSR4AutoloadCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerPackageCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandInput::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerPackageCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerPackageCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerRepositoryCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandInput::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerRepositoryCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineComposerRepositoryCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineRemovePipelineStepProbeCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineRemovePipelineStepProbeCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineReorderPipelineStepsCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandInput::class => \Gyroscops\Api\Normalizer\PipelineReorderPipelineStepsCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineReorderPipelineStepsCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineReplacePipelineStepCommandJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandInput::class => \Gyroscops\Api\Normalizer\PipelineReplacePipelineStepCommandInputNormalizer::class, \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandInputJsonld::class => \Gyroscops\Api\Normalizer\PipelineReplacePipelineStepCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineJsonldRead::class => \Gyroscops\Api\Normalizer\PipelineJsonldReadNormalizer::class, \Gyroscops\Api\Model\PipelineIdJsonld::class => \Gyroscops\Api\Normalizer\PipelineIdJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineStep::class => \Gyroscops\Api\Normalizer\PipelineStepNormalizer::class, \Gyroscops\Api\Model\PipelineStepJsonld::class => \Gyroscops\Api\Normalizer\PipelineStepJsonldNormalizer::class, \Gyroscops\Api\Model\PipelineStepProbe::class => \Gyroscops\Api\Normalizer\PipelineStepProbeNormalizer::class, \Gyroscops\Api\Model\PipelineStepProbeJsonld::class => \Gyroscops\Api\Normalizer\PipelineStepProbeJsonldNormalizer::class, \Gyroscops\Api\Model\Price::class => \Gyroscops\Api\Normalizer\PriceNormalizer::class, \Gyroscops\Api\Model\PriceJsonld::class => \Gyroscops\Api\Normalizer\PriceJsonldNormalizer::class, \Gyroscops\Api\Model\Probe::class => \Gyroscops\Api\Normalizer\ProbeNormalizer::class, \Gyroscops\Api\Model\ProbeJsonld::class => \Gyroscops\Api\Normalizer\ProbeJsonldNormalizer::class, \Gyroscops\Api\Model\ReferralCodeReferralCodeRead::class => \Gyroscops\Api\Normalizer\ReferralCodeReferralCodeReadNormalizer::class, \Gyroscops\Api\Model\ReferralCodeReferralCodeWrite::class => \Gyroscops\Api\Normalizer\ReferralCodeReferralCodeWriteNormalizer::class, \Gyroscops\Api\Model\ReferralCodeJsonldReferralCodeRead::class => \Gyroscops\Api\Normalizer\ReferralCodeJsonldReferralCodeReadNormalizer::class, \Gyroscops\Api\Model\ReferralCodeJsonldReferralCodeWrite::class => \Gyroscops\Api\Normalizer\ReferralCodeJsonldReferralCodeWriteNormalizer::class, \Gyroscops\Api\Model\ReferralRequestReferralRequestRead::class => \Gyroscops\Api\Normalizer\ReferralRequestReferralRequestReadNormalizer::class, \Gyroscops\Api\Model\ReferralRequestReferralRequestInput::class => \Gyroscops\Api\Normalizer\ReferralRequestReferralRequestInputNormalizer::class, \Gyroscops\Api\Model\ReferralRequestReferralRequestInputJsonld::class => \Gyroscops\Api\Normalizer\ReferralRequestReferralRequestInputJsonldNormalizer::class, \Gyroscops\Api\Model\ReferralRequestJsonldReferralRequestRead::class => \Gyroscops\Api\Normalizer\ReferralRequestJsonldReferralRequestReadNormalizer::class, \Gyroscops\Api\Model\Schedule::class => \Gyroscops\Api\Normalizer\ScheduleNormalizer::class, \Gyroscops\Api\Model\ScheduleDeclarePipelineScheduleCommandInput::class => \Gyroscops\Api\Normalizer\ScheduleDeclarePipelineScheduleCommandInputNormalizer::class, \Gyroscops\Api\Model\ScheduleDeclarePipelineScheduleCommandInputJsonld::class => \Gyroscops\Api\Normalizer\ScheduleDeclarePipelineScheduleCommandInputJsonldNormalizer::class, \Gyroscops\Api\Model\ScheduleScheduleCommandInterfaceJsonld::class => \Gyroscops\Api\Normalizer\ScheduleScheduleCommandInterfaceJsonldNormalizer::class, \Gyroscops\Api\Model\ScheduleJsonld::class => \Gyroscops\Api\Normalizer\ScheduleJsonldNormalizer::class, \Gyroscops\Api\Model\Secret::class => \Gyroscops\Api\Normalizer\SecretNormalizer::class, \Gyroscops\Api\Model\SecretEdit::class => \Gyroscops\Api\Normalizer\SecretEditNormalizer::class, \Gyroscops\Api\Model\SecretRead::class => \Gyroscops\Api\Normalizer\SecretReadNormalizer::class, \Gyroscops\Api\Model\SecretChangeSecretValueInput::class => \Gyroscops\Api\Normalizer\SecretChangeSecretValueInputNormalizer::class, \Gyroscops\Api\Model\SecretChangeSecretValueInputJsonld::class => \Gyroscops\Api\Normalizer\SecretChangeSecretValueInputJsonldNormalizer::class, \Gyroscops\Api\Model\SecretCreateSecretInput::class => \Gyroscops\Api\Normalizer\SecretCreateSecretInputNormalizer::class, \Gyroscops\Api\Model\SecretCreateSecretInputJsonld::class => \Gyroscops\Api\Normalizer\SecretCreateSecretInputJsonldNormalizer::class, \Gyroscops\Api\Model\SecretRemoveSecretValueInput::class => \Gyroscops\Api\Normalizer\SecretRemoveSecretValueInputNormalizer::class, \Gyroscops\Api\Model\SecretRemoveSecretValueInputJsonld::class => \Gyroscops\Api\Normalizer\SecretRemoveSecretValueInputJsonldNormalizer::class, \Gyroscops\Api\Model\SecretJsonld::class => \Gyroscops\Api\Normalizer\SecretJsonldNormalizer::class, \Gyroscops\Api\Model\SecretJsonldEdit::class => \Gyroscops\Api\Normalizer\SecretJsonldEditNormalizer::class, \Gyroscops\Api\Model\SecretJsonldRead::class => \Gyroscops\Api\Normalizer\SecretJsonldReadNormalizer::class, \Gyroscops\Api\Model\SecretIdJsonld::class => \Gyroscops\Api\Normalizer\SecretIdJsonldNormalizer::class, \Gyroscops\Api\Model\StepInput::class => \Gyroscops\Api\Normalizer\StepInputNormalizer::class, \Gyroscops\Api\Model\StepInputJsonld::class => \Gyroscops\Api\Normalizer\StepInputJsonldNormalizer::class, \Gyroscops\Api\Model\Subscription::class => \Gyroscops\Api\Normalizer\SubscriptionNormalizer::class, \Gyroscops\Api\Model\SubscriptionJsonld::class => \Gyroscops\Api\Normalizer\SubscriptionJsonldNormalizer::class, \Gyroscops\Api\Model\SubscriptionOption::class => \Gyroscops\Api\Normalizer\SubscriptionOptionNormalizer::class, \Gyroscops\Api\Model\SubscriptionOptionJsonld::class => \Gyroscops\Api\Normalizer\SubscriptionOptionJsonldNormalizer::class, \Gyroscops\Api\Model\TraversableJsonld::class => \Gyroscops\Api\Normalizer\TraversableJsonldNormalizer::class, \Gyroscops\Api\Model\TraversableJsonldRead::class => \Gyroscops\Api\Normalizer\TraversableJsonldReadNormalizer::class, \Gyroscops\Api\Model\UpdateList::class => \Gyroscops\Api\Normalizer\UpdateListNormalizer::class, \Gyroscops\Api\Model\UpdateListJsonld::class => \Gyroscops\Api\Normalizer\UpdateListJsonldNormalizer::class, \Gyroscops\Api\Model\User::class => \Gyroscops\Api\Normalizer\UserNormalizer::class, \Gyroscops\Api\Model\UserUserChangePasswordInput::class => \Gyroscops\Api\Normalizer\UserUserChangePasswordInputNormalizer::class, \Gyroscops\Api\Model\UserJsonld::class => \Gyroscops\Api\Normalizer\UserJsonldNormalizer::class, \Gyroscops\Api\Model\UserAuthorization::class => \Gyroscops\Api\Normalizer\UserAuthorizationNormalizer::class, \Gyroscops\Api\Model\UserAuthorizationJsonld::class => \Gyroscops\Api\Normalizer\UserAuthorizationJsonldNormalizer::class, \Gyroscops\Api\Model\VariableRead::class => \Gyroscops\Api\Normalizer\VariableReadNormalizer::class, \Gyroscops\Api\Model\VariableJsonldRead::class => \Gyroscops\Api\Normalizer\VariableJsonldReadNormalizer::class, \Gyroscops\Api\Model\VariableFromConfigurationRead::class => \Gyroscops\Api\Normalizer\VariableFromConfigurationReadNormalizer::class, \Gyroscops\Api\Model\VariableFromConfigurationJsonldRead::class => \Gyroscops\Api\Normalizer\VariableFromConfigurationJsonldReadNormalizer::class, \Gyroscops\Api\Model\VariableFromConfigurationJsonldWrite::class => \Gyroscops\Api\Normalizer\VariableFromConfigurationJsonldWriteNormalizer::class, \Gyroscops\Api\Model\VariableFromConfigurationInput::class => \Gyroscops\Api\Normalizer\VariableFromConfigurationInputNormalizer::class, \Gyroscops\Api\Model\VariableFromConfigurationInputJsonld::class => \Gyroscops\Api\Normalizer\VariableFromConfigurationInputJsonldNormalizer::class, \Gyroscops\Api\Model\VariableFromConstantRead::class => \Gyroscops\Api\Normalizer\VariableFromConstantReadNormalizer::class, \Gyroscops\Api\Model\VariableFromConstantJsonldRead::class => \Gyroscops\Api\Normalizer\VariableFromConstantJsonldReadNormalizer::class, \Gyroscops\Api\Model\VariableFromConstantJsonldWrite::class => \Gyroscops\Api\Normalizer\VariableFromConstantJsonldWriteNormalizer::class, \Gyroscops\Api\Model\VariableFromConstantInput::class => \Gyroscops\Api\Normalizer\VariableFromConstantInputNormalizer::class, \Gyroscops\Api\Model\VariableFromConstantInputJsonld::class => \Gyroscops\Api\Normalizer\VariableFromConstantInputJsonldNormalizer::class, \Gyroscops\Api\Model\VariableFromSecretRead::class => \Gyroscops\Api\Normalizer\VariableFromSecretReadNormalizer::class, \Gyroscops\Api\Model\VariableFromSecretJsonldRead::class => \Gyroscops\Api\Normalizer\VariableFromSecretJsonldReadNormalizer::class, \Gyroscops\Api\Model\VariableFromSecretJsonldWrite::class => \Gyroscops\Api\Normalizer\VariableFromSecretJsonldWriteNormalizer::class, \Gyroscops\Api\Model\VariableFromSecretInput::class => \Gyroscops\Api\Normalizer\VariableFromSecretInputNormalizer::class, \Gyroscops\Api\Model\VariableFromSecretInputJsonld::class => \Gyroscops\Api\Normalizer\VariableFromSecretInputJsonldNormalizer::class, \Gyroscops\Api\Model\WorkflowRead::class => \Gyroscops\Api\Normalizer\WorkflowReadNormalizer::class, \Gyroscops\Api\Model\WorkflowJsonldRead::class => \Gyroscops\Api\Normalizer\WorkflowJsonldReadNormalizer::class, \Gyroscops\Api\Model\WorkflowJobRead::class => \Gyroscops\Api\Normalizer\WorkflowJobReadNormalizer::class, \Gyroscops\Api\Model\WorkflowJobJsonldRead::class => \Gyroscops\Api\Normalizer\WorkflowJobJsonldReadNormalizer::class, \Gyroscops\Api\Model\WorkflowJobAction::class => \Gyroscops\Api\Normalizer\WorkflowJobActionNormalizer::class, \Gyroscops\Api\Model\WorkflowJobActionRead::class => \Gyroscops\Api\Normalizer\WorkflowJobActionReadNormalizer::class, \Gyroscops\Api\Model\WorkflowJobActionJsonld::class => \Gyroscops\Api\Normalizer\WorkflowJobActionJsonldNormalizer::class, \Gyroscops\Api\Model\WorkflowJobActionJsonldRead::class => \Gyroscops\Api\Normalizer\WorkflowJobActionJsonldReadNormalizer::class, \Gyroscops\Api\Model\WorkflowJobPipeline::class => \Gyroscops\Api\Normalizer\WorkflowJobPipelineNormalizer::class, \Gyroscops\Api\Model\WorkflowJobPipelineRead::class => \Gyroscops\Api\Normalizer\WorkflowJobPipelineReadNormalizer::class, \Gyroscops\Api\Model\WorkflowJobPipelineJsonld::class => \Gyroscops\Api\Normalizer\WorkflowJobPipelineJsonldNormalizer::class, \Gyroscops\Api\Model\WorkflowJobPipelineJsonldRead::class => \Gyroscops\Api\Normalizer\WorkflowJobPipelineJsonldReadNormalizer::class, \Gyroscops\Api\Model\Workspace::class => \Gyroscops\Api\Normalizer\WorkspaceNormalizer::class, \Gyroscops\Api\Model\WorkspaceJsonld::class => \Gyroscops\Api\Normalizer\WorkspaceJsonldNormalizer::class, \Gyroscops\Api\Model\WorkspaceIdJsonld::class => \Gyroscops\Api\Normalizer\WorkspaceIdJsonldNormalizer::class, \Gyroscops\Api\Model\Token::class => \Gyroscops\Api\Normalizer\TokenNormalizer::class, \Gyroscops\Api\Model\Credentials::class => \Gyroscops\Api\Normalizer\CredentialsNormalizer::class, \Gyroscops\Api\Model\AuthenticationMeGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationMeGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationMeGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationMeGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationMeGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationMeGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationMeGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationMeGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationOfferIdOptionsGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationOfferIdOptionsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationOfferIdOptionsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationOfferIdOptionsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationOfferIdOptionsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationOffersGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationOffersGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationOffersGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationOffersGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationOffersGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationOffersGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationOffersGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationOffersGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdAuthorizationsGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdExternalCollaboratorsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdUsersGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdUsersGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdUsersGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdUsersGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdUsersGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdWorkspacesGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdWorkspacesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationIdWorkspacesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationsGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationOrganizationsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationOrganizationsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationSubscriptionsGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationSubscriptionsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationSubscriptionsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationSubscriptionsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationSubscriptionsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationSubscriptionsIdOptionsGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationSubscriptionsIdOptionsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationSubscriptionsIdOptionsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationUserAuthorizationsGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationUserAuthorizationsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationUserAuthorizationsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationUserAuthorizationsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationUserAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationUserIdAuthorizationsGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationUserIdAuthorizationsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationUserIdAuthorizationsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationUserIdAuthorizationsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationUserIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationUsersGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationUsersGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationUsersGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationUsersGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationUsersGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationUsersGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationUsersGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationUsersGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspaceIdAuthorizationsGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspaceIdAuthorizationsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspaceIdUsersGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspaceIdUsersGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspaceIdUsersGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspaceIdUsersGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspaceIdUsersGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspacesGetResponse200Normalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspacesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspacesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\AuthenticationWorkspacesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\AuthenticationWorkspacesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200::class => \Gyroscops\Api\Normalizer\EnvironmentConfigurationsGetResponse200Normalizer::class, \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\EnvironmentConfigurationsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\EnvironmentConfigurationsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\EnvironmentConfigurationsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\EnvironmentConfigurationsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200::class => \Gyroscops\Api\Normalizer\EnvironmentEnvironmentsGetResponse200Normalizer::class, \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\EnvironmentEnvironmentsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\EnvironmentEnvironmentsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\EnvironmentEnvironmentsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\EnvironmentEnvironmentsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200::class => \Gyroscops\Api\Normalizer\EnvironmentEnvironmentsIdVariablesGetResponse200Normalizer::class, \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\EnvironmentEnvironmentsIdVariablesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\EnvironmentEnvironmentsIdVariablesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200::class => \Gyroscops\Api\Normalizer\EnvironmentSecretsGetResponse200Normalizer::class, \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\EnvironmentSecretsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\EnvironmentSecretsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\EnvironmentSecretsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\EnvironmentSecretsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstanceFromUrlGetResponse200Normalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstanceFromUrlGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstanceFromUrlGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstanceOauthStateGetResponse200Normalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstanceOauthStateGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstanceOauthStateGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstancesGetResponse200Normalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstancesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstancesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoInstancesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\GatewayAkeneoInstancesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200::class => \Gyroscops\Api\Normalizer\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200Normalizer::class, \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\GatewayAkeneoLinkedAccountAkeneoUserIdGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200::class => \Gyroscops\Api\Normalizer\GatewayAkeneoLinkedAccountsGetResponse200Normalizer::class, \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\GatewayAkeneoLinkedAccountsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\GatewayAkeneoLinkedAccountsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoLinkedAccountsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\GatewayAkeneoLinkedAccountsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthStatesGetResponse200Normalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthStatesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthStatesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthStatesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthStatesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBody::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthTokenPutBodyNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraView::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthTokenPutBodyHydraViewNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraSearch::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthTokenPutBodyHydraSearchNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthTokenPutResponse200Normalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200HydraView::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthTokenPutResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthTokenPutResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\GatewayAkeneoOauthTokenPutResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\GatewayAkeneoOauthTokenPutResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\ReferralCodesGetResponse200::class => \Gyroscops\Api\Normalizer\ReferralCodesGetResponse200Normalizer::class, \Gyroscops\Api\Model\ReferralCodesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\ReferralCodesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\ReferralCodesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\ReferralCodesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\ReferralCodesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\ReferralCodesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200::class => \Gyroscops\Api\Normalizer\ReferralOnPremiseRequestsGetResponse200Normalizer::class, \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\ReferralOnPremiseRequestsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\ReferralOnPremiseRequestsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\ReferralOnPremiseRequestsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\ReferralRequestsGetResponse200::class => \Gyroscops\Api\Normalizer\ReferralRequestsGetResponse200Normalizer::class, \Gyroscops\Api\Model\ReferralRequestsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\ReferralRequestsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\ReferralRequestsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\ReferralRequestsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\ReferralRequestsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\ReferralRequestsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeActionsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeActionsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeActionsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeActionsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeActionsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeActionsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeActionsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeActionsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeCompilationsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeCompilationsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeCompilationsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeCompilationsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionPipelineJobIdStepsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionPipelineJobsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionPipelineJobsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionPipelineJobsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionPipelineJobsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionPipelineIdStepsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionPipelinesGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionPipelinesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionWorkflowsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionWorkflowsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionIdWorkflowJobsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionIdWorkflowJobsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeExecutionsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeExecutionsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeExecutionsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeExecutionsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepProbesGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepProbesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepProbesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepProbesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepIdProbesGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepIdProbesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepIdProbesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepIdProbesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimePipelineStepsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimePipelineIdCompilationsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimePipelineIdCompilationsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimePipelineIdCompilationsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimePipelineIdCompilationsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimePipelineIdStepsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimePipelineIdStepsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimePipelineIdStepsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimePipelineIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimePipelinesGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimePipelinesGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimePipelinesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimePipelinesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimePipelinesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimePipelinesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimePipelinesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimePipelinesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeScheduleIdExecutionsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeScheduleIdExecutionsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeScheduleIdExecutionsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeScheduleIdExecutionsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeScheduleIdWorkflowJobsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeScheduleIdWorkflowJobsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeSchedulesGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeSchedulesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeSchedulesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeSchedulesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowPipelinesGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowPipelinesGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowPipelinesGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowPipelinesGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowIdJobsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowIdJobsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowIdJobsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowIdJobsGetResponse200HydraSearchHydraMappingItemNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowsGetResponse200Normalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200HydraView::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowsGetResponse200HydraViewNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200HydraSearch::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowsGetResponse200HydraSearchNormalizer::class, \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200HydraSearchHydraMappingItem::class => \Gyroscops\Api\Normalizer\RuntimeWorkflowsGetResponse200HydraSearchHydraMappingItemNormalizer::class, '\\'.\Jane\Component\JsonSchemaRuntime\Reference::class => '\\'.\Gyroscops\Api\Runtime\Normalizer\ReferenceNormalizer::class]; + use ValidatorTrait; + protected $normalizers = ['Gyroscops\\Api\\Model\\AbstractCloudEngine' => 'Gyroscops\\Api\\Normalizer\\AbstractCloudEngineNormalizer', 'Gyroscops\\Api\\Model\\AbstractCloudEngineJsonld' => 'Gyroscops\\Api\\Normalizer\\AbstractCloudEngineJsonldNormalizer', 'Gyroscops\\Api\\Model\\AbstractPipeline' => 'Gyroscops\\Api\\Normalizer\\AbstractPipelineNormalizer', 'Gyroscops\\Api\\Model\\AbstractPipelineJsonld' => 'Gyroscops\\Api\\Normalizer\\AbstractPipelineJsonldNormalizer', 'Gyroscops\\Api\\Model\\Action' => 'Gyroscops\\Api\\Normalizer\\ActionNormalizer', 'Gyroscops\\Api\\Model\\ActionRead' => 'Gyroscops\\Api\\Normalizer\\ActionReadNormalizer', 'Gyroscops\\Api\\Model\\ActionJsonld' => 'Gyroscops\\Api\\Normalizer\\ActionJsonldNormalizer', 'Gyroscops\\Api\\Model\\ActionJsonldRead' => 'Gyroscops\\Api\\Normalizer\\ActionJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\AkeneoInstance' => 'Gyroscops\\Api\\Normalizer\\AkeneoInstanceNormalizer', 'Gyroscops\\Api\\Model\\AkeneoInstanceAkeneoInstanceInput' => 'Gyroscops\\Api\\Normalizer\\AkeneoInstanceAkeneoInstanceInputNormalizer', 'Gyroscops\\Api\\Model\\AkeneoInstanceAkeneoInstanceInputJsonld' => 'Gyroscops\\Api\\Normalizer\\AkeneoInstanceAkeneoInstanceInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\AkeneoInstanceJsonld' => 'Gyroscops\\Api\\Normalizer\\AkeneoInstanceJsonldNormalizer', 'Gyroscops\\Api\\Model\\AkeneoLinkedAccount' => 'Gyroscops\\Api\\Normalizer\\AkeneoLinkedAccountNormalizer', 'Gyroscops\\Api\\Model\\AkeneoLinkedAccountAkeneoLinkedAccountsInput' => 'Gyroscops\\Api\\Normalizer\\AkeneoLinkedAccountAkeneoLinkedAccountsInputNormalizer', 'Gyroscops\\Api\\Model\\AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonld' => 'Gyroscops\\Api\\Normalizer\\AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\AkeneoLinkedAccountJsonld' => 'Gyroscops\\Api\\Normalizer\\AkeneoLinkedAccountJsonldNormalizer', 'Gyroscops\\Api\\Model\\AkeneoOauthTokenRead' => 'Gyroscops\\Api\\Normalizer\\AkeneoOauthTokenReadNormalizer', 'Gyroscops\\Api\\Model\\AkeneoOauthTokenOauthStateInput' => 'Gyroscops\\Api\\Normalizer\\AkeneoOauthTokenOauthStateInputNormalizer', 'Gyroscops\\Api\\Model\\AkeneoOauthTokenOauthStateInputJsonld' => 'Gyroscops\\Api\\Normalizer\\AkeneoOauthTokenOauthStateInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\AkeneoOauthTokenOauthStateOutputJsonldRead' => 'Gyroscops\\Api\\Normalizer\\AkeneoOauthTokenOauthStateOutputJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\AkeneoOauthTokenOauthTokenInput' => 'Gyroscops\\Api\\Normalizer\\AkeneoOauthTokenOauthTokenInputNormalizer', 'Gyroscops\\Api\\Model\\AkeneoOauthTokenOauthTokenInputJsonld' => 'Gyroscops\\Api\\Normalizer\\AkeneoOauthTokenOauthTokenInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\AkeneoOauthTokenOauthTokenOutputJsonldRead' => 'Gyroscops\\Api\\Normalizer\\AkeneoOauthTokenOauthTokenOutputJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\AkeneoOauthTokenJsonldRead' => 'Gyroscops\\Api\\Normalizer\\AkeneoOauthTokenJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\BigDecimal' => 'Gyroscops\\Api\\Normalizer\\BigDecimalNormalizer', 'Gyroscops\\Api\\Model\\BigDecimalJsonld' => 'Gyroscops\\Api\\Normalizer\\BigDecimalJsonldNormalizer', 'Gyroscops\\Api\\Model\\BigInteger' => 'Gyroscops\\Api\\Normalizer\\BigIntegerNormalizer', 'Gyroscops\\Api\\Model\\BigIntegerJsonld' => 'Gyroscops\\Api\\Normalizer\\BigIntegerJsonldNormalizer', 'Gyroscops\\Api\\Model\\BigNumber' => 'Gyroscops\\Api\\Normalizer\\BigNumberNormalizer', 'Gyroscops\\Api\\Model\\BigNumberJsonld' => 'Gyroscops\\Api\\Normalizer\\BigNumberJsonldNormalizer', 'Gyroscops\\Api\\Model\\Buyable' => 'Gyroscops\\Api\\Normalizer\\BuyableNormalizer', 'Gyroscops\\Api\\Model\\BuyableJsonld' => 'Gyroscops\\Api\\Normalizer\\BuyableJsonldNormalizer', 'Gyroscops\\Api\\Model\\ColorJsonldRead' => 'Gyroscops\\Api\\Normalizer\\ColorJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\Compilation' => 'Gyroscops\\Api\\Normalizer\\CompilationNormalizer', 'Gyroscops\\Api\\Model\\CompilationJsonld' => 'Gyroscops\\Api\\Normalizer\\CompilationJsonldNormalizer', 'Gyroscops\\Api\\Model\\Composer' => 'Gyroscops\\Api\\Normalizer\\ComposerNormalizer', 'Gyroscops\\Api\\Model\\ComposerJsonld' => 'Gyroscops\\Api\\Normalizer\\ComposerJsonldNormalizer', 'Gyroscops\\Api\\Model\\ComposerAuthentication' => 'Gyroscops\\Api\\Normalizer\\ComposerAuthenticationNormalizer', 'Gyroscops\\Api\\Model\\ComposerAuthenticationJsonld' => 'Gyroscops\\Api\\Normalizer\\ComposerAuthenticationJsonldNormalizer', 'Gyroscops\\Api\\Model\\ComposerAutoload' => 'Gyroscops\\Api\\Normalizer\\ComposerAutoloadNormalizer', 'Gyroscops\\Api\\Model\\ComposerAutoloadJsonld' => 'Gyroscops\\Api\\Normalizer\\ComposerAutoloadJsonldNormalizer', 'Gyroscops\\Api\\Model\\ComposerRepository' => 'Gyroscops\\Api\\Normalizer\\ComposerRepositoryNormalizer', 'Gyroscops\\Api\\Model\\ComposerRepositoryJsonld' => 'Gyroscops\\Api\\Normalizer\\ComposerRepositoryJsonldNormalizer', 'Gyroscops\\Api\\Model\\Configuration' => 'Gyroscops\\Api\\Normalizer\\ConfigurationNormalizer', 'Gyroscops\\Api\\Model\\ConfigurationEdit' => 'Gyroscops\\Api\\Normalizer\\ConfigurationEditNormalizer', 'Gyroscops\\Api\\Model\\ConfigurationRead' => 'Gyroscops\\Api\\Normalizer\\ConfigurationReadNormalizer', 'Gyroscops\\Api\\Model\\ConfigurationChangeConfigurationValueInput' => 'Gyroscops\\Api\\Normalizer\\ConfigurationChangeConfigurationValueInputNormalizer', 'Gyroscops\\Api\\Model\\ConfigurationChangeConfigurationValueInputJsonld' => 'Gyroscops\\Api\\Normalizer\\ConfigurationChangeConfigurationValueInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\ConfigurationCreateConfigurationInput' => 'Gyroscops\\Api\\Normalizer\\ConfigurationCreateConfigurationInputNormalizer', 'Gyroscops\\Api\\Model\\ConfigurationCreateConfigurationInputJsonld' => 'Gyroscops\\Api\\Normalizer\\ConfigurationCreateConfigurationInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\ConfigurationRemoveConfigurationValueInput' => 'Gyroscops\\Api\\Normalizer\\ConfigurationRemoveConfigurationValueInputNormalizer', 'Gyroscops\\Api\\Model\\ConfigurationRemoveConfigurationValueInputJsonld' => 'Gyroscops\\Api\\Normalizer\\ConfigurationRemoveConfigurationValueInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\ConfigurationJsonld' => 'Gyroscops\\Api\\Normalizer\\ConfigurationJsonldNormalizer', 'Gyroscops\\Api\\Model\\ConfigurationJsonldEdit' => 'Gyroscops\\Api\\Normalizer\\ConfigurationJsonldEditNormalizer', 'Gyroscops\\Api\\Model\\ConfigurationJsonldRead' => 'Gyroscops\\Api\\Normalizer\\ConfigurationJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\Context' => 'Gyroscops\\Api\\Normalizer\\ContextNormalizer', 'Gyroscops\\Api\\Model\\ContextJsonld' => 'Gyroscops\\Api\\Normalizer\\ContextJsonldNormalizer', 'Gyroscops\\Api\\Model\\CreateSecretInput' => 'Gyroscops\\Api\\Normalizer\\CreateSecretInputNormalizer', 'Gyroscops\\Api\\Model\\CreateSecretInputJsonld' => 'Gyroscops\\Api\\Normalizer\\CreateSecretInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\Currency' => 'Gyroscops\\Api\\Normalizer\\CurrencyNormalizer', 'Gyroscops\\Api\\Model\\CurrencyJsonld' => 'Gyroscops\\Api\\Normalizer\\CurrencyJsonldNormalizer', 'Gyroscops\\Api\\Model\\EnvironmentRead' => 'Gyroscops\\Api\\Normalizer\\EnvironmentReadNormalizer', 'Gyroscops\\Api\\Model\\EnvironmentWrite' => 'Gyroscops\\Api\\Normalizer\\EnvironmentWriteNormalizer', 'Gyroscops\\Api\\Model\\EnvironmentAddMultipleVariableFromConfigurationInput' => 'Gyroscops\\Api\\Normalizer\\EnvironmentAddMultipleVariableFromConfigurationInputNormalizer', 'Gyroscops\\Api\\Model\\EnvironmentAddMultipleVariableFromConfigurationInputJsonld' => 'Gyroscops\\Api\\Normalizer\\EnvironmentAddMultipleVariableFromConfigurationInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\EnvironmentAddMultipleVariableFromConstantInput' => 'Gyroscops\\Api\\Normalizer\\EnvironmentAddMultipleVariableFromConstantInputNormalizer', 'Gyroscops\\Api\\Model\\EnvironmentAddMultipleVariableFromConstantInputJsonld' => 'Gyroscops\\Api\\Normalizer\\EnvironmentAddMultipleVariableFromConstantInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\EnvironmentAddMultipleVariableFromSecretInput' => 'Gyroscops\\Api\\Normalizer\\EnvironmentAddMultipleVariableFromSecretInputNormalizer', 'Gyroscops\\Api\\Model\\EnvironmentAddMultipleVariableFromSecretInputJsonld' => 'Gyroscops\\Api\\Normalizer\\EnvironmentAddMultipleVariableFromSecretInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\EnvironmentCreateEnvironmentInput' => 'Gyroscops\\Api\\Normalizer\\EnvironmentCreateEnvironmentInputNormalizer', 'Gyroscops\\Api\\Model\\EnvironmentCreateEnvironmentInputJsonld' => 'Gyroscops\\Api\\Normalizer\\EnvironmentCreateEnvironmentInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\EnvironmentJsonldRead' => 'Gyroscops\\Api\\Normalizer\\EnvironmentJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\EnvironmentJsonldWrite' => 'Gyroscops\\Api\\Normalizer\\EnvironmentJsonldWriteNormalizer', 'Gyroscops\\Api\\Model\\ExecutionRead' => 'Gyroscops\\Api\\Normalizer\\ExecutionReadNormalizer', 'Gyroscops\\Api\\Model\\ExecutionDeclarePipelineExecutionCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\ExecutionDeclarePipelineExecutionCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\ExecutionDeclarePipelineExecutionCommandInput' => 'Gyroscops\\Api\\Normalizer\\ExecutionDeclarePipelineExecutionCommandInputNormalizer', 'Gyroscops\\Api\\Model\\ExecutionDeclarePipelineExecutionCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\ExecutionDeclarePipelineExecutionCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\ExecutionInterruptPipelineExecutionCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\ExecutionInterruptPipelineExecutionCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\ExecutionInterruptPipelineExecutionCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\ExecutionInterruptPipelineExecutionCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\ExecutionResumePipelineExecutionCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\ExecutionResumePipelineExecutionCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\ExecutionResumePipelineExecutionCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\ExecutionResumePipelineExecutionCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\ExecutionTerminatePipelineExecutionCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\ExecutionTerminatePipelineExecutionCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\ExecutionTerminatePipelineExecutionCommandInput' => 'Gyroscops\\Api\\Normalizer\\ExecutionTerminatePipelineExecutionCommandInputNormalizer', 'Gyroscops\\Api\\Model\\ExecutionTerminatePipelineExecutionCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\ExecutionTerminatePipelineExecutionCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\ExecutionJsonldRead' => 'Gyroscops\\Api\\Normalizer\\ExecutionJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\ExecutionAction' => 'Gyroscops\\Api\\Normalizer\\ExecutionActionNormalizer', 'Gyroscops\\Api\\Model\\ExecutionActionJsonld' => 'Gyroscops\\Api\\Normalizer\\ExecutionActionJsonldNormalizer', 'Gyroscops\\Api\\Model\\ExecutionId' => 'Gyroscops\\Api\\Normalizer\\ExecutionIdNormalizer', 'Gyroscops\\Api\\Model\\ExecutionIdJsonld' => 'Gyroscops\\Api\\Normalizer\\ExecutionIdJsonldNormalizer', 'Gyroscops\\Api\\Model\\ExecutionPipeline' => 'Gyroscops\\Api\\Normalizer\\ExecutionPipelineNormalizer', 'Gyroscops\\Api\\Model\\ExecutionPipelineJsonld' => 'Gyroscops\\Api\\Normalizer\\ExecutionPipelineJsonldNormalizer', 'Gyroscops\\Api\\Model\\ExecutionPipelineJob' => 'Gyroscops\\Api\\Normalizer\\ExecutionPipelineJobNormalizer', 'Gyroscops\\Api\\Model\\ExecutionPipelineJobJsonld' => 'Gyroscops\\Api\\Normalizer\\ExecutionPipelineJobJsonldNormalizer', 'Gyroscops\\Api\\Model\\ExecutionPipelineStep' => 'Gyroscops\\Api\\Normalizer\\ExecutionPipelineStepNormalizer', 'Gyroscops\\Api\\Model\\ExecutionPipelineStepJsonld' => 'Gyroscops\\Api\\Normalizer\\ExecutionPipelineStepJsonldNormalizer', 'Gyroscops\\Api\\Model\\ExecutionWorkflow' => 'Gyroscops\\Api\\Normalizer\\ExecutionWorkflowNormalizer', 'Gyroscops\\Api\\Model\\ExecutionWorkflowInterruptWorkflowExecutionCommand' => 'Gyroscops\\Api\\Normalizer\\ExecutionWorkflowInterruptWorkflowExecutionCommandNormalizer', 'Gyroscops\\Api\\Model\\ExecutionWorkflowInterruptWorkflowExecutionCommandJsonld' => 'Gyroscops\\Api\\Normalizer\\ExecutionWorkflowInterruptWorkflowExecutionCommandJsonldNormalizer', 'Gyroscops\\Api\\Model\\ExecutionWorkflowInterruptWorkflowExecutionCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\ExecutionWorkflowInterruptWorkflowExecutionCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\ExecutionWorkflowResumeWorkflowExecutionCommand' => 'Gyroscops\\Api\\Normalizer\\ExecutionWorkflowResumeWorkflowExecutionCommandNormalizer', 'Gyroscops\\Api\\Model\\ExecutionWorkflowResumeWorkflowExecutionCommandJsonld' => 'Gyroscops\\Api\\Normalizer\\ExecutionWorkflowResumeWorkflowExecutionCommandJsonldNormalizer', 'Gyroscops\\Api\\Model\\ExecutionWorkflowResumeWorkflowExecutionCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\ExecutionWorkflowResumeWorkflowExecutionCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\ExecutionWorkflowTerminateWorkflowExecutionCommand' => 'Gyroscops\\Api\\Normalizer\\ExecutionWorkflowTerminateWorkflowExecutionCommandNormalizer', 'Gyroscops\\Api\\Model\\ExecutionWorkflowTerminateWorkflowExecutionCommandJsonld' => 'Gyroscops\\Api\\Normalizer\\ExecutionWorkflowTerminateWorkflowExecutionCommandJsonldNormalizer', 'Gyroscops\\Api\\Model\\ExecutionWorkflowTerminateWorkflowExecutionCommandInput' => 'Gyroscops\\Api\\Normalizer\\ExecutionWorkflowTerminateWorkflowExecutionCommandInputNormalizer', 'Gyroscops\\Api\\Model\\ExecutionWorkflowTerminateWorkflowExecutionCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\ExecutionWorkflowTerminateWorkflowExecutionCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\ExecutionWorkflowJsonld' => 'Gyroscops\\Api\\Normalizer\\ExecutionWorkflowJsonldNormalizer', 'Gyroscops\\Api\\Model\\ExecutionWorkflowJob' => 'Gyroscops\\Api\\Normalizer\\ExecutionWorkflowJobNormalizer', 'Gyroscops\\Api\\Model\\ExecutionWorkflowJobJsonld' => 'Gyroscops\\Api\\Normalizer\\ExecutionWorkflowJobJsonldNormalizer', 'Gyroscops\\Api\\Model\\ExecutionWorkflowJobAction' => 'Gyroscops\\Api\\Normalizer\\ExecutionWorkflowJobActionNormalizer', 'Gyroscops\\Api\\Model\\ExecutionWorkflowJobActionJsonld' => 'Gyroscops\\Api\\Normalizer\\ExecutionWorkflowJobActionJsonldNormalizer', 'Gyroscops\\Api\\Model\\Job' => 'Gyroscops\\Api\\Normalizer\\JobNormalizer', 'Gyroscops\\Api\\Model\\JobJsonld' => 'Gyroscops\\Api\\Normalizer\\JobJsonldNormalizer', 'Gyroscops\\Api\\Model\\Money' => 'Gyroscops\\Api\\Normalizer\\MoneyNormalizer', 'Gyroscops\\Api\\Model\\MoneyJsonld' => 'Gyroscops\\Api\\Normalizer\\MoneyJsonldNormalizer', 'Gyroscops\\Api\\Model\\OnPremiseRequestOnPremiseRequestRead' => 'Gyroscops\\Api\\Normalizer\\OnPremiseRequestOnPremiseRequestReadNormalizer', 'Gyroscops\\Api\\Model\\OnPremiseRequestOnPremiseRequestWrite' => 'Gyroscops\\Api\\Normalizer\\OnPremiseRequestOnPremiseRequestWriteNormalizer', 'Gyroscops\\Api\\Model\\OnPremiseRequestJsonldOnPremiseRequestRead' => 'Gyroscops\\Api\\Normalizer\\OnPremiseRequestJsonldOnPremiseRequestReadNormalizer', 'Gyroscops\\Api\\Model\\OnPremiseRequestJsonldOnPremiseRequestWrite' => 'Gyroscops\\Api\\Normalizer\\OnPremiseRequestJsonldOnPremiseRequestWriteNormalizer', 'Gyroscops\\Api\\Model\\OpaqueInterfaceJsonld' => 'Gyroscops\\Api\\Normalizer\\OpaqueInterfaceJsonldNormalizer', 'Gyroscops\\Api\\Model\\Option' => 'Gyroscops\\Api\\Normalizer\\OptionNormalizer', 'Gyroscops\\Api\\Model\\OptionJsonld' => 'Gyroscops\\Api\\Normalizer\\OptionJsonldNormalizer', 'Gyroscops\\Api\\Model\\Organization' => 'Gyroscops\\Api\\Normalizer\\OrganizationNormalizer', 'Gyroscops\\Api\\Model\\OrganizationAddCollaborators' => 'Gyroscops\\Api\\Normalizer\\OrganizationAddCollaboratorsNormalizer', 'Gyroscops\\Api\\Model\\OrganizationJsonld' => 'Gyroscops\\Api\\Normalizer\\OrganizationJsonldNormalizer', 'Gyroscops\\Api\\Model\\OrganizationJsonldAddCollaborators' => 'Gyroscops\\Api\\Normalizer\\OrganizationJsonldAddCollaboratorsNormalizer', 'Gyroscops\\Api\\Model\\Pipeline' => 'Gyroscops\\Api\\Normalizer\\PipelineNormalizer', 'Gyroscops\\Api\\Model\\PipelineRead' => 'Gyroscops\\Api\\Normalizer\\PipelineReadNormalizer', 'Gyroscops\\Api\\Model\\PipelineAddAfterPipelineStepCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\PipelineAddAfterPipelineStepCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\PipelineAddAfterPipelineStepCommandInput' => 'Gyroscops\\Api\\Normalizer\\PipelineAddAfterPipelineStepCommandInputNormalizer', 'Gyroscops\\Api\\Model\\PipelineAddAfterPipelineStepCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\PipelineAddAfterPipelineStepCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\PipelineAddBeforePipelineStepCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\PipelineAddBeforePipelineStepCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\PipelineAddBeforePipelineStepCommandInput' => 'Gyroscops\\Api\\Normalizer\\PipelineAddBeforePipelineStepCommandInputNormalizer', 'Gyroscops\\Api\\Model\\PipelineAddBeforePipelineStepCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\PipelineAddBeforePipelineStepCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerAuthCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\PipelineAddPipelineComposerAuthCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerAuthCommandInput' => 'Gyroscops\\Api\\Normalizer\\PipelineAddPipelineComposerAuthCommandInputNormalizer', 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerAuthCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\PipelineAddPipelineComposerAuthCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerPSR4AutoloadCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\PipelineAddPipelineComposerPSR4AutoloadCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerPSR4AutoloadCommandInput' => 'Gyroscops\\Api\\Normalizer\\PipelineAddPipelineComposerPSR4AutoloadCommandInputNormalizer', 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerPackageCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\PipelineAddPipelineComposerPackageCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerPackageCommandInput' => 'Gyroscops\\Api\\Normalizer\\PipelineAddPipelineComposerPackageCommandInputNormalizer', 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerPackageCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\PipelineAddPipelineComposerPackageCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerRepositoryCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\PipelineAddPipelineComposerRepositoryCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerRepositoryCommandInput' => 'Gyroscops\\Api\\Normalizer\\PipelineAddPipelineComposerRepositoryCommandInputNormalizer', 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerRepositoryCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\PipelineAddPipelineComposerRepositoryCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\PipelineAddPipelineStepProbeCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\PipelineAddPipelineStepProbeCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\PipelineAddPipelineStepProbeCommandInput' => 'Gyroscops\\Api\\Normalizer\\PipelineAddPipelineStepProbeCommandInputNormalizer', 'Gyroscops\\Api\\Model\\PipelineAddPipelineStepProbeCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\PipelineAddPipelineStepProbeCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\PipelineAppendPipelineStepCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\PipelineAppendPipelineStepCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\PipelineAppendPipelineStepCommandInput' => 'Gyroscops\\Api\\Normalizer\\PipelineAppendPipelineStepCommandInputNormalizer', 'Gyroscops\\Api\\Model\\PipelineAppendPipelineStepCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\PipelineAppendPipelineStepCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\PipelineCompilePipelineCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\PipelineCompilePipelineCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\PipelineCompilePipelineCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\PipelineCompilePipelineCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\PipelineDeclarePipelineCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\PipelineDeclarePipelineCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\PipelineDeclarePipelineCommandInput' => 'Gyroscops\\Api\\Normalizer\\PipelineDeclarePipelineCommandInputNormalizer', 'Gyroscops\\Api\\Model\\PipelineDeclarePipelineCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\PipelineDeclarePipelineCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\PipelineDeclarePipelineScheduleImmediateCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\PipelineDeclarePipelineScheduleImmediateCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\PipelineDeclarePipelineScheduleImmediateCommandInput' => 'Gyroscops\\Api\\Normalizer\\PipelineDeclarePipelineScheduleImmediateCommandInputNormalizer', 'Gyroscops\\Api\\Model\\PipelineDeclarePipelineScheduleImmediateCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\PipelineDeclarePipelineScheduleImmediateCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\PipelineDeclarePipelineScheduleOnceCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\PipelineDeclarePipelineScheduleOnceCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\PipelineDeclarePipelineScheduleOnceCommandInput' => 'Gyroscops\\Api\\Normalizer\\PipelineDeclarePipelineScheduleOnceCommandInputNormalizer', 'Gyroscops\\Api\\Model\\PipelineDeclarePipelineScheduleOnceCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\PipelineDeclarePipelineScheduleOnceCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\PipelineMoveAfterPipelineStepCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\PipelineMoveAfterPipelineStepCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\PipelineMoveAfterPipelineStepCommandInput' => 'Gyroscops\\Api\\Normalizer\\PipelineMoveAfterPipelineStepCommandInputNormalizer', 'Gyroscops\\Api\\Model\\PipelineMoveAfterPipelineStepCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\PipelineMoveAfterPipelineStepCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\PipelineMoveBeforePipelineStepCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\PipelineMoveBeforePipelineStepCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\PipelineMoveBeforePipelineStepCommandInput' => 'Gyroscops\\Api\\Normalizer\\PipelineMoveBeforePipelineStepCommandInputNormalizer', 'Gyroscops\\Api\\Model\\PipelineMoveBeforePipelineStepCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\PipelineMoveBeforePipelineStepCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerAuthCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\PipelineRemovePipelineComposerAuthCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerAuthCommandInput' => 'Gyroscops\\Api\\Normalizer\\PipelineRemovePipelineComposerAuthCommandInputNormalizer', 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerAuthCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\PipelineRemovePipelineComposerAuthCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerPSR4AutoloadCommandInput' => 'Gyroscops\\Api\\Normalizer\\PipelineRemovePipelineComposerPSR4AutoloadCommandInputNormalizer', 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerPackageCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\PipelineRemovePipelineComposerPackageCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerPackageCommandInput' => 'Gyroscops\\Api\\Normalizer\\PipelineRemovePipelineComposerPackageCommandInputNormalizer', 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerPackageCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\PipelineRemovePipelineComposerPackageCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerRepositoryCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\PipelineRemovePipelineComposerRepositoryCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerRepositoryCommandInput' => 'Gyroscops\\Api\\Normalizer\\PipelineRemovePipelineComposerRepositoryCommandInputNormalizer', 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerRepositoryCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\PipelineRemovePipelineComposerRepositoryCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\PipelineRemovePipelineStepProbeCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\PipelineRemovePipelineStepProbeCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\PipelineReorderPipelineStepsCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\PipelineReorderPipelineStepsCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\PipelineReorderPipelineStepsCommandInput' => 'Gyroscops\\Api\\Normalizer\\PipelineReorderPipelineStepsCommandInputNormalizer', 'Gyroscops\\Api\\Model\\PipelineReorderPipelineStepsCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\PipelineReorderPipelineStepsCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\PipelineReplacePipelineStepCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\PipelineReplacePipelineStepCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\PipelineReplacePipelineStepCommandInput' => 'Gyroscops\\Api\\Normalizer\\PipelineReplacePipelineStepCommandInputNormalizer', 'Gyroscops\\Api\\Model\\PipelineReplacePipelineStepCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\PipelineReplacePipelineStepCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\PipelineJsonld' => 'Gyroscops\\Api\\Normalizer\\PipelineJsonldNormalizer', 'Gyroscops\\Api\\Model\\PipelineJsonldRead' => 'Gyroscops\\Api\\Normalizer\\PipelineJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\PipelineStep' => 'Gyroscops\\Api\\Normalizer\\PipelineStepNormalizer', 'Gyroscops\\Api\\Model\\PipelineStepRead' => 'Gyroscops\\Api\\Normalizer\\PipelineStepReadNormalizer', 'Gyroscops\\Api\\Model\\PipelineStepJsonld' => 'Gyroscops\\Api\\Normalizer\\PipelineStepJsonldNormalizer', 'Gyroscops\\Api\\Model\\PipelineStepJsonldRead' => 'Gyroscops\\Api\\Normalizer\\PipelineStepJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\PipelineStepProbe' => 'Gyroscops\\Api\\Normalizer\\PipelineStepProbeNormalizer', 'Gyroscops\\Api\\Model\\PipelineStepProbeJsonld' => 'Gyroscops\\Api\\Normalizer\\PipelineStepProbeJsonldNormalizer', 'Gyroscops\\Api\\Model\\Price' => 'Gyroscops\\Api\\Normalizer\\PriceNormalizer', 'Gyroscops\\Api\\Model\\PriceRead' => 'Gyroscops\\Api\\Normalizer\\PriceReadNormalizer', 'Gyroscops\\Api\\Model\\PriceJsonld' => 'Gyroscops\\Api\\Normalizer\\PriceJsonldNormalizer', 'Gyroscops\\Api\\Model\\PriceJsonldRead' => 'Gyroscops\\Api\\Normalizer\\PriceJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\Probe' => 'Gyroscops\\Api\\Normalizer\\ProbeNormalizer', 'Gyroscops\\Api\\Model\\ProbeJsonld' => 'Gyroscops\\Api\\Normalizer\\ProbeJsonldNormalizer', 'Gyroscops\\Api\\Model\\ReferralCodeReferralCodeRead' => 'Gyroscops\\Api\\Normalizer\\ReferralCodeReferralCodeReadNormalizer', 'Gyroscops\\Api\\Model\\ReferralCodeReferralCodeWrite' => 'Gyroscops\\Api\\Normalizer\\ReferralCodeReferralCodeWriteNormalizer', 'Gyroscops\\Api\\Model\\ReferralCodeJsonldReferralCodeRead' => 'Gyroscops\\Api\\Normalizer\\ReferralCodeJsonldReferralCodeReadNormalizer', 'Gyroscops\\Api\\Model\\ReferralCodeJsonldReferralCodeWrite' => 'Gyroscops\\Api\\Normalizer\\ReferralCodeJsonldReferralCodeWriteNormalizer', 'Gyroscops\\Api\\Model\\ReferralRequestReferralRequestRead' => 'Gyroscops\\Api\\Normalizer\\ReferralRequestReferralRequestReadNormalizer', 'Gyroscops\\Api\\Model\\ReferralRequestReferralRequestInput' => 'Gyroscops\\Api\\Normalizer\\ReferralRequestReferralRequestInputNormalizer', 'Gyroscops\\Api\\Model\\ReferralRequestReferralRequestInputJsonld' => 'Gyroscops\\Api\\Normalizer\\ReferralRequestReferralRequestInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\ReferralRequestJsonldReferralRequestRead' => 'Gyroscops\\Api\\Normalizer\\ReferralRequestJsonldReferralRequestReadNormalizer', 'Gyroscops\\Api\\Model\\Region' => 'Gyroscops\\Api\\Normalizer\\RegionNormalizer', 'Gyroscops\\Api\\Model\\RegionJsonld' => 'Gyroscops\\Api\\Normalizer\\RegionJsonldNormalizer', 'Gyroscops\\Api\\Model\\ScheduleJsonld' => 'Gyroscops\\Api\\Normalizer\\ScheduleJsonldNormalizer', 'Gyroscops\\Api\\Model\\Secret' => 'Gyroscops\\Api\\Normalizer\\SecretNormalizer', 'Gyroscops\\Api\\Model\\SecretEdit' => 'Gyroscops\\Api\\Normalizer\\SecretEditNormalizer', 'Gyroscops\\Api\\Model\\SecretRead' => 'Gyroscops\\Api\\Normalizer\\SecretReadNormalizer', 'Gyroscops\\Api\\Model\\SecretChangeSecretValueInput' => 'Gyroscops\\Api\\Normalizer\\SecretChangeSecretValueInputNormalizer', 'Gyroscops\\Api\\Model\\SecretChangeSecretValueInputJsonld' => 'Gyroscops\\Api\\Normalizer\\SecretChangeSecretValueInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\SecretCreateSecretInput' => 'Gyroscops\\Api\\Normalizer\\SecretCreateSecretInputNormalizer', 'Gyroscops\\Api\\Model\\SecretCreateSecretInputJsonld' => 'Gyroscops\\Api\\Normalizer\\SecretCreateSecretInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\SecretRemoveSecretValueInput' => 'Gyroscops\\Api\\Normalizer\\SecretRemoveSecretValueInputNormalizer', 'Gyroscops\\Api\\Model\\SecretRemoveSecretValueInputJsonld' => 'Gyroscops\\Api\\Normalizer\\SecretRemoveSecretValueInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\SecretJsonld' => 'Gyroscops\\Api\\Normalizer\\SecretJsonldNormalizer', 'Gyroscops\\Api\\Model\\SecretJsonldEdit' => 'Gyroscops\\Api\\Normalizer\\SecretJsonldEditNormalizer', 'Gyroscops\\Api\\Model\\SecretJsonldRead' => 'Gyroscops\\Api\\Normalizer\\SecretJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\Step' => 'Gyroscops\\Api\\Normalizer\\StepNormalizer', 'Gyroscops\\Api\\Model\\StepJsonld' => 'Gyroscops\\Api\\Normalizer\\StepJsonldNormalizer', 'Gyroscops\\Api\\Model\\Subscription' => 'Gyroscops\\Api\\Normalizer\\SubscriptionNormalizer', 'Gyroscops\\Api\\Model\\SubscriptionJsonld' => 'Gyroscops\\Api\\Normalizer\\SubscriptionJsonldNormalizer', 'Gyroscops\\Api\\Model\\SubscriptionOfferRead' => 'Gyroscops\\Api\\Normalizer\\SubscriptionOfferReadNormalizer', 'Gyroscops\\Api\\Model\\SubscriptionOfferWrite' => 'Gyroscops\\Api\\Normalizer\\SubscriptionOfferWriteNormalizer', 'Gyroscops\\Api\\Model\\SubscriptionOfferJsonldRead' => 'Gyroscops\\Api\\Normalizer\\SubscriptionOfferJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\SubscriptionOfferJsonldWrite' => 'Gyroscops\\Api\\Normalizer\\SubscriptionOfferJsonldWriteNormalizer', 'Gyroscops\\Api\\Model\\SubscriptionOption' => 'Gyroscops\\Api\\Normalizer\\SubscriptionOptionNormalizer', 'Gyroscops\\Api\\Model\\SubscriptionOptionJsonld' => 'Gyroscops\\Api\\Normalizer\\SubscriptionOptionJsonldNormalizer', 'Gyroscops\\Api\\Model\\SubscriptionType' => 'Gyroscops\\Api\\Normalizer\\SubscriptionTypeNormalizer', 'Gyroscops\\Api\\Model\\SubscriptionTypeJsonld' => 'Gyroscops\\Api\\Normalizer\\SubscriptionTypeJsonldNormalizer', 'Gyroscops\\Api\\Model\\SubscriptionTypeJsonldRead' => 'Gyroscops\\Api\\Normalizer\\SubscriptionTypeJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\TraversableJsonld' => 'Gyroscops\\Api\\Normalizer\\TraversableJsonldNormalizer', 'Gyroscops\\Api\\Model\\User' => 'Gyroscops\\Api\\Normalizer\\UserNormalizer', 'Gyroscops\\Api\\Model\\UserUserChangePasswordInput' => 'Gyroscops\\Api\\Normalizer\\UserUserChangePasswordInputNormalizer', 'Gyroscops\\Api\\Model\\UserJsonld' => 'Gyroscops\\Api\\Normalizer\\UserJsonldNormalizer', 'Gyroscops\\Api\\Model\\UserAuthorization' => 'Gyroscops\\Api\\Normalizer\\UserAuthorizationNormalizer', 'Gyroscops\\Api\\Model\\UserAuthorizationJsonld' => 'Gyroscops\\Api\\Normalizer\\UserAuthorizationJsonldNormalizer', 'Gyroscops\\Api\\Model\\UserId' => 'Gyroscops\\Api\\Normalizer\\UserIdNormalizer', 'Gyroscops\\Api\\Model\\UserIdJsonld' => 'Gyroscops\\Api\\Normalizer\\UserIdJsonldNormalizer', 'Gyroscops\\Api\\Model\\VariableRead' => 'Gyroscops\\Api\\Normalizer\\VariableReadNormalizer', 'Gyroscops\\Api\\Model\\VariableJsonldRead' => 'Gyroscops\\Api\\Normalizer\\VariableJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\VariableFromConfigurationRead' => 'Gyroscops\\Api\\Normalizer\\VariableFromConfigurationReadNormalizer', 'Gyroscops\\Api\\Model\\VariableFromConfigurationJsonldRead' => 'Gyroscops\\Api\\Normalizer\\VariableFromConfigurationJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\VariableFromConfigurationJsonldWrite' => 'Gyroscops\\Api\\Normalizer\\VariableFromConfigurationJsonldWriteNormalizer', 'Gyroscops\\Api\\Model\\VariableFromConfigurationInput' => 'Gyroscops\\Api\\Normalizer\\VariableFromConfigurationInputNormalizer', 'Gyroscops\\Api\\Model\\VariableFromConfigurationInputJsonld' => 'Gyroscops\\Api\\Normalizer\\VariableFromConfigurationInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\VariableFromConstantRead' => 'Gyroscops\\Api\\Normalizer\\VariableFromConstantReadNormalizer', 'Gyroscops\\Api\\Model\\VariableFromConstantJsonldRead' => 'Gyroscops\\Api\\Normalizer\\VariableFromConstantJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\VariableFromConstantJsonldWrite' => 'Gyroscops\\Api\\Normalizer\\VariableFromConstantJsonldWriteNormalizer', 'Gyroscops\\Api\\Model\\VariableFromConstantInput' => 'Gyroscops\\Api\\Normalizer\\VariableFromConstantInputNormalizer', 'Gyroscops\\Api\\Model\\VariableFromConstantInputJsonld' => 'Gyroscops\\Api\\Normalizer\\VariableFromConstantInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\VariableFromSecretRead' => 'Gyroscops\\Api\\Normalizer\\VariableFromSecretReadNormalizer', 'Gyroscops\\Api\\Model\\VariableFromSecretJsonldRead' => 'Gyroscops\\Api\\Normalizer\\VariableFromSecretJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\VariableFromSecretJsonldWrite' => 'Gyroscops\\Api\\Normalizer\\VariableFromSecretJsonldWriteNormalizer', 'Gyroscops\\Api\\Model\\VariableFromSecretInput' => 'Gyroscops\\Api\\Normalizer\\VariableFromSecretInputNormalizer', 'Gyroscops\\Api\\Model\\VariableFromSecretInputJsonld' => 'Gyroscops\\Api\\Normalizer\\VariableFromSecretInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\WorkflowRead' => 'Gyroscops\\Api\\Normalizer\\WorkflowReadNormalizer', 'Gyroscops\\Api\\Model\\WorkflowCompileWorkflowCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\WorkflowCompileWorkflowCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\WorkflowCompileWorkflowCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\WorkflowCompileWorkflowCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\WorkflowDeclareWorkflowCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\WorkflowDeclareWorkflowCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\WorkflowDeclareWorkflowCommandInput' => 'Gyroscops\\Api\\Normalizer\\WorkflowDeclareWorkflowCommandInputNormalizer', 'Gyroscops\\Api\\Model\\WorkflowDeclareWorkflowCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\WorkflowDeclareWorkflowCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\WorkflowDeclareWorkflowScheduleCrontabCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\WorkflowDeclareWorkflowScheduleCrontabCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\WorkflowDeclareWorkflowScheduleCrontabCommandInput' => 'Gyroscops\\Api\\Normalizer\\WorkflowDeclareWorkflowScheduleCrontabCommandInputNormalizer', 'Gyroscops\\Api\\Model\\WorkflowDeclareWorkflowScheduleCrontabCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\WorkflowDeclareWorkflowScheduleCrontabCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\WorkflowDeclareWorkflowScheduleImmediateCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\WorkflowDeclareWorkflowScheduleImmediateCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\WorkflowDeclareWorkflowScheduleImmediateCommandInput' => 'Gyroscops\\Api\\Normalizer\\WorkflowDeclareWorkflowScheduleImmediateCommandInputNormalizer', 'Gyroscops\\Api\\Model\\WorkflowDeclareWorkflowScheduleImmediateCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\WorkflowDeclareWorkflowScheduleImmediateCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\WorkflowRemoveWorkflowCommandJsonldRead' => 'Gyroscops\\Api\\Normalizer\\WorkflowRemoveWorkflowCommandJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\WorkflowRemoveWorkflowCommandInputJsonld' => 'Gyroscops\\Api\\Normalizer\\WorkflowRemoveWorkflowCommandInputJsonldNormalizer', 'Gyroscops\\Api\\Model\\WorkflowJsonldRead' => 'Gyroscops\\Api\\Normalizer\\WorkflowJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\WorkflowJobRead' => 'Gyroscops\\Api\\Normalizer\\WorkflowJobReadNormalizer', 'Gyroscops\\Api\\Model\\WorkflowJobJsonldRead' => 'Gyroscops\\Api\\Normalizer\\WorkflowJobJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\WorkflowJobAction' => 'Gyroscops\\Api\\Normalizer\\WorkflowJobActionNormalizer', 'Gyroscops\\Api\\Model\\WorkflowJobActionRead' => 'Gyroscops\\Api\\Normalizer\\WorkflowJobActionReadNormalizer', 'Gyroscops\\Api\\Model\\WorkflowJobActionJsonld' => 'Gyroscops\\Api\\Normalizer\\WorkflowJobActionJsonldNormalizer', 'Gyroscops\\Api\\Model\\WorkflowJobActionJsonldRead' => 'Gyroscops\\Api\\Normalizer\\WorkflowJobActionJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\WorkflowJobPipeline' => 'Gyroscops\\Api\\Normalizer\\WorkflowJobPipelineNormalizer', 'Gyroscops\\Api\\Model\\WorkflowJobPipelineRead' => 'Gyroscops\\Api\\Normalizer\\WorkflowJobPipelineReadNormalizer', 'Gyroscops\\Api\\Model\\WorkflowJobPipelineJsonld' => 'Gyroscops\\Api\\Normalizer\\WorkflowJobPipelineJsonldNormalizer', 'Gyroscops\\Api\\Model\\WorkflowJobPipelineJsonldRead' => 'Gyroscops\\Api\\Normalizer\\WorkflowJobPipelineJsonldReadNormalizer', 'Gyroscops\\Api\\Model\\Workspace' => 'Gyroscops\\Api\\Normalizer\\WorkspaceNormalizer', 'Gyroscops\\Api\\Model\\WorkspaceJsonld' => 'Gyroscops\\Api\\Normalizer\\WorkspaceJsonldNormalizer', 'Gyroscops\\Api\\Model\\Token' => 'Gyroscops\\Api\\Normalizer\\TokenNormalizer', 'Gyroscops\\Api\\Model\\Credentials' => 'Gyroscops\\Api\\Normalizer\\CredentialsNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationMeGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\AuthenticationMeGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\AuthenticationMeGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\AuthenticationMeGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationMeGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\AuthenticationMeGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationMeGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\AuthenticationMeGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationOffersIdOptionsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\AuthenticationOffersIdOptionsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\AuthenticationOffersIdOptionsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\AuthenticationOffersIdOptionsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationOffersIdOptionsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\AuthenticationOffersIdOptionsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationOffersIdOptionsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\AuthenticationOffersIdOptionsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\AuthenticationOrganizationsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\AuthenticationOrganizationsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\AuthenticationOrganizationsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\AuthenticationOrganizationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\AuthenticationOrganizationsIdAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\AuthenticationOrganizationsIdExternalCollaboratorsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdUsersGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\AuthenticationOrganizationsIdUsersGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\AuthenticationOrganizationsIdUsersGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\AuthenticationOrganizationsIdWorkspacesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationSubscriptionOffersGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\AuthenticationSubscriptionOffersGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\AuthenticationSubscriptionOffersGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\AuthenticationSubscriptionOffersGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationSubscriptionOffersGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\AuthenticationSubscriptionOffersGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationSubscriptionOffersGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\AuthenticationSubscriptionOffersGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationSubscriptionsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\AuthenticationSubscriptionsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\AuthenticationSubscriptionsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\AuthenticationSubscriptionsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationSubscriptionsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\AuthenticationSubscriptionsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationSubscriptionsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\AuthenticationSubscriptionsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\AuthenticationSubscriptionsIdOptionsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationUserAuthorizationsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\AuthenticationUserAuthorizationsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\AuthenticationUserAuthorizationsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\AuthenticationUserAuthorizationsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationUserAuthorizationsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\AuthenticationUserAuthorizationsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationUserAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\AuthenticationUserAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationUsersGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\AuthenticationUsersGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\AuthenticationUsersGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\AuthenticationUsersGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationUsersGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\AuthenticationUsersGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationUsersGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\AuthenticationUsersGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationWorkspacesGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\AuthenticationWorkspacesGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\AuthenticationWorkspacesGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\AuthenticationWorkspacesGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationWorkspacesGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\AuthenticationWorkspacesGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationWorkspacesGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\AuthenticationWorkspacesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\AuthenticationWorkspacesIdAuthorizationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationWorkspacesIdUsersGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\AuthenticationWorkspacesIdUsersGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\AuthenticationWorkspacesIdUsersGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\EnvironmentConfigurationsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\EnvironmentConfigurationsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\EnvironmentConfigurationsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\EnvironmentConfigurationsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\EnvironmentConfigurationsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\EnvironmentConfigurationsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\EnvironmentConfigurationsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\EnvironmentConfigurationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\EnvironmentEnvironmentsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\EnvironmentEnvironmentsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\EnvironmentEnvironmentsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\EnvironmentEnvironmentsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\EnvironmentEnvironmentsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\EnvironmentEnvironmentsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\EnvironmentEnvironmentsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\EnvironmentEnvironmentsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\EnvironmentEnvironmentsIdVariablesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\EnvironmentSecretsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\EnvironmentSecretsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\EnvironmentSecretsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\EnvironmentSecretsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\EnvironmentSecretsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\EnvironmentSecretsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\EnvironmentSecretsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\EnvironmentSecretsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoInstancesGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoInstancesGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoInstancesGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoInstancesGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoInstancesGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoInstancesGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoInstancesGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoInstancesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoInstancesFromUrlGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoInstancesFromUrlGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoInstancesFromUrlGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoInstancesOauthStateGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoInstancesOauthStateGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoInstancesOauthStateGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoLinkedAccountAkeneoUserIdGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoLinkedAccountsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoLinkedAccountsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoLinkedAccountsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthStatesGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoOauthStatesGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthStatesGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoOauthStatesGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthStatesGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoOauthStatesGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthStatesGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoOauthStatesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthTokenPutBody' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoOauthTokenPutBodyNormalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthTokenPutBodyHydraView' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoOauthTokenPutBodyHydraViewNormalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthTokenPutBodyHydraSearch' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoOauthTokenPutBodyHydraSearchNormalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoOauthTokenPutBodyHydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthTokenPutLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoOauthTokenPutLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthTokenPutLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoOauthTokenPutLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthTokenPutLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoOauthTokenPutLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\GatewayAkeneoOauthTokenPutLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\GatewayAkeneoOauthTokenPutLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\ReferralCodesGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\ReferralCodesGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\ReferralCodesGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\ReferralCodesGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\ReferralCodesGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\ReferralCodesGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\ReferralCodesGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\ReferralCodesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\ReferralOnPremiseRequestsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\ReferralOnPremiseRequestsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\ReferralOnPremiseRequestsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\ReferralOnPremiseRequestsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\ReferralOnPremiseRequestsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\ReferralOnPremiseRequestsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\ReferralOnPremiseRequestsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\ReferralOnPremiseRequestsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\ReferralRequestsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\ReferralRequestsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\ReferralRequestsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\ReferralRequestsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\ReferralRequestsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\ReferralRequestsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\ReferralRequestsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\ReferralRequestsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\RuntimeActionsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\RuntimeActionsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\RuntimeActionsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\RuntimeActionsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\RuntimeActionsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\RuntimeActionsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\RuntimeActionsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\RuntimeActionsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\RuntimeCompilationsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\RuntimeCompilationsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\RuntimeCompilationsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\RuntimeCompilationsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\RuntimeCompilationsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\RuntimeCompilationsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\RuntimeCompilationsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\RuntimeCompilationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionPipelineJobsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionPipelineJobsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsPipelinesGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsPipelinesGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsPipelinesGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsPipelinesGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsPipelinesGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsPipelinesGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsPipelinesGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsPipelinesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsWorkflowsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\RuntimePipelineStepProbesGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\RuntimePipelineStepProbesGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\RuntimePipelineStepProbesGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\RuntimePipelineStepProbesGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\RuntimePipelineStepProbesGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\RuntimePipelineStepProbesGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\RuntimePipelineStepProbesGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\RuntimePipelineStepProbesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\RuntimePipelineStepsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\RuntimePipelineStepsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\RuntimePipelineStepsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\RuntimePipelineStepsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\RuntimePipelineStepsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\RuntimePipelineStepsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\RuntimePipelineStepsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\RuntimePipelineStepsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\RuntimePipelinesGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\RuntimePipelinesGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\RuntimePipelinesGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\RuntimePipelinesGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\RuntimePipelinesGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\RuntimePipelinesGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\RuntimePipelinesGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\RuntimePipelinesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\RuntimePipelinesStepsIdProbesGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\RuntimePipelinesStepsIdProbesGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\RuntimePipelinesIdCompilationsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\RuntimePipelinesIdCompilationsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\RuntimePipelinesIdSchedulesGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\RuntimePipelinesIdSchedulesGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\RuntimePipelinesIdStepsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\RuntimePipelinesIdStepsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\RuntimePipelinesIdStepsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\RuntimePipelinesIdStepsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\RuntimePipelinesIdStepsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\RuntimePipelinesIdStepsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\RuntimePipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\RuntimePipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\RuntimeSchedulesGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\RuntimeSchedulesGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\RuntimeSchedulesGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\RuntimeSchedulesGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\RuntimeSchedulesGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\RuntimeSchedulesGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\RuntimeSchedulesGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\RuntimeSchedulesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\RuntimeSchedulesIdExecutionsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\RuntimeSchedulesIdExecutionsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\RuntimeWorkflowsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\RuntimeWorkflowsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\RuntimeWorkflowsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\RuntimeWorkflowsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\RuntimeWorkflowsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\RuntimeWorkflowsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\RuntimeWorkflowsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\RuntimeWorkflowsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\RuntimeWorkflowsPipelinesGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\RuntimeWorkflowsPipelinesGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\RuntimeWorkflowsIdCompilationsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\RuntimeWorkflowsIdCompilationsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\RuntimeWorkflowsIdJobsGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\RuntimeWorkflowsIdJobsGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', 'Gyroscops\\Api\\Model\\RuntimeWorkflowsIdSchedulesGetLdjsonResponse200' => 'Gyroscops\\Api\\Normalizer\\RuntimeWorkflowsIdSchedulesGetLdjsonResponse200Normalizer', 'Gyroscops\\Api\\Model\\RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraView' => 'Gyroscops\\Api\\Normalizer\\RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraViewNormalizer', 'Gyroscops\\Api\\Model\\RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraSearch' => 'Gyroscops\\Api\\Normalizer\\RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraSearchNormalizer', 'Gyroscops\\Api\\Model\\RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraSearchHydraMappingItem' => 'Gyroscops\\Api\\Normalizer\\RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer', '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => '\\Gyroscops\\Api\\Runtime\\Normalizer\\ReferenceNormalizer']; protected $normalizersCache = []; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \array_key_exists($type, $this->normalizers); + return array_key_exists($type, $this->normalizers); } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \array_key_exists($data::class, $this->normalizers); + return is_object($data) && array_key_exists(get_class($data), $this->normalizers); } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - $normalizerClass = $this->normalizers[$object::class]; + $normalizerClass = $this->normalizers[get_class($object)]; $normalizer = $this->getNormalizer($normalizerClass); return $normalizer->normalize($object, $format, $context); } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) diff --git a/src/Normalizer/JobJsonldNormalizer.php b/src/Normalizer/JobJsonldNormalizer.php new file mode 100644 index 00000000..da14c95b --- /dev/null +++ b/src/Normalizer/JobJsonldNormalizer.php @@ -0,0 +1,144 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('pipeline', $data) && $data['pipeline'] !== null) { + $value = $data['pipeline']; + if (is_array($data['pipeline']) and isset($data['pipeline']['steps']) and isset($data['pipeline']['code'])) { + $value = $this->denormalizer->denormalize($data['pipeline'], 'Gyroscops\\Api\\Model\\PipelineJsonld', 'json', $context); + } + $object->setPipeline($value); + unset($data['pipeline']); + } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { + $object->setPipeline(null); + } + if (\array_key_exists('action', $data) && $data['action'] !== null) { + $value_1 = $data['action']; + if (is_array($data['action']) and isset($data['action']['configuration'])) { + $value_1 = $this->denormalizer->denormalize($data['action'], 'Gyroscops\\Api\\Model\\ActionJsonld', 'json', $context); + } + $object->setAction($value_1); + unset($data['action']); + } elseif (\array_key_exists('action', $data) && $data['action'] === null) { + $object->setAction(null); + } + if (\array_key_exists('code', $data) && $data['code'] !== null) { + $object->setCode($data['code']); + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + $object->setCode(null); + } + if (\array_key_exists('label', $data) && $data['label'] !== null) { + $object->setLabel($data['label']); + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + $object->setLabel(null); + } + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('pipeline') && null !== $object->getPipeline()) { + $value = $object->getPipeline(); + if (is_object($object->getPipeline())) { + $value = $this->normalizer->normalize($object->getPipeline(), 'json', $context); + } + $data['pipeline'] = $value; + } + if ($object->isInitialized('action') && null !== $object->getAction()) { + $value_1 = $object->getAction(); + if (is_object($object->getAction())) { + $value_1 = $this->normalizer->normalize($object->getAction(), 'json', $context); + } + $data['action'] = $value_1; + } + $data['code'] = $object->getCode(); + $data['label'] = $object->getLabel(); + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; + } + } + + return $data; + } +} diff --git a/src/Normalizer/JobNormalizer.php b/src/Normalizer/JobNormalizer.php new file mode 100644 index 00000000..98846ed1 --- /dev/null +++ b/src/Normalizer/JobNormalizer.php @@ -0,0 +1,126 @@ +denormalizer->denormalize($data['pipeline'], 'Gyroscops\\Api\\Model\\Pipeline', 'json', $context); + } + $object->setPipeline($value); + unset($data['pipeline']); + } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { + $object->setPipeline(null); + } + if (\array_key_exists('action', $data) && $data['action'] !== null) { + $value_1 = $data['action']; + if (is_array($data['action']) and isset($data['action']['configuration'])) { + $value_1 = $this->denormalizer->denormalize($data['action'], 'Gyroscops\\Api\\Model\\Action', 'json', $context); + } + $object->setAction($value_1); + unset($data['action']); + } elseif (\array_key_exists('action', $data) && $data['action'] === null) { + $object->setAction(null); + } + if (\array_key_exists('code', $data) && $data['code'] !== null) { + $object->setCode($data['code']); + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + $object->setCode(null); + } + if (\array_key_exists('label', $data) && $data['label'] !== null) { + $object->setLabel($data['label']); + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + $object->setLabel(null); + } + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('pipeline') && null !== $object->getPipeline()) { + $value = $object->getPipeline(); + if (is_object($object->getPipeline())) { + $value = $this->normalizer->normalize($object->getPipeline(), 'json', $context); + } + $data['pipeline'] = $value; + } + if ($object->isInitialized('action') && null !== $object->getAction()) { + $value_1 = $object->getAction(); + if (is_object($object->getAction())) { + $value_1 = $this->normalizer->normalize($object->getAction(), 'json', $context); + } + $data['action'] = $value_1; + } + $data['code'] = $object->getCode(); + $data['label'] = $object->getLabel(); + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; + } + } + + return $data; + } +} diff --git a/src/Normalizer/MoneyJsonldNormalizer.php b/src/Normalizer/MoneyJsonldNormalizer.php index 42b6d2ab..3b6c122c 100644 --- a/src/Normalizer/MoneyJsonldNormalizer.php +++ b/src/Normalizer/MoneyJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class MoneyJsonldNormalizer implements DenormalizerInterface, NormalizerInterfac use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\MoneyJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\MoneyJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\MoneyJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\MoneyJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,113 +52,135 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('amount', $data) && null !== $data['amount']) { - $object->setAmount($this->denormalizer->denormalize($data['amount'], \Gyroscops\Api\Model\BigDecimalJsonld::class, 'json', $context)); - } elseif (\array_key_exists('amount', $data) && null === $data['amount']) { + if (\array_key_exists('amount', $data) && $data['amount'] !== null) { + $object->setAmount($this->denormalizer->denormalize($data['amount'], 'Gyroscops\\Api\\Model\\BigDecimalJsonld', 'json', $context)); + unset($data['amount']); + } elseif (\array_key_exists('amount', $data) && $data['amount'] === null) { $object->setAmount(null); } - if (\array_key_exists('currency', $data) && null !== $data['currency']) { - $object->setCurrency($this->denormalizer->denormalize($data['currency'], \Gyroscops\Api\Model\CurrencyJsonld::class, 'json', $context)); - } elseif (\array_key_exists('currency', $data) && null === $data['currency']) { + if (\array_key_exists('currency', $data) && $data['currency'] !== null) { + $object->setCurrency($this->denormalizer->denormalize($data['currency'], 'Gyroscops\\Api\\Model\\CurrencyJsonld', 'json', $context)); + unset($data['currency']); + } elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { $object->setCurrency(null); } - if (\array_key_exists('context', $data) && null !== $data['context']) { - $object->setContext2($this->denormalizer->denormalize($data['context'], \Gyroscops\Api\Model\ContextJsonld::class, 'json', $context)); - } elseif (\array_key_exists('context', $data) && null === $data['context']) { + if (\array_key_exists('context', $data) && $data['context'] !== null) { + $object->setContext2($this->denormalizer->denormalize($data['context'], 'Gyroscops\\Api\\Model\\ContextJsonld', 'json', $context)); + unset($data['context']); + } elseif (\array_key_exists('context', $data) && $data['context'] === null) { $object->setContext2(null); } - if (\array_key_exists('minorAmount', $data) && null !== $data['minorAmount']) { - $object->setMinorAmount($this->denormalizer->denormalize($data['minorAmount'], \Gyroscops\Api\Model\BigDecimalJsonld::class, 'json', $context)); - } elseif (\array_key_exists('minorAmount', $data) && null === $data['minorAmount']) { + if (\array_key_exists('minorAmount', $data) && $data['minorAmount'] !== null) { + $object->setMinorAmount($this->denormalizer->denormalize($data['minorAmount'], 'Gyroscops\\Api\\Model\\BigDecimalJsonld', 'json', $context)); + unset($data['minorAmount']); + } elseif (\array_key_exists('minorAmount', $data) && $data['minorAmount'] === null) { $object->setMinorAmount(null); } - if (\array_key_exists('unscaledAmount', $data) && null !== $data['unscaledAmount']) { - $object->setUnscaledAmount($this->denormalizer->denormalize($data['unscaledAmount'], \Gyroscops\Api\Model\BigIntegerJsonld::class, 'json', $context)); - } elseif (\array_key_exists('unscaledAmount', $data) && null === $data['unscaledAmount']) { + if (\array_key_exists('unscaledAmount', $data) && $data['unscaledAmount'] !== null) { + $object->setUnscaledAmount($this->denormalizer->denormalize($data['unscaledAmount'], 'Gyroscops\\Api\\Model\\BigIntegerJsonld', 'json', $context)); + unset($data['unscaledAmount']); + } elseif (\array_key_exists('unscaledAmount', $data) && $data['unscaledAmount'] === null) { $object->setUnscaledAmount(null); } - if (\array_key_exists('amounts', $data) && null !== $data['amounts']) { + if (\array_key_exists('amounts', $data) && $data['amounts'] !== null) { $values = []; foreach ($data['amounts'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\BigNumberJsonld::class, 'json', $context); + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\BigNumberJsonld', 'json', $context); } $object->setAmounts($values); - } elseif (\array_key_exists('amounts', $data) && null === $data['amounts']) { + unset($data['amounts']); + } elseif (\array_key_exists('amounts', $data) && $data['amounts'] === null) { $object->setAmounts(null); } - if (\array_key_exists('sign', $data) && null !== $data['sign']) { + if (\array_key_exists('sign', $data) && $data['sign'] !== null) { $object->setSign($data['sign']); - } elseif (\array_key_exists('sign', $data) && null === $data['sign']) { + unset($data['sign']); + } elseif (\array_key_exists('sign', $data) && $data['sign'] === null) { $object->setSign(null); } - if (\array_key_exists('zero', $data) && null !== $data['zero']) { + if (\array_key_exists('zero', $data) && $data['zero'] !== null) { $object->setZero($data['zero']); - } elseif (\array_key_exists('zero', $data) && null === $data['zero']) { + unset($data['zero']); + } elseif (\array_key_exists('zero', $data) && $data['zero'] === null) { $object->setZero(null); } - if (\array_key_exists('negative', $data) && null !== $data['negative']) { + if (\array_key_exists('negative', $data) && $data['negative'] !== null) { $object->setNegative($data['negative']); - } elseif (\array_key_exists('negative', $data) && null === $data['negative']) { + unset($data['negative']); + } elseif (\array_key_exists('negative', $data) && $data['negative'] === null) { $object->setNegative(null); } - if (\array_key_exists('negativeOrZero', $data) && null !== $data['negativeOrZero']) { + if (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] !== null) { $object->setNegativeOrZero($data['negativeOrZero']); - } elseif (\array_key_exists('negativeOrZero', $data) && null === $data['negativeOrZero']) { + unset($data['negativeOrZero']); + } elseif (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] === null) { $object->setNegativeOrZero(null); } - if (\array_key_exists('positive', $data) && null !== $data['positive']) { + if (\array_key_exists('positive', $data) && $data['positive'] !== null) { $object->setPositive($data['positive']); - } elseif (\array_key_exists('positive', $data) && null === $data['positive']) { + unset($data['positive']); + } elseif (\array_key_exists('positive', $data) && $data['positive'] === null) { $object->setPositive(null); } - if (\array_key_exists('positiveOrZero', $data) && null !== $data['positiveOrZero']) { + if (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] !== null) { $object->setPositiveOrZero($data['positiveOrZero']); - } elseif (\array_key_exists('positiveOrZero', $data) && null === $data['positiveOrZero']) { + unset($data['positiveOrZero']); + } elseif (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] === null) { $object->setPositiveOrZero(null); } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getAmount()) { + if ($object->isInitialized('amount') && null !== $object->getAmount()) { $data['amount'] = $this->normalizer->normalize($object->getAmount(), 'json', $context); } - if (null !== $object->getCurrency()) { + if ($object->isInitialized('currency') && null !== $object->getCurrency()) { $data['currency'] = $this->normalizer->normalize($object->getCurrency(), 'json', $context); } - if (null !== $object->getContext2()) { + if ($object->isInitialized('context2') && null !== $object->getContext2()) { $data['context'] = $this->normalizer->normalize($object->getContext2(), 'json', $context); } - if (null !== $object->getMinorAmount()) { + if ($object->isInitialized('minorAmount') && null !== $object->getMinorAmount()) { $data['minorAmount'] = $this->normalizer->normalize($object->getMinorAmount(), 'json', $context); } - if (null !== $object->getUnscaledAmount()) { + if ($object->isInitialized('unscaledAmount') && null !== $object->getUnscaledAmount()) { $data['unscaledAmount'] = $this->normalizer->normalize($object->getUnscaledAmount(), 'json', $context); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/MoneyNormalizer.php b/src/Normalizer/MoneyNormalizer.php index 7d52b71d..e6fa0c20 100644 --- a/src/Normalizer/MoneyNormalizer.php +++ b/src/Normalizer/MoneyNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class MoneyNormalizer implements DenormalizerInterface, NormalizerInterface, Den use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\Money::class === $type; + return $type === 'Gyroscops\\Api\\Model\\Money'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\Money::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\Money'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,98 +52,117 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('amount', $data) && null !== $data['amount']) { - $object->setAmount($this->denormalizer->denormalize($data['amount'], \Gyroscops\Api\Model\BigDecimal::class, 'json', $context)); - } elseif (\array_key_exists('amount', $data) && null === $data['amount']) { + if (\array_key_exists('amount', $data) && $data['amount'] !== null) { + $object->setAmount($this->denormalizer->denormalize($data['amount'], 'Gyroscops\\Api\\Model\\BigDecimal', 'json', $context)); + unset($data['amount']); + } elseif (\array_key_exists('amount', $data) && $data['amount'] === null) { $object->setAmount(null); } - if (\array_key_exists('currency', $data) && null !== $data['currency']) { - $object->setCurrency($this->denormalizer->denormalize($data['currency'], \Gyroscops\Api\Model\Currency::class, 'json', $context)); - } elseif (\array_key_exists('currency', $data) && null === $data['currency']) { + if (\array_key_exists('currency', $data) && $data['currency'] !== null) { + $object->setCurrency($this->denormalizer->denormalize($data['currency'], 'Gyroscops\\Api\\Model\\Currency', 'json', $context)); + unset($data['currency']); + } elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { $object->setCurrency(null); } - if (\array_key_exists('context', $data) && null !== $data['context']) { - $object->setContext($this->denormalizer->denormalize($data['context'], \Gyroscops\Api\Model\Context::class, 'json', $context)); - } elseif (\array_key_exists('context', $data) && null === $data['context']) { + if (\array_key_exists('context', $data) && $data['context'] !== null) { + $object->setContext($this->denormalizer->denormalize($data['context'], 'Gyroscops\\Api\\Model\\Context', 'json', $context)); + unset($data['context']); + } elseif (\array_key_exists('context', $data) && $data['context'] === null) { $object->setContext(null); } - if (\array_key_exists('minorAmount', $data) && null !== $data['minorAmount']) { - $object->setMinorAmount($this->denormalizer->denormalize($data['minorAmount'], \Gyroscops\Api\Model\BigDecimal::class, 'json', $context)); - } elseif (\array_key_exists('minorAmount', $data) && null === $data['minorAmount']) { + if (\array_key_exists('minorAmount', $data) && $data['minorAmount'] !== null) { + $object->setMinorAmount($this->denormalizer->denormalize($data['minorAmount'], 'Gyroscops\\Api\\Model\\BigDecimal', 'json', $context)); + unset($data['minorAmount']); + } elseif (\array_key_exists('minorAmount', $data) && $data['minorAmount'] === null) { $object->setMinorAmount(null); } - if (\array_key_exists('unscaledAmount', $data) && null !== $data['unscaledAmount']) { - $object->setUnscaledAmount($this->denormalizer->denormalize($data['unscaledAmount'], \Gyroscops\Api\Model\BigInteger::class, 'json', $context)); - } elseif (\array_key_exists('unscaledAmount', $data) && null === $data['unscaledAmount']) { + if (\array_key_exists('unscaledAmount', $data) && $data['unscaledAmount'] !== null) { + $object->setUnscaledAmount($this->denormalizer->denormalize($data['unscaledAmount'], 'Gyroscops\\Api\\Model\\BigInteger', 'json', $context)); + unset($data['unscaledAmount']); + } elseif (\array_key_exists('unscaledAmount', $data) && $data['unscaledAmount'] === null) { $object->setUnscaledAmount(null); } - if (\array_key_exists('amounts', $data) && null !== $data['amounts']) { + if (\array_key_exists('amounts', $data) && $data['amounts'] !== null) { $values = []; foreach ($data['amounts'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\BigNumber::class, 'json', $context); + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\BigNumber', 'json', $context); } $object->setAmounts($values); - } elseif (\array_key_exists('amounts', $data) && null === $data['amounts']) { + unset($data['amounts']); + } elseif (\array_key_exists('amounts', $data) && $data['amounts'] === null) { $object->setAmounts(null); } - if (\array_key_exists('sign', $data) && null !== $data['sign']) { + if (\array_key_exists('sign', $data) && $data['sign'] !== null) { $object->setSign($data['sign']); - } elseif (\array_key_exists('sign', $data) && null === $data['sign']) { + unset($data['sign']); + } elseif (\array_key_exists('sign', $data) && $data['sign'] === null) { $object->setSign(null); } - if (\array_key_exists('zero', $data) && null !== $data['zero']) { + if (\array_key_exists('zero', $data) && $data['zero'] !== null) { $object->setZero($data['zero']); - } elseif (\array_key_exists('zero', $data) && null === $data['zero']) { + unset($data['zero']); + } elseif (\array_key_exists('zero', $data) && $data['zero'] === null) { $object->setZero(null); } - if (\array_key_exists('negative', $data) && null !== $data['negative']) { + if (\array_key_exists('negative', $data) && $data['negative'] !== null) { $object->setNegative($data['negative']); - } elseif (\array_key_exists('negative', $data) && null === $data['negative']) { + unset($data['negative']); + } elseif (\array_key_exists('negative', $data) && $data['negative'] === null) { $object->setNegative(null); } - if (\array_key_exists('negativeOrZero', $data) && null !== $data['negativeOrZero']) { + if (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] !== null) { $object->setNegativeOrZero($data['negativeOrZero']); - } elseif (\array_key_exists('negativeOrZero', $data) && null === $data['negativeOrZero']) { + unset($data['negativeOrZero']); + } elseif (\array_key_exists('negativeOrZero', $data) && $data['negativeOrZero'] === null) { $object->setNegativeOrZero(null); } - if (\array_key_exists('positive', $data) && null !== $data['positive']) { + if (\array_key_exists('positive', $data) && $data['positive'] !== null) { $object->setPositive($data['positive']); - } elseif (\array_key_exists('positive', $data) && null === $data['positive']) { + unset($data['positive']); + } elseif (\array_key_exists('positive', $data) && $data['positive'] === null) { $object->setPositive(null); } - if (\array_key_exists('positiveOrZero', $data) && null !== $data['positiveOrZero']) { + if (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] !== null) { $object->setPositiveOrZero($data['positiveOrZero']); - } elseif (\array_key_exists('positiveOrZero', $data) && null === $data['positiveOrZero']) { + unset($data['positiveOrZero']); + } elseif (\array_key_exists('positiveOrZero', $data) && $data['positiveOrZero'] === null) { $object->setPositiveOrZero(null); } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getAmount()) { + if ($object->isInitialized('amount') && null !== $object->getAmount()) { $data['amount'] = $this->normalizer->normalize($object->getAmount(), 'json', $context); } - if (null !== $object->getCurrency()) { + if ($object->isInitialized('currency') && null !== $object->getCurrency()) { $data['currency'] = $this->normalizer->normalize($object->getCurrency(), 'json', $context); } - if (null !== $object->getContext()) { + if ($object->isInitialized('context') && null !== $object->getContext()) { $data['context'] = $this->normalizer->normalize($object->getContext(), 'json', $context); } - if (null !== $object->getMinorAmount()) { + if ($object->isInitialized('minorAmount') && null !== $object->getMinorAmount()) { $data['minorAmount'] = $this->normalizer->normalize($object->getMinorAmount(), 'json', $context); } - if (null !== $object->getUnscaledAmount()) { + if ($object->isInitialized('unscaledAmount') && null !== $object->getUnscaledAmount()) { $data['unscaledAmount'] = $this->normalizer->normalize($object->getUnscaledAmount(), 'json', $context); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/OfferJsonldNormalizer.php b/src/Normalizer/OfferJsonldNormalizer.php deleted file mode 100644 index 7b118424..00000000 --- a/src/Normalizer/OfferJsonldNormalizer.php +++ /dev/null @@ -1,139 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { - $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { - $object->setContext(null); - } - if (\array_key_exists('options', $data) && null !== $data['options']) { - $values = []; - foreach ($data['options'] as $value) { - $values[] = $value; - } - $object->setOptions($values); - } elseif (\array_key_exists('options', $data) && null === $data['options']) { - $object->setOptions(null); - } - if (\array_key_exists('id', $data) && null !== $data['id']) { - $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { - $object->setId2(null); - } - if (\array_key_exists('sku', $data) && null !== $data['sku']) { - $object->setSku($data['sku']); - } elseif (\array_key_exists('sku', $data) && null === $data['sku']) { - $object->setSku(null); - } - if (\array_key_exists('name', $data) && null !== $data['name']) { - $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { - $object->setName(null); - } - if (\array_key_exists('slug', $data) && null !== $data['slug']) { - $object->setSlug($data['slug']); - } elseif (\array_key_exists('slug', $data) && null === $data['slug']) { - $object->setSlug(null); - } - if (\array_key_exists('description', $data) && null !== $data['description']) { - $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && null === $data['description']) { - $object->setDescription(null); - } - if (\array_key_exists('price', $data) && null !== $data['price']) { - $object->setPrice($this->denormalizer->denormalize($data['price'], \Gyroscops\Api\Model\PriceJsonld::class, 'json', $context)); - } elseif (\array_key_exists('price', $data) && null === $data['price']) { - $object->setPrice(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getOptions()) { - $values = []; - foreach ($object->getOptions() as $value) { - $values[] = $value; - } - $data['options'] = $values; - } - $data['sku'] = $object->getSku(); - $data['name'] = $object->getName(); - $data['slug'] = $object->getSlug(); - $data['description'] = $object->getDescription(); - $data['price'] = $this->normalizer->normalize($object->getPrice(), 'json', $context); - - return $data; - } -} diff --git a/src/Normalizer/OfferNormalizer.php b/src/Normalizer/OfferNormalizer.php deleted file mode 100644 index 7949d586..00000000 --- a/src/Normalizer/OfferNormalizer.php +++ /dev/null @@ -1,124 +0,0 @@ -setOptions($values); - } elseif (\array_key_exists('options', $data) && null === $data['options']) { - $object->setOptions(null); - } - if (\array_key_exists('id', $data) && null !== $data['id']) { - $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { - $object->setId(null); - } - if (\array_key_exists('sku', $data) && null !== $data['sku']) { - $object->setSku($data['sku']); - } elseif (\array_key_exists('sku', $data) && null === $data['sku']) { - $object->setSku(null); - } - if (\array_key_exists('name', $data) && null !== $data['name']) { - $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { - $object->setName(null); - } - if (\array_key_exists('slug', $data) && null !== $data['slug']) { - $object->setSlug($data['slug']); - } elseif (\array_key_exists('slug', $data) && null === $data['slug']) { - $object->setSlug(null); - } - if (\array_key_exists('description', $data) && null !== $data['description']) { - $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && null === $data['description']) { - $object->setDescription(null); - } - if (\array_key_exists('price', $data) && null !== $data['price']) { - $object->setPrice($this->denormalizer->denormalize($data['price'], \Gyroscops\Api\Model\Price::class, 'json', $context)); - } elseif (\array_key_exists('price', $data) && null === $data['price']) { - $object->setPrice(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getOptions()) { - $values = []; - foreach ($object->getOptions() as $value) { - $values[] = $value; - } - $data['options'] = $values; - } - $data['sku'] = $object->getSku(); - $data['name'] = $object->getName(); - $data['slug'] = $object->getSlug(); - $data['description'] = $object->getDescription(); - $data['price'] = $this->normalizer->normalize($object->getPrice(), 'json', $context); - - return $data; - } -} diff --git a/src/Normalizer/OnPremiseRequestJsonldOnPremiseRequestReadNormalizer.php b/src/Normalizer/OnPremiseRequestJsonldOnPremiseRequestReadNormalizer.php index f0cb3e20..c3b81dd1 100644 --- a/src/Normalizer/OnPremiseRequestJsonldOnPremiseRequestReadNormalizer.php +++ b/src/Normalizer/OnPremiseRequestJsonldOnPremiseRequestReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class OnPremiseRequestJsonldOnPremiseRequestReadNormalizer implements Denormaliz use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\OnPremiseRequestJsonldOnPremiseRequestRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\OnPremiseRequestJsonldOnPremiseRequestRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\OnPremiseRequestJsonldOnPremiseRequestRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\OnPremiseRequestJsonldOnPremiseRequestRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,59 +52,70 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('firstName', $data) && null !== $data['firstName']) { + if (\array_key_exists('firstName', $data) && $data['firstName'] !== null) { $object->setFirstName($data['firstName']); - } elseif (\array_key_exists('firstName', $data) && null === $data['firstName']) { + unset($data['firstName']); + } elseif (\array_key_exists('firstName', $data) && $data['firstName'] === null) { $object->setFirstName(null); } - if (\array_key_exists('lastName', $data) && null !== $data['lastName']) { + if (\array_key_exists('lastName', $data) && $data['lastName'] !== null) { $object->setLastName($data['lastName']); - } elseif (\array_key_exists('lastName', $data) && null === $data['lastName']) { + unset($data['lastName']); + } elseif (\array_key_exists('lastName', $data) && $data['lastName'] === null) { $object->setLastName(null); } - if (\array_key_exists('email', $data) && null !== $data['email']) { + if (\array_key_exists('email', $data) && $data['email'] !== null) { $object->setEmail($data['email']); - } elseif (\array_key_exists('email', $data) && null === $data['email']) { + unset($data['email']); + } elseif (\array_key_exists('email', $data) && $data['email'] === null) { $object->setEmail(null); } - if (\array_key_exists('message', $data) && null !== $data['message']) { + if (\array_key_exists('message', $data) && $data['message'] !== null) { $object->setMessage($data['message']); - } elseif (\array_key_exists('message', $data) && null === $data['message']) { + unset($data['message']); + } elseif (\array_key_exists('message', $data) && $data['message'] === null) { $object->setMessage(null); } - if (\array_key_exists('createdAt', $data) && null !== $data['createdAt']) { + if (\array_key_exists('createdAt', $data) && $data['createdAt'] !== null) { $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['createdAt'])); - } elseif (\array_key_exists('createdAt', $data) && null === $data['createdAt']) { + unset($data['createdAt']); + } elseif (\array_key_exists('createdAt', $data) && $data['createdAt'] === null) { $object->setCreatedAt(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -114,13 +123,18 @@ public function normalize($object, $format = null, array $context = []) $data = []; $data['firstName'] = $object->getFirstName(); $data['lastName'] = $object->getLastName(); - if (null !== $object->getEmail()) { + if ($object->isInitialized('email') && null !== $object->getEmail()) { $data['email'] = $object->getEmail(); } $data['message'] = $object->getMessage(); - if (null !== $object->getCreatedAt()) { + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { $data['createdAt'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:sP'); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/OnPremiseRequestJsonldOnPremiseRequestWriteNormalizer.php b/src/Normalizer/OnPremiseRequestJsonldOnPremiseRequestWriteNormalizer.php index 46dfcec1..39557aa3 100644 --- a/src/Normalizer/OnPremiseRequestJsonldOnPremiseRequestWriteNormalizer.php +++ b/src/Normalizer/OnPremiseRequestJsonldOnPremiseRequestWriteNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class OnPremiseRequestJsonldOnPremiseRequestWriteNormalizer implements Denormali use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\OnPremiseRequestJsonldOnPremiseRequestWrite::class === $type; + return $type === 'Gyroscops\\Api\\Model\\OnPremiseRequestJsonldOnPremiseRequestWrite'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\OnPremiseRequestJsonldOnPremiseRequestWrite::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\OnPremiseRequestJsonldOnPremiseRequestWrite'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,49 +52,58 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('firstName', $data) && null !== $data['firstName']) { + if (\array_key_exists('firstName', $data) && $data['firstName'] !== null) { $object->setFirstName($data['firstName']); - } elseif (\array_key_exists('firstName', $data) && null === $data['firstName']) { + unset($data['firstName']); + } elseif (\array_key_exists('firstName', $data) && $data['firstName'] === null) { $object->setFirstName(null); } - if (\array_key_exists('lastName', $data) && null !== $data['lastName']) { + if (\array_key_exists('lastName', $data) && $data['lastName'] !== null) { $object->setLastName($data['lastName']); - } elseif (\array_key_exists('lastName', $data) && null === $data['lastName']) { + unset($data['lastName']); + } elseif (\array_key_exists('lastName', $data) && $data['lastName'] === null) { $object->setLastName(null); } - if (\array_key_exists('email', $data) && null !== $data['email']) { + if (\array_key_exists('email', $data) && $data['email'] !== null) { $object->setEmail($data['email']); - } elseif (\array_key_exists('email', $data) && null === $data['email']) { + unset($data['email']); + } elseif (\array_key_exists('email', $data) && $data['email'] === null) { $object->setEmail(null); } - if (\array_key_exists('message', $data) && null !== $data['message']) { + if (\array_key_exists('message', $data) && $data['message'] !== null) { $object->setMessage($data['message']); - } elseif (\array_key_exists('message', $data) && null === $data['message']) { + unset($data['message']); + } elseif (\array_key_exists('message', $data) && $data['message'] === null) { $object->setMessage(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -104,10 +111,15 @@ public function normalize($object, $format = null, array $context = []) $data = []; $data['firstName'] = $object->getFirstName(); $data['lastName'] = $object->getLastName(); - if (null !== $object->getEmail()) { + if ($object->isInitialized('email') && null !== $object->getEmail()) { $data['email'] = $object->getEmail(); } $data['message'] = $object->getMessage(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/OnPremiseRequestOnPremiseRequestReadNormalizer.php b/src/Normalizer/OnPremiseRequestOnPremiseRequestReadNormalizer.php index da19d53a..e9bff0e9 100644 --- a/src/Normalizer/OnPremiseRequestOnPremiseRequestReadNormalizer.php +++ b/src/Normalizer/OnPremiseRequestOnPremiseRequestReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class OnPremiseRequestOnPremiseRequestReadNormalizer implements DenormalizerInte use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\OnPremiseRequestOnPremiseRequestRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\OnPremiseRequestOnPremiseRequestRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,44 +52,52 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('firstName', $data) && null !== $data['firstName']) { + if (\array_key_exists('firstName', $data) && $data['firstName'] !== null) { $object->setFirstName($data['firstName']); - } elseif (\array_key_exists('firstName', $data) && null === $data['firstName']) { + unset($data['firstName']); + } elseif (\array_key_exists('firstName', $data) && $data['firstName'] === null) { $object->setFirstName(null); } - if (\array_key_exists('lastName', $data) && null !== $data['lastName']) { + if (\array_key_exists('lastName', $data) && $data['lastName'] !== null) { $object->setLastName($data['lastName']); - } elseif (\array_key_exists('lastName', $data) && null === $data['lastName']) { + unset($data['lastName']); + } elseif (\array_key_exists('lastName', $data) && $data['lastName'] === null) { $object->setLastName(null); } - if (\array_key_exists('email', $data) && null !== $data['email']) { + if (\array_key_exists('email', $data) && $data['email'] !== null) { $object->setEmail($data['email']); - } elseif (\array_key_exists('email', $data) && null === $data['email']) { + unset($data['email']); + } elseif (\array_key_exists('email', $data) && $data['email'] === null) { $object->setEmail(null); } - if (\array_key_exists('message', $data) && null !== $data['message']) { + if (\array_key_exists('message', $data) && $data['message'] !== null) { $object->setMessage($data['message']); - } elseif (\array_key_exists('message', $data) && null === $data['message']) { + unset($data['message']); + } elseif (\array_key_exists('message', $data) && $data['message'] === null) { $object->setMessage(null); } - if (\array_key_exists('createdAt', $data) && null !== $data['createdAt']) { + if (\array_key_exists('createdAt', $data) && $data['createdAt'] !== null) { $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['createdAt'])); - } elseif (\array_key_exists('createdAt', $data) && null === $data['createdAt']) { + unset($data['createdAt']); + } elseif (\array_key_exists('createdAt', $data) && $data['createdAt'] === null) { $object->setCreatedAt(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -99,13 +105,18 @@ public function normalize($object, $format = null, array $context = []) $data = []; $data['firstName'] = $object->getFirstName(); $data['lastName'] = $object->getLastName(); - if (null !== $object->getEmail()) { + if ($object->isInitialized('email') && null !== $object->getEmail()) { $data['email'] = $object->getEmail(); } $data['message'] = $object->getMessage(); - if (null !== $object->getCreatedAt()) { + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { $data['createdAt'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:sP'); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/OnPremiseRequestOnPremiseRequestWriteNormalizer.php b/src/Normalizer/OnPremiseRequestOnPremiseRequestWriteNormalizer.php index fae0b868..33ac17b4 100644 --- a/src/Normalizer/OnPremiseRequestOnPremiseRequestWriteNormalizer.php +++ b/src/Normalizer/OnPremiseRequestOnPremiseRequestWriteNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class OnPremiseRequestOnPremiseRequestWriteNormalizer implements DenormalizerInt use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestWrite::class === $type; + return $type === 'Gyroscops\\Api\\Model\\OnPremiseRequestOnPremiseRequestWrite'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\OnPremiseRequestOnPremiseRequestWrite::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\OnPremiseRequestOnPremiseRequestWrite'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,34 +52,40 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('firstName', $data) && null !== $data['firstName']) { + if (\array_key_exists('firstName', $data) && $data['firstName'] !== null) { $object->setFirstName($data['firstName']); - } elseif (\array_key_exists('firstName', $data) && null === $data['firstName']) { + unset($data['firstName']); + } elseif (\array_key_exists('firstName', $data) && $data['firstName'] === null) { $object->setFirstName(null); } - if (\array_key_exists('lastName', $data) && null !== $data['lastName']) { + if (\array_key_exists('lastName', $data) && $data['lastName'] !== null) { $object->setLastName($data['lastName']); - } elseif (\array_key_exists('lastName', $data) && null === $data['lastName']) { + unset($data['lastName']); + } elseif (\array_key_exists('lastName', $data) && $data['lastName'] === null) { $object->setLastName(null); } - if (\array_key_exists('email', $data) && null !== $data['email']) { + if (\array_key_exists('email', $data) && $data['email'] !== null) { $object->setEmail($data['email']); - } elseif (\array_key_exists('email', $data) && null === $data['email']) { + unset($data['email']); + } elseif (\array_key_exists('email', $data) && $data['email'] === null) { $object->setEmail(null); } - if (\array_key_exists('message', $data) && null !== $data['message']) { + if (\array_key_exists('message', $data) && $data['message'] !== null) { $object->setMessage($data['message']); - } elseif (\array_key_exists('message', $data) && null === $data['message']) { + unset($data['message']); + } elseif (\array_key_exists('message', $data) && $data['message'] === null) { $object->setMessage(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -89,10 +93,15 @@ public function normalize($object, $format = null, array $context = []) $data = []; $data['firstName'] = $object->getFirstName(); $data['lastName'] = $object->getLastName(); - if (null !== $object->getEmail()) { + if ($object->isInitialized('email') && null !== $object->getEmail()) { $data['email'] = $object->getEmail(); } $data['message'] = $object->getMessage(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/OpaqueInterfaceJsonldNormalizer.php b/src/Normalizer/OpaqueInterfaceJsonldNormalizer.php new file mode 100644 index 00000000..74e4444d --- /dev/null +++ b/src/Normalizer/OpaqueInterfaceJsonldNormalizer.php @@ -0,0 +1,96 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/OptionJsonldNormalizer.php b/src/Normalizer/OptionJsonldNormalizer.php index a6916ffc..8bb6bed2 100644 --- a/src/Normalizer/OptionJsonldNormalizer.php +++ b/src/Normalizer/OptionJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class OptionJsonldNormalizer implements DenormalizerInterface, NormalizerInterfa use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\OptionJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\OptionJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\OptionJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\OptionJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,59 +52,114 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('offer', $data) && null !== $data['offer']) { + if (\array_key_exists('offer', $data) && $data['offer'] !== null) { $object->setOffer($data['offer']); - } elseif (\array_key_exists('offer', $data) && null === $data['offer']) { + unset($data['offer']); + } elseif (\array_key_exists('offer', $data) && $data['offer'] === null) { $object->setOffer(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('sku', $data) && null !== $data['sku']) { + if (\array_key_exists('sku', $data) && $data['sku'] !== null) { $object->setSku($data['sku']); - } elseif (\array_key_exists('sku', $data) && null === $data['sku']) { + unset($data['sku']); + } elseif (\array_key_exists('sku', $data) && $data['sku'] === null) { $object->setSku(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('slug', $data) && null !== $data['slug']) { + if (\array_key_exists('slug', $data) && $data['slug'] !== null) { $object->setSlug($data['slug']); - } elseif (\array_key_exists('slug', $data) && null === $data['slug']) { + unset($data['slug']); + } elseif (\array_key_exists('slug', $data) && $data['slug'] === null) { $object->setSlug(null); } - if (\array_key_exists('description', $data) && null !== $data['description']) { + if (\array_key_exists('shortDescription', $data) && $data['shortDescription'] !== null) { + $object->setShortDescription($data['shortDescription']); + unset($data['shortDescription']); + } elseif (\array_key_exists('shortDescription', $data) && $data['shortDescription'] === null) { + $object->setShortDescription(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && null === $data['description']) { + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { $object->setDescription(null); } - if (\array_key_exists('price', $data) && null !== $data['price']) { - $object->setPrice($this->denormalizer->denormalize($data['price'], \Gyroscops\Api\Model\PriceJsonld::class, 'json', $context)); - } elseif (\array_key_exists('price', $data) && null === $data['price']) { - $object->setPrice(null); + if (\array_key_exists('features', $data) && $data['features'] !== null) { + $values = []; + foreach ($data['features'] as $value) { + $values[] = $value; + } + $object->setFeatures($values); + unset($data['features']); + } elseif (\array_key_exists('features', $data) && $data['features'] === null) { + $object->setFeatures(null); + } + if (\array_key_exists('priceList', $data) && $data['priceList'] !== null) { + $values_1 = []; + foreach ($data['priceList'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'Gyroscops\\Api\\Model\\PriceJsonld', 'json', $context); + } + $object->setPriceList($values_1); + unset($data['priceList']); + } elseif (\array_key_exists('priceList', $data) && $data['priceList'] === null) { + $object->setPriceList(null); + } + if (\array_key_exists('rank', $data) && $data['rank'] !== null) { + $object->setRank($data['rank']); + unset($data['rank']); + } elseif (\array_key_exists('rank', $data) && $data['rank'] === null) { + $object->setRank(null); + } + if (\array_key_exists('active', $data) && $data['active'] !== null) { + $object->setActive($data['active']); + unset($data['active']); + } elseif (\array_key_exists('active', $data) && $data['active'] === null) { + $object->setActive(null); + } + if (\array_key_exists('activeFrom', $data) && $data['activeFrom'] !== null) { + $object->setActiveFrom(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['activeFrom'])); + unset($data['activeFrom']); + } elseif (\array_key_exists('activeFrom', $data) && $data['activeFrom'] === null) { + $object->setActiveFrom(null); + } + if (\array_key_exists('activeUntil', $data) && $data['activeUntil'] !== null) { + $object->setActiveUntil(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['activeUntil'])); + unset($data['activeUntil']); + } elseif (\array_key_exists('activeUntil', $data) && $data['activeUntil'] === null) { + $object->setActiveUntil(null); + } + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; + } } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -116,8 +169,37 @@ public function normalize($object, $format = null, array $context = []) $data['sku'] = $object->getSku(); $data['name'] = $object->getName(); $data['slug'] = $object->getSlug(); + $data['shortDescription'] = $object->getShortDescription(); $data['description'] = $object->getDescription(); - $data['price'] = $this->normalizer->normalize($object->getPrice(), 'json', $context); + $values = []; + foreach ($object->getFeatures() as $value) { + $values[] = $value; + } + $data['features'] = $values; + if ($object->isInitialized('priceList') && null !== $object->getPriceList()) { + $values_1 = []; + foreach ($object->getPriceList() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['priceList'] = $values_1; + } + if ($object->isInitialized('rank') && null !== $object->getRank()) { + $data['rank'] = $object->getRank(); + } + if ($object->isInitialized('active') && null !== $object->getActive()) { + $data['active'] = $object->getActive(); + } + if ($object->isInitialized('activeFrom') && null !== $object->getActiveFrom()) { + $data['activeFrom'] = $object->getActiveFrom()->format('Y-m-d\\TH:i:sP'); + } + if ($object->isInitialized('activeUntil') && null !== $object->getActiveUntil()) { + $data['activeUntil'] = $object->getActiveUntil()->format('Y-m-d\\TH:i:sP'); + } + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; + } + } return $data; } diff --git a/src/Normalizer/OptionNormalizer.php b/src/Normalizer/OptionNormalizer.php index b32c3baa..a7b073d4 100644 --- a/src/Normalizer/OptionNormalizer.php +++ b/src/Normalizer/OptionNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class OptionNormalizer implements DenormalizerInterface, NormalizerInterface, De use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\Option::class === $type; + return $type === 'Gyroscops\\Api\\Model\\Option'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\Option::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\Option'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,49 +52,102 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('offer', $data) && null !== $data['offer']) { + if (\array_key_exists('offer', $data) && $data['offer'] !== null) { $object->setOffer($data['offer']); - } elseif (\array_key_exists('offer', $data) && null === $data['offer']) { + unset($data['offer']); + } elseif (\array_key_exists('offer', $data) && $data['offer'] === null) { $object->setOffer(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('sku', $data) && null !== $data['sku']) { + if (\array_key_exists('sku', $data) && $data['sku'] !== null) { $object->setSku($data['sku']); - } elseif (\array_key_exists('sku', $data) && null === $data['sku']) { + unset($data['sku']); + } elseif (\array_key_exists('sku', $data) && $data['sku'] === null) { $object->setSku(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('slug', $data) && null !== $data['slug']) { + if (\array_key_exists('slug', $data) && $data['slug'] !== null) { $object->setSlug($data['slug']); - } elseif (\array_key_exists('slug', $data) && null === $data['slug']) { + unset($data['slug']); + } elseif (\array_key_exists('slug', $data) && $data['slug'] === null) { $object->setSlug(null); } - if (\array_key_exists('description', $data) && null !== $data['description']) { + if (\array_key_exists('shortDescription', $data) && $data['shortDescription'] !== null) { + $object->setShortDescription($data['shortDescription']); + unset($data['shortDescription']); + } elseif (\array_key_exists('shortDescription', $data) && $data['shortDescription'] === null) { + $object->setShortDescription(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && null === $data['description']) { + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { $object->setDescription(null); } - if (\array_key_exists('price', $data) && null !== $data['price']) { - $object->setPrice($this->denormalizer->denormalize($data['price'], \Gyroscops\Api\Model\Price::class, 'json', $context)); - } elseif (\array_key_exists('price', $data) && null === $data['price']) { - $object->setPrice(null); + if (\array_key_exists('features', $data) && $data['features'] !== null) { + $values = []; + foreach ($data['features'] as $value) { + $values[] = $value; + } + $object->setFeatures($values); + unset($data['features']); + } elseif (\array_key_exists('features', $data) && $data['features'] === null) { + $object->setFeatures(null); + } + if (\array_key_exists('priceList', $data) && $data['priceList'] !== null) { + $values_1 = []; + foreach ($data['priceList'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'Gyroscops\\Api\\Model\\Price', 'json', $context); + } + $object->setPriceList($values_1); + unset($data['priceList']); + } elseif (\array_key_exists('priceList', $data) && $data['priceList'] === null) { + $object->setPriceList(null); + } + if (\array_key_exists('rank', $data) && $data['rank'] !== null) { + $object->setRank($data['rank']); + unset($data['rank']); + } elseif (\array_key_exists('rank', $data) && $data['rank'] === null) { + $object->setRank(null); + } + if (\array_key_exists('active', $data) && $data['active'] !== null) { + $object->setActive($data['active']); + unset($data['active']); + } elseif (\array_key_exists('active', $data) && $data['active'] === null) { + $object->setActive(null); + } + if (\array_key_exists('activeFrom', $data) && $data['activeFrom'] !== null) { + $object->setActiveFrom(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['activeFrom'])); + unset($data['activeFrom']); + } elseif (\array_key_exists('activeFrom', $data) && $data['activeFrom'] === null) { + $object->setActiveFrom(null); + } + if (\array_key_exists('activeUntil', $data) && $data['activeUntil'] !== null) { + $object->setActiveUntil(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['activeUntil'])); + unset($data['activeUntil']); + } elseif (\array_key_exists('activeUntil', $data) && $data['activeUntil'] === null) { + $object->setActiveUntil(null); + } + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; + } } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -106,8 +157,37 @@ public function normalize($object, $format = null, array $context = []) $data['sku'] = $object->getSku(); $data['name'] = $object->getName(); $data['slug'] = $object->getSlug(); + $data['shortDescription'] = $object->getShortDescription(); $data['description'] = $object->getDescription(); - $data['price'] = $this->normalizer->normalize($object->getPrice(), 'json', $context); + $values = []; + foreach ($object->getFeatures() as $value) { + $values[] = $value; + } + $data['features'] = $values; + if ($object->isInitialized('priceList') && null !== $object->getPriceList()) { + $values_1 = []; + foreach ($object->getPriceList() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['priceList'] = $values_1; + } + if ($object->isInitialized('rank') && null !== $object->getRank()) { + $data['rank'] = $object->getRank(); + } + if ($object->isInitialized('active') && null !== $object->getActive()) { + $data['active'] = $object->getActive(); + } + if ($object->isInitialized('activeFrom') && null !== $object->getActiveFrom()) { + $data['activeFrom'] = $object->getActiveFrom()->format('Y-m-d\\TH:i:sP'); + } + if ($object->isInitialized('activeUntil') && null !== $object->getActiveUntil()) { + $data['activeUntil'] = $object->getActiveUntil()->format('Y-m-d\\TH:i:sP'); + } + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; + } + } return $data; } diff --git a/src/Normalizer/OrganizationAddCollaboratorsNormalizer.php b/src/Normalizer/OrganizationAddCollaboratorsNormalizer.php new file mode 100644 index 00000000..6798dd9a --- /dev/null +++ b/src/Normalizer/OrganizationAddCollaboratorsNormalizer.php @@ -0,0 +1,95 @@ +setExternalCollaborators($values); + unset($data['externalCollaborators']); + } elseif (\array_key_exists('externalCollaborators', $data) && $data['externalCollaborators'] === null) { + $object->setExternalCollaborators(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('externalCollaborators') && null !== $object->getExternalCollaborators()) { + $values = []; + foreach ($object->getExternalCollaborators() as $value) { + $values[] = $value; + } + $data['externalCollaborators'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/OrganizationIdJsonldNormalizer.php b/src/Normalizer/OrganizationIdJsonldNormalizer.php deleted file mode 100644 index 37bd20de..00000000 --- a/src/Normalizer/OrganizationIdJsonldNormalizer.php +++ /dev/null @@ -1,86 +0,0 @@ -setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { - $object->setContext(null); - } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { - $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - return []; - } -} diff --git a/src/Normalizer/OrganizationJsonldAddCollaboratorsNormalizer.php b/src/Normalizer/OrganizationJsonldAddCollaboratorsNormalizer.php new file mode 100644 index 00000000..75a3390a --- /dev/null +++ b/src/Normalizer/OrganizationJsonldAddCollaboratorsNormalizer.php @@ -0,0 +1,113 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('externalCollaborators', $data) && $data['externalCollaborators'] !== null) { + $values = []; + foreach ($data['externalCollaborators'] as $value) { + $values[] = $value; + } + $object->setExternalCollaborators($values); + unset($data['externalCollaborators']); + } elseif (\array_key_exists('externalCollaborators', $data) && $data['externalCollaborators'] === null) { + $object->setExternalCollaborators(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('externalCollaborators') && null !== $object->getExternalCollaborators()) { + $values = []; + foreach ($object->getExternalCollaborators() as $value) { + $values[] = $value; + } + $data['externalCollaborators'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/OrganizationJsonldNormalizer.php b/src/Normalizer/OrganizationJsonldNormalizer.php index 497af95b..4c2648b1 100644 --- a/src/Normalizer/OrganizationJsonldNormalizer.php +++ b/src/Normalizer/OrganizationJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class OrganizationJsonldNormalizer implements DenormalizerInterface, NormalizerI use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\OrganizationJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\OrganizationJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\OrganizationJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\OrganizationJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,86 +52,110 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('authorizations', $data) && null !== $data['authorizations']) { + if (\array_key_exists('authorizations', $data) && $data['authorizations'] !== null) { $values = []; foreach ($data['authorizations'] as $value) { $values[] = $value; } $object->setAuthorizations($values); - } elseif (\array_key_exists('authorizations', $data) && null === $data['authorizations']) { + unset($data['authorizations']); + } elseif (\array_key_exists('authorizations', $data) && $data['authorizations'] === null) { $object->setAuthorizations(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('slug', $data) && null !== $data['slug']) { + if (\array_key_exists('slug', $data) && $data['slug'] !== null) { $object->setSlug($data['slug']); - } elseif (\array_key_exists('slug', $data) && null === $data['slug']) { + unset($data['slug']); + } elseif (\array_key_exists('slug', $data) && $data['slug'] === null) { $object->setSlug(null); } - if (\array_key_exists('users', $data) && null !== $data['users']) { + if (\array_key_exists('stripeCode', $data) && $data['stripeCode'] !== null) { + $object->setStripeCode($data['stripeCode']); + unset($data['stripeCode']); + } elseif (\array_key_exists('stripeCode', $data) && $data['stripeCode'] === null) { + $object->setStripeCode(null); + } + if (\array_key_exists('users', $data) && $data['users'] !== null) { $values_1 = []; foreach ($data['users'] as $value_1) { $values_1[] = $value_1; } $object->setUsers($values_1); - } elseif (\array_key_exists('users', $data) && null === $data['users']) { + unset($data['users']); + } elseif (\array_key_exists('users', $data) && $data['users'] === null) { $object->setUsers(null); } - if (\array_key_exists('externalCollaborators', $data) && null !== $data['externalCollaborators']) { + if (\array_key_exists('externalCollaborators', $data) && $data['externalCollaborators'] !== null) { $values_2 = []; foreach ($data['externalCollaborators'] as $value_2) { $values_2[] = $value_2; } $object->setExternalCollaborators($values_2); - } elseif (\array_key_exists('externalCollaborators', $data) && null === $data['externalCollaborators']) { + unset($data['externalCollaborators']); + } elseif (\array_key_exists('externalCollaborators', $data) && $data['externalCollaborators'] === null) { $object->setExternalCollaborators(null); } - if (\array_key_exists('workspaces', $data) && null !== $data['workspaces']) { + if (\array_key_exists('workspaces', $data) && $data['workspaces'] !== null) { $values_3 = []; foreach ($data['workspaces'] as $value_3) { $values_3[] = $value_3; } $object->setWorkspaces($values_3); - } elseif (\array_key_exists('workspaces', $data) && null === $data['workspaces']) { + unset($data['workspaces']); + } elseif (\array_key_exists('workspaces', $data) && $data['workspaces'] === null) { $object->setWorkspaces(null); } + if (\array_key_exists('activeUntil', $data) && $data['activeUntil'] !== null) { + $object->setActiveUntil(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['activeUntil'])); + unset($data['activeUntil']); + } elseif (\array_key_exists('activeUntil', $data) && $data['activeUntil'] === null) { + $object->setActiveUntil(null); + } + foreach ($data as $key => $value_4) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_4; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getAuthorizations()) { + if ($object->isInitialized('authorizations') && null !== $object->getAuthorizations()) { $values = []; foreach ($object->getAuthorizations() as $value) { $values[] = $value; @@ -141,28 +163,41 @@ public function normalize($object, $format = null, array $context = []) $data['authorizations'] = $values; } $data['name'] = $object->getName(); - $data['slug'] = $object->getSlug(); - if (null !== $object->getUsers()) { + if ($object->isInitialized('slug') && null !== $object->getSlug()) { + $data['slug'] = $object->getSlug(); + } + if ($object->isInitialized('stripeCode') && null !== $object->getStripeCode()) { + $data['stripeCode'] = $object->getStripeCode(); + } + if ($object->isInitialized('users') && null !== $object->getUsers()) { $values_1 = []; foreach ($object->getUsers() as $value_1) { $values_1[] = $value_1; } $data['users'] = $values_1; } - if (null !== $object->getExternalCollaborators()) { + if ($object->isInitialized('externalCollaborators') && null !== $object->getExternalCollaborators()) { $values_2 = []; foreach ($object->getExternalCollaborators() as $value_2) { $values_2[] = $value_2; } $data['externalCollaborators'] = $values_2; } - if (null !== $object->getWorkspaces()) { + if ($object->isInitialized('workspaces') && null !== $object->getWorkspaces()) { $values_3 = []; foreach ($object->getWorkspaces() as $value_3) { $values_3[] = $value_3; } $data['workspaces'] = $values_3; } + if ($object->isInitialized('activeUntil') && null !== $object->getActiveUntil()) { + $data['activeUntil'] = $object->getActiveUntil()->format('Y-m-d\\TH:i:sP'); + } + foreach ($object as $key => $value_4) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_4; + } + } return $data; } diff --git a/src/Normalizer/OrganizationNormalizer.php b/src/Normalizer/OrganizationNormalizer.php index 8a9535d0..16f3c3f1 100644 --- a/src/Normalizer/OrganizationNormalizer.php +++ b/src/Normalizer/OrganizationNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class OrganizationNormalizer implements DenormalizerInterface, NormalizerInterfa use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\Organization::class === $type; + return $type === 'Gyroscops\\Api\\Model\\Organization'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\Organization::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\Organization'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,71 +52,92 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('authorizations', $data) && null !== $data['authorizations']) { + if (\array_key_exists('authorizations', $data) && $data['authorizations'] !== null) { $values = []; foreach ($data['authorizations'] as $value) { $values[] = $value; } $object->setAuthorizations($values); - } elseif (\array_key_exists('authorizations', $data) && null === $data['authorizations']) { + unset($data['authorizations']); + } elseif (\array_key_exists('authorizations', $data) && $data['authorizations'] === null) { $object->setAuthorizations(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('slug', $data) && null !== $data['slug']) { + if (\array_key_exists('slug', $data) && $data['slug'] !== null) { $object->setSlug($data['slug']); - } elseif (\array_key_exists('slug', $data) && null === $data['slug']) { + unset($data['slug']); + } elseif (\array_key_exists('slug', $data) && $data['slug'] === null) { $object->setSlug(null); } - if (\array_key_exists('users', $data) && null !== $data['users']) { + if (\array_key_exists('stripeCode', $data) && $data['stripeCode'] !== null) { + $object->setStripeCode($data['stripeCode']); + unset($data['stripeCode']); + } elseif (\array_key_exists('stripeCode', $data) && $data['stripeCode'] === null) { + $object->setStripeCode(null); + } + if (\array_key_exists('users', $data) && $data['users'] !== null) { $values_1 = []; foreach ($data['users'] as $value_1) { $values_1[] = $value_1; } $object->setUsers($values_1); - } elseif (\array_key_exists('users', $data) && null === $data['users']) { + unset($data['users']); + } elseif (\array_key_exists('users', $data) && $data['users'] === null) { $object->setUsers(null); } - if (\array_key_exists('externalCollaborators', $data) && null !== $data['externalCollaborators']) { + if (\array_key_exists('externalCollaborators', $data) && $data['externalCollaborators'] !== null) { $values_2 = []; foreach ($data['externalCollaborators'] as $value_2) { $values_2[] = $value_2; } $object->setExternalCollaborators($values_2); - } elseif (\array_key_exists('externalCollaborators', $data) && null === $data['externalCollaborators']) { + unset($data['externalCollaborators']); + } elseif (\array_key_exists('externalCollaborators', $data) && $data['externalCollaborators'] === null) { $object->setExternalCollaborators(null); } - if (\array_key_exists('workspaces', $data) && null !== $data['workspaces']) { + if (\array_key_exists('workspaces', $data) && $data['workspaces'] !== null) { $values_3 = []; foreach ($data['workspaces'] as $value_3) { $values_3[] = $value_3; } $object->setWorkspaces($values_3); - } elseif (\array_key_exists('workspaces', $data) && null === $data['workspaces']) { + unset($data['workspaces']); + } elseif (\array_key_exists('workspaces', $data) && $data['workspaces'] === null) { $object->setWorkspaces(null); } + if (\array_key_exists('activeUntil', $data) && $data['activeUntil'] !== null) { + $object->setActiveUntil(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['activeUntil'])); + unset($data['activeUntil']); + } elseif (\array_key_exists('activeUntil', $data) && $data['activeUntil'] === null) { + $object->setActiveUntil(null); + } + foreach ($data as $key => $value_4) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_4; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getAuthorizations()) { + if ($object->isInitialized('authorizations') && null !== $object->getAuthorizations()) { $values = []; foreach ($object->getAuthorizations() as $value) { $values[] = $value; @@ -126,28 +145,41 @@ public function normalize($object, $format = null, array $context = []) $data['authorizations'] = $values; } $data['name'] = $object->getName(); - $data['slug'] = $object->getSlug(); - if (null !== $object->getUsers()) { + if ($object->isInitialized('slug') && null !== $object->getSlug()) { + $data['slug'] = $object->getSlug(); + } + if ($object->isInitialized('stripeCode') && null !== $object->getStripeCode()) { + $data['stripeCode'] = $object->getStripeCode(); + } + if ($object->isInitialized('users') && null !== $object->getUsers()) { $values_1 = []; foreach ($object->getUsers() as $value_1) { $values_1[] = $value_1; } $data['users'] = $values_1; } - if (null !== $object->getExternalCollaborators()) { + if ($object->isInitialized('externalCollaborators') && null !== $object->getExternalCollaborators()) { $values_2 = []; foreach ($object->getExternalCollaborators() as $value_2) { $values_2[] = $value_2; } $data['externalCollaborators'] = $values_2; } - if (null !== $object->getWorkspaces()) { + if ($object->isInitialized('workspaces') && null !== $object->getWorkspaces()) { $values_3 = []; foreach ($object->getWorkspaces() as $value_3) { $values_3[] = $value_3; } $data['workspaces'] = $values_3; } + if ($object->isInitialized('activeUntil') && null !== $object->getActiveUntil()) { + $data['activeUntil'] = $object->getActiveUntil()->format('Y-m-d\\TH:i:sP'); + } + foreach ($object as $key => $value_4) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_4; + } + } return $data; } diff --git a/src/Normalizer/PipelineAddAfterPipelineStepCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineAddAfterPipelineStepCommandInputJsonldNormalizer.php index b9cc4926..61271fcf 100644 --- a/src/Normalizer/PipelineAddAfterPipelineStepCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineAddAfterPipelineStepCommandInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineAddAfterPipelineStepCommandInputJsonldNormalizer implements Denorm use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineAddAfterPipelineStepCommandInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineAddAfterPipelineStepCommandInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,61 +52,66 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('code', $data) && null !== $data['code']) { + if (\array_key_exists('code', $data) && $data['code'] !== null) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { $object->setCode(null); } - if (\array_key_exists('label', $data) && null !== $data['label']) { + if (\array_key_exists('label', $data) && $data['label'] !== null) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && null === $data['label']) { + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { $object->setLabel(null); } - if (\array_key_exists('configuration', $data) && null !== $data['configuration']) { + if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['configuration'] as $key => $value) { - $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); - foreach ($value as $key_1 => $value_1) { - $values_1[$key_1] = $value_1; - } - $values[$key] = $values_1; + $values[$key] = $value; } $object->setConfiguration($values); - } elseif (\array_key_exists('configuration', $data) && null === $data['configuration']) { + unset($data['configuration']); + } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { $object->setConfiguration(null); } - if (\array_key_exists('probes', $data) && null !== $data['probes']) { - $values_2 = []; - foreach ($data['probes'] as $value_2) { - $values_2[] = $this->denormalizer->denormalize($value_2, \Gyroscops\Api\Model\ProbeJsonld::class, 'json', $context); + if (\array_key_exists('probes', $data) && $data['probes'] !== null) { + $values_1 = []; + foreach ($data['probes'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'Gyroscops\\Api\\Model\\ProbeJsonld', 'json', $context); } - $object->setProbes($values_2); - } elseif (\array_key_exists('probes', $data) && null === $data['probes']) { + $object->setProbes($values_1); + unset($data['probes']); + } elseif (\array_key_exists('probes', $data) && $data['probes'] === null) { $object->setProbes(null); } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -118,19 +121,18 @@ public function normalize($object, $format = null, array $context = []) $data['label'] = $object->getLabel(); $values = []; foreach ($object->getConfiguration() as $key => $value) { - $values_1 = []; - foreach ($value as $key_1 => $value_1) { - $values_1[$key_1] = $value_1; - } - $values[$key] = $values_1; + $values[$key] = $value; } $data['configuration'] = $values; - if (null !== $object->getProbes()) { - $values_2 = []; - foreach ($object->getProbes() as $value_2) { - $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); + $values_1 = []; + foreach ($object->getProbes() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['probes'] = $values_1; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; } - $data['probes'] = $values_2; } return $data; diff --git a/src/Normalizer/PipelineAddAfterPipelineStepCommandInputNormalizer.php b/src/Normalizer/PipelineAddAfterPipelineStepCommandInputNormalizer.php index a52e4280..4ea37778 100644 --- a/src/Normalizer/PipelineAddAfterPipelineStepCommandInputNormalizer.php +++ b/src/Normalizer/PipelineAddAfterPipelineStepCommandInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineAddAfterPipelineStepCommandInputNormalizer implements Denormalizer use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineAddAfterPipelineStepCommandInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineAddAfterPipelineStepCommandInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,46 +52,48 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('code', $data) && null !== $data['code']) { + if (\array_key_exists('code', $data) && $data['code'] !== null) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { $object->setCode(null); } - if (\array_key_exists('label', $data) && null !== $data['label']) { + if (\array_key_exists('label', $data) && $data['label'] !== null) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && null === $data['label']) { + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { $object->setLabel(null); } - if (\array_key_exists('configuration', $data) && null !== $data['configuration']) { + if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['configuration'] as $key => $value) { - $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); - foreach ($value as $key_1 => $value_1) { - $values_1[$key_1] = $value_1; - } - $values[$key] = $values_1; + $values[$key] = $value; } $object->setConfiguration($values); - } elseif (\array_key_exists('configuration', $data) && null === $data['configuration']) { + unset($data['configuration']); + } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { $object->setConfiguration(null); } - if (\array_key_exists('probes', $data) && null !== $data['probes']) { - $values_2 = []; - foreach ($data['probes'] as $value_2) { - $values_2[] = $this->denormalizer->denormalize($value_2, \Gyroscops\Api\Model\Probe::class, 'json', $context); + if (\array_key_exists('probes', $data) && $data['probes'] !== null) { + $values_1 = []; + foreach ($data['probes'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'Gyroscops\\Api\\Model\\Probe', 'json', $context); } - $object->setProbes($values_2); - } elseif (\array_key_exists('probes', $data) && null === $data['probes']) { + $object->setProbes($values_1); + unset($data['probes']); + } elseif (\array_key_exists('probes', $data) && $data['probes'] === null) { $object->setProbes(null); } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -103,19 +103,18 @@ public function normalize($object, $format = null, array $context = []) $data['label'] = $object->getLabel(); $values = []; foreach ($object->getConfiguration() as $key => $value) { - $values_1 = []; - foreach ($value as $key_1 => $value_1) { - $values_1[$key_1] = $value_1; - } - $values[$key] = $values_1; + $values[$key] = $value; } $data['configuration'] = $values; - if (null !== $object->getProbes()) { - $values_2 = []; - foreach ($object->getProbes() as $value_2) { - $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); + $values_1 = []; + foreach ($object->getProbes() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['probes'] = $values_1; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; } - $data['probes'] = $values_2; } return $data; diff --git a/src/Normalizer/PipelineAddAfterPipelineStepCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineAddAfterPipelineStepCommandJsonldReadNormalizer.php index 6e956af1..9453475b 100644 --- a/src/Normalizer/PipelineAddAfterPipelineStepCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineAddAfterPipelineStepCommandJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineAddAfterPipelineStepCommandJsonldReadNormalizer implements Denorma use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineAddAfterPipelineStepCommandJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineAddAfterPipelineStepCommandJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineAddAfterPipelineStepCommandJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/PipelineAddBeforePipelineStepCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineAddBeforePipelineStepCommandInputJsonldNormalizer.php index 7f1451d9..a4b3114b 100644 --- a/src/Normalizer/PipelineAddBeforePipelineStepCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineAddBeforePipelineStepCommandInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineAddBeforePipelineStepCommandInputJsonldNormalizer implements Denor use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineAddBeforePipelineStepCommandInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineAddBeforePipelineStepCommandInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,61 +52,66 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('code', $data) && null !== $data['code']) { + if (\array_key_exists('code', $data) && $data['code'] !== null) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { $object->setCode(null); } - if (\array_key_exists('label', $data) && null !== $data['label']) { + if (\array_key_exists('label', $data) && $data['label'] !== null) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && null === $data['label']) { + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { $object->setLabel(null); } - if (\array_key_exists('configuration', $data) && null !== $data['configuration']) { + if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['configuration'] as $key => $value) { - $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); - foreach ($value as $key_1 => $value_1) { - $values_1[$key_1] = $value_1; - } - $values[$key] = $values_1; + $values[$key] = $value; } $object->setConfiguration($values); - } elseif (\array_key_exists('configuration', $data) && null === $data['configuration']) { + unset($data['configuration']); + } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { $object->setConfiguration(null); } - if (\array_key_exists('probes', $data) && null !== $data['probes']) { - $values_2 = []; - foreach ($data['probes'] as $value_2) { - $values_2[] = $this->denormalizer->denormalize($value_2, \Gyroscops\Api\Model\ProbeJsonld::class, 'json', $context); + if (\array_key_exists('probes', $data) && $data['probes'] !== null) { + $values_1 = []; + foreach ($data['probes'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'Gyroscops\\Api\\Model\\ProbeJsonld', 'json', $context); } - $object->setProbes($values_2); - } elseif (\array_key_exists('probes', $data) && null === $data['probes']) { + $object->setProbes($values_1); + unset($data['probes']); + } elseif (\array_key_exists('probes', $data) && $data['probes'] === null) { $object->setProbes(null); } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -118,19 +121,18 @@ public function normalize($object, $format = null, array $context = []) $data['label'] = $object->getLabel(); $values = []; foreach ($object->getConfiguration() as $key => $value) { - $values_1 = []; - foreach ($value as $key_1 => $value_1) { - $values_1[$key_1] = $value_1; - } - $values[$key] = $values_1; + $values[$key] = $value; } $data['configuration'] = $values; - if (null !== $object->getProbes()) { - $values_2 = []; - foreach ($object->getProbes() as $value_2) { - $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); + $values_1 = []; + foreach ($object->getProbes() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['probes'] = $values_1; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; } - $data['probes'] = $values_2; } return $data; diff --git a/src/Normalizer/PipelineAddBeforePipelineStepCommandInputNormalizer.php b/src/Normalizer/PipelineAddBeforePipelineStepCommandInputNormalizer.php index 782b46bc..a51ba752 100644 --- a/src/Normalizer/PipelineAddBeforePipelineStepCommandInputNormalizer.php +++ b/src/Normalizer/PipelineAddBeforePipelineStepCommandInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineAddBeforePipelineStepCommandInputNormalizer implements Denormalize use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineAddBeforePipelineStepCommandInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineAddBeforePipelineStepCommandInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,46 +52,48 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('code', $data) && null !== $data['code']) { + if (\array_key_exists('code', $data) && $data['code'] !== null) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { $object->setCode(null); } - if (\array_key_exists('label', $data) && null !== $data['label']) { + if (\array_key_exists('label', $data) && $data['label'] !== null) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && null === $data['label']) { + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { $object->setLabel(null); } - if (\array_key_exists('configuration', $data) && null !== $data['configuration']) { + if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['configuration'] as $key => $value) { - $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); - foreach ($value as $key_1 => $value_1) { - $values_1[$key_1] = $value_1; - } - $values[$key] = $values_1; + $values[$key] = $value; } $object->setConfiguration($values); - } elseif (\array_key_exists('configuration', $data) && null === $data['configuration']) { + unset($data['configuration']); + } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { $object->setConfiguration(null); } - if (\array_key_exists('probes', $data) && null !== $data['probes']) { - $values_2 = []; - foreach ($data['probes'] as $value_2) { - $values_2[] = $this->denormalizer->denormalize($value_2, \Gyroscops\Api\Model\Probe::class, 'json', $context); + if (\array_key_exists('probes', $data) && $data['probes'] !== null) { + $values_1 = []; + foreach ($data['probes'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'Gyroscops\\Api\\Model\\Probe', 'json', $context); } - $object->setProbes($values_2); - } elseif (\array_key_exists('probes', $data) && null === $data['probes']) { + $object->setProbes($values_1); + unset($data['probes']); + } elseif (\array_key_exists('probes', $data) && $data['probes'] === null) { $object->setProbes(null); } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -103,19 +103,18 @@ public function normalize($object, $format = null, array $context = []) $data['label'] = $object->getLabel(); $values = []; foreach ($object->getConfiguration() as $key => $value) { - $values_1 = []; - foreach ($value as $key_1 => $value_1) { - $values_1[$key_1] = $value_1; - } - $values[$key] = $values_1; + $values[$key] = $value; } $data['configuration'] = $values; - if (null !== $object->getProbes()) { - $values_2 = []; - foreach ($object->getProbes() as $value_2) { - $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); + $values_1 = []; + foreach ($object->getProbes() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['probes'] = $values_1; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; } - $data['probes'] = $values_2; } return $data; diff --git a/src/Normalizer/PipelineAddBeforePipelineStepCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineAddBeforePipelineStepCommandJsonldReadNormalizer.php index 29219205..3216f425 100644 --- a/src/Normalizer/PipelineAddBeforePipelineStepCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineAddBeforePipelineStepCommandJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineAddBeforePipelineStepCommandJsonldReadNormalizer implements Denorm use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineAddBeforePipelineStepCommandJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineAddBeforePipelineStepCommandJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineAddBeforePipelineStepCommandJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/PipelineAddPipelineComposerAuthCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineAddPipelineComposerAuthCommandInputJsonldNormalizer.php index 2dfc4856..fc810cba 100644 --- a/src/Normalizer/PipelineAddPipelineComposerAuthCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineAddPipelineComposerAuthCommandInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineAddPipelineComposerAuthCommandInputJsonldNormalizer implements Den use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerAuthCommandInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerAuthCommandInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,49 +52,59 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('url', $data) && null !== $data['url']) { + if (\array_key_exists('url', $data) && $data['url'] !== null) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && null === $data['url']) { + unset($data['url']); + } elseif (\array_key_exists('url', $data) && $data['url'] === null) { $object->setUrl(null); } - if (\array_key_exists('token', $data) && null !== $data['token']) { + if (\array_key_exists('token', $data) && $data['token'] !== null) { $object->setToken($data['token']); - } elseif (\array_key_exists('token', $data) && null === $data['token']) { + unset($data['token']); + } elseif (\array_key_exists('token', $data) && $data['token'] === null) { $object->setToken(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getUrl()) { + if ($object->isInitialized('url') && null !== $object->getUrl()) { $data['url'] = $object->getUrl(); } - if (null !== $object->getToken()) { - $data['token'] = $object->getToken(); + $data['token'] = $object->getToken(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } return $data; diff --git a/src/Normalizer/PipelineAddPipelineComposerAuthCommandInputNormalizer.php b/src/Normalizer/PipelineAddPipelineComposerAuthCommandInputNormalizer.php index d291b38c..8d7fc6bc 100644 --- a/src/Normalizer/PipelineAddPipelineComposerAuthCommandInputNormalizer.php +++ b/src/Normalizer/PipelineAddPipelineComposerAuthCommandInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineAddPipelineComposerAuthCommandInputNormalizer implements Denormali use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerAuthCommandInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerAuthCommandInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,34 +52,41 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('url', $data) && null !== $data['url']) { + if (\array_key_exists('url', $data) && $data['url'] !== null) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && null === $data['url']) { + unset($data['url']); + } elseif (\array_key_exists('url', $data) && $data['url'] === null) { $object->setUrl(null); } - if (\array_key_exists('token', $data) && null !== $data['token']) { + if (\array_key_exists('token', $data) && $data['token'] !== null) { $object->setToken($data['token']); - } elseif (\array_key_exists('token', $data) && null === $data['token']) { + unset($data['token']); + } elseif (\array_key_exists('token', $data) && $data['token'] === null) { $object->setToken(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getUrl()) { + if ($object->isInitialized('url') && null !== $object->getUrl()) { $data['url'] = $object->getUrl(); } - if (null !== $object->getToken()) { - $data['token'] = $object->getToken(); + $data['token'] = $object->getToken(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } return $data; diff --git a/src/Normalizer/PipelineAddPipelineComposerAuthCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineAddPipelineComposerAuthCommandJsonldReadNormalizer.php index ef26ff6e..8bd2b2f9 100644 --- a/src/Normalizer/PipelineAddPipelineComposerAuthCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineAddPipelineComposerAuthCommandJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineAddPipelineComposerAuthCommandJsonldReadNormalizer implements Deno use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerAuthCommandJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineAddPipelineComposerAuthCommandJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerAuthCommandJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonldNormalizer.php index a8905153..cc91cc95 100644 --- a/src/Normalizer/PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonldNormalizer implem use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerPSR4AutoloadCommandInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,43 +52,50 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('namespace', $data) && null !== $data['namespace']) { + if (\array_key_exists('namespace', $data) && $data['namespace'] !== null) { $object->setNamespace($data['namespace']); - } elseif (\array_key_exists('namespace', $data) && null === $data['namespace']) { + unset($data['namespace']); + } elseif (\array_key_exists('namespace', $data) && $data['namespace'] === null) { $object->setNamespace(null); } - if (\array_key_exists('paths', $data) && null !== $data['paths']) { + if (\array_key_exists('paths', $data) && $data['paths'] !== null) { $values = []; foreach ($data['paths'] as $value) { $values[] = $value; } $object->setPaths($values); - } elseif (\array_key_exists('paths', $data) && null === $data['paths']) { + unset($data['paths']); + } elseif (\array_key_exists('paths', $data) && $data['paths'] === null) { $object->setPaths(null); } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -102,6 +107,11 @@ public function normalize($object, $format = null, array $context = []) $values[] = $value; } $data['paths'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/PipelineAddPipelineComposerPSR4AutoloadCommandInputNormalizer.php b/src/Normalizer/PipelineAddPipelineComposerPSR4AutoloadCommandInputNormalizer.php index 35731e2c..2cc80e5d 100644 --- a/src/Normalizer/PipelineAddPipelineComposerPSR4AutoloadCommandInputNormalizer.php +++ b/src/Normalizer/PipelineAddPipelineComposerPSR4AutoloadCommandInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineAddPipelineComposerPSR4AutoloadCommandInputNormalizer implements D use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerPSR4AutoloadCommandInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerPSR4AutoloadCommandInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,28 +52,32 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('namespace', $data) && null !== $data['namespace']) { + if (\array_key_exists('namespace', $data) && $data['namespace'] !== null) { $object->setNamespace($data['namespace']); - } elseif (\array_key_exists('namespace', $data) && null === $data['namespace']) { + unset($data['namespace']); + } elseif (\array_key_exists('namespace', $data) && $data['namespace'] === null) { $object->setNamespace(null); } - if (\array_key_exists('paths', $data) && null !== $data['paths']) { + if (\array_key_exists('paths', $data) && $data['paths'] !== null) { $values = []; foreach ($data['paths'] as $value) { $values[] = $value; } $object->setPaths($values); - } elseif (\array_key_exists('paths', $data) && null === $data['paths']) { + unset($data['paths']); + } elseif (\array_key_exists('paths', $data) && $data['paths'] === null) { $object->setPaths(null); } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -87,6 +89,11 @@ public function normalize($object, $format = null, array $context = []) $values[] = $value; } $data['paths'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/PipelineAddPipelineComposerPSR4AutoloadCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineAddPipelineComposerPSR4AutoloadCommandJsonldReadNormalizer.php index bafc401b..cb2d78b7 100644 --- a/src/Normalizer/PipelineAddPipelineComposerPSR4AutoloadCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineAddPipelineComposerPSR4AutoloadCommandJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineAddPipelineComposerPSR4AutoloadCommandJsonldReadNormalizer impleme use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerPSR4AutoloadCommandJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineAddPipelineComposerPSR4AutoloadCommandJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerPSR4AutoloadCommandJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/PipelineAddPipelineComposerPackageCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineAddPipelineComposerPackageCommandInputJsonldNormalizer.php index c2e69502..e6f0a069 100644 --- a/src/Normalizer/PipelineAddPipelineComposerPackageCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineAddPipelineComposerPackageCommandInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineAddPipelineComposerPackageCommandInputJsonldNormalizer implements use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerPackageCommandInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerPackageCommandInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,49 +52,57 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('package', $data) && null !== $data['package']) { + if (\array_key_exists('package', $data) && $data['package'] !== null) { $object->setPackage($data['package']); - } elseif (\array_key_exists('package', $data) && null === $data['package']) { + unset($data['package']); + } elseif (\array_key_exists('package', $data) && $data['package'] === null) { $object->setPackage(null); } - if (\array_key_exists('version', $data) && null !== $data['version']) { + if (\array_key_exists('version', $data) && $data['version'] !== null) { $object->setVersion($data['version']); - } elseif (\array_key_exists('version', $data) && null === $data['version']) { + unset($data['version']); + } elseif (\array_key_exists('version', $data) && $data['version'] === null) { $object->setVersion(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getPackage()) { - $data['package'] = $object->getPackage(); - } - if (null !== $object->getVersion()) { - $data['version'] = $object->getVersion(); + $data['package'] = $object->getPackage(); + $data['version'] = $object->getVersion(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } return $data; diff --git a/src/Normalizer/PipelineAddPipelineComposerPackageCommandInputNormalizer.php b/src/Normalizer/PipelineAddPipelineComposerPackageCommandInputNormalizer.php index 30e97f38..18103ccf 100644 --- a/src/Normalizer/PipelineAddPipelineComposerPackageCommandInputNormalizer.php +++ b/src/Normalizer/PipelineAddPipelineComposerPackageCommandInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineAddPipelineComposerPackageCommandInputNormalizer implements Denorm use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerPackageCommandInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerPackageCommandInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,34 +52,39 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('package', $data) && null !== $data['package']) { + if (\array_key_exists('package', $data) && $data['package'] !== null) { $object->setPackage($data['package']); - } elseif (\array_key_exists('package', $data) && null === $data['package']) { + unset($data['package']); + } elseif (\array_key_exists('package', $data) && $data['package'] === null) { $object->setPackage(null); } - if (\array_key_exists('version', $data) && null !== $data['version']) { + if (\array_key_exists('version', $data) && $data['version'] !== null) { $object->setVersion($data['version']); - } elseif (\array_key_exists('version', $data) && null === $data['version']) { + unset($data['version']); + } elseif (\array_key_exists('version', $data) && $data['version'] === null) { $object->setVersion(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getPackage()) { - $data['package'] = $object->getPackage(); - } - if (null !== $object->getVersion()) { - $data['version'] = $object->getVersion(); + $data['package'] = $object->getPackage(); + $data['version'] = $object->getVersion(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } return $data; diff --git a/src/Normalizer/PipelineAddPipelineComposerPackageCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineAddPipelineComposerPackageCommandJsonldReadNormalizer.php index 5a3a3f76..58809651 100644 --- a/src/Normalizer/PipelineAddPipelineComposerPackageCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineAddPipelineComposerPackageCommandJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineAddPipelineComposerPackageCommandJsonldReadNormalizer implements D use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerPackageCommandJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineAddPipelineComposerPackageCommandJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerPackageCommandJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/PipelineAddPipelineComposerRepositoryCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineAddPipelineComposerRepositoryCommandInputJsonldNormalizer.php index 80d08791..b5c85a21 100644 --- a/src/Normalizer/PipelineAddPipelineComposerRepositoryCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineAddPipelineComposerRepositoryCommandInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineAddPipelineComposerRepositoryCommandInputJsonldNormalizer implemen use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerRepositoryCommandInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerRepositoryCommandInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,57 +52,64 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('type', $data) && null !== $data['type']) { + if (\array_key_exists('type', $data) && $data['type'] !== null) { $object->setType2($data['type']); - } elseif (\array_key_exists('type', $data) && null === $data['type']) { + unset($data['type']); + } elseif (\array_key_exists('type', $data) && $data['type'] === null) { $object->setType2(null); } - if (\array_key_exists('url', $data) && null !== $data['url']) { + if (\array_key_exists('url', $data) && $data['url'] !== null) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && null === $data['url']) { + unset($data['url']); + } elseif (\array_key_exists('url', $data) && $data['url'] === null) { $object->setUrl(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { - $data['name'] = $object->getName(); - } - if (null !== $object->getType2()) { - $data['type'] = $object->getType2(); - } - if (null !== $object->getUrl()) { - $data['url'] = $object->getUrl(); + $data['name'] = $object->getName(); + $data['type'] = $object->getType2(); + $data['url'] = $object->getUrl(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } return $data; diff --git a/src/Normalizer/PipelineAddPipelineComposerRepositoryCommandInputNormalizer.php b/src/Normalizer/PipelineAddPipelineComposerRepositoryCommandInputNormalizer.php index 97662b18..fe45d120 100644 --- a/src/Normalizer/PipelineAddPipelineComposerRepositoryCommandInputNormalizer.php +++ b/src/Normalizer/PipelineAddPipelineComposerRepositoryCommandInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineAddPipelineComposerRepositoryCommandInputNormalizer implements Den use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerRepositoryCommandInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerRepositoryCommandInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,42 +52,46 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('type', $data) && null !== $data['type']) { + if (\array_key_exists('type', $data) && $data['type'] !== null) { $object->setType($data['type']); - } elseif (\array_key_exists('type', $data) && null === $data['type']) { + unset($data['type']); + } elseif (\array_key_exists('type', $data) && $data['type'] === null) { $object->setType(null); } - if (\array_key_exists('url', $data) && null !== $data['url']) { + if (\array_key_exists('url', $data) && $data['url'] !== null) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && null === $data['url']) { + unset($data['url']); + } elseif (\array_key_exists('url', $data) && $data['url'] === null) { $object->setUrl(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { - $data['name'] = $object->getName(); - } - if (null !== $object->getType()) { - $data['type'] = $object->getType(); - } - if (null !== $object->getUrl()) { - $data['url'] = $object->getUrl(); + $data['name'] = $object->getName(); + $data['type'] = $object->getType(); + $data['url'] = $object->getUrl(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } return $data; diff --git a/src/Normalizer/PipelineAddPipelineComposerRepositoryCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineAddPipelineComposerRepositoryCommandJsonldReadNormalizer.php index 220cd145..0e7efca7 100644 --- a/src/Normalizer/PipelineAddPipelineComposerRepositoryCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineAddPipelineComposerRepositoryCommandJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineAddPipelineComposerRepositoryCommandJsonldReadNormalizer implement use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerRepositoryCommandJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineAddPipelineComposerRepositoryCommandJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineAddPipelineComposerRepositoryCommandJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/PipelineAddPipelineStepProbCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineAddPipelineStepProbCommandInputJsonldNormalizer.php deleted file mode 100644 index 86b14dba..00000000 --- a/src/Normalizer/PipelineAddPipelineStepProbCommandInputJsonldNormalizer.php +++ /dev/null @@ -1,94 +0,0 @@ -setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { - $object->setContext(null); - } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { - $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('probe', $data) && null !== $data['probe']) { - $object->setProbe($this->denormalizer->denormalize($data['probe'], \Gyroscops\Api\Model\ProbeJsonld::class, 'json', $context)); - } elseif (\array_key_exists('probe', $data) && null === $data['probe']) { - $object->setProbe(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $data['probe'] = $this->normalizer->normalize($object->getProbe(), 'json', $context); - - return $data; - } -} diff --git a/src/Normalizer/PipelineAddPipelineStepProbCommandInputNormalizer.php b/src/Normalizer/PipelineAddPipelineStepProbCommandInputNormalizer.php deleted file mode 100644 index 1a762d4e..00000000 --- a/src/Normalizer/PipelineAddPipelineStepProbCommandInputNormalizer.php +++ /dev/null @@ -1,79 +0,0 @@ -setProbe($this->denormalizer->denormalize($data['probe'], \Gyroscops\Api\Model\Probe::class, 'json', $context)); - } elseif (\array_key_exists('probe', $data) && null === $data['probe']) { - $object->setProbe(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $data['probe'] = $this->normalizer->normalize($object->getProbe(), 'json', $context); - - return $data; - } -} diff --git a/src/Normalizer/PipelineAddPipelineStepProbeCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineAddPipelineStepProbeCommandInputJsonldNormalizer.php new file mode 100644 index 00000000..6cae9b6f --- /dev/null +++ b/src/Normalizer/PipelineAddPipelineStepProbeCommandInputJsonldNormalizer.php @@ -0,0 +1,103 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('probe', $data) && $data['probe'] !== null) { + $object->setProbe($this->denormalizer->denormalize($data['probe'], 'Gyroscops\\Api\\Model\\ProbeJsonld', 'json', $context)); + unset($data['probe']); + } elseif (\array_key_exists('probe', $data) && $data['probe'] === null) { + $object->setProbe(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['probe'] = $this->normalizer->normalize($object->getProbe(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/PipelineAddPipelineStepProbeCommandInputNormalizer.php b/src/Normalizer/PipelineAddPipelineStepProbeCommandInputNormalizer.php new file mode 100644 index 00000000..b76f0e40 --- /dev/null +++ b/src/Normalizer/PipelineAddPipelineStepProbeCommandInputNormalizer.php @@ -0,0 +1,85 @@ +setProbe($this->denormalizer->denormalize($data['probe'], 'Gyroscops\\Api\\Model\\Probe', 'json', $context)); + unset($data['probe']); + } elseif (\array_key_exists('probe', $data) && $data['probe'] === null) { + $object->setProbe(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['probe'] = $this->normalizer->normalize($object->getProbe(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/PipelineAddPipelineStepProbeCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineAddPipelineStepProbeCommandJsonldReadNormalizer.php index 1bf6c3ab..5dbf5968 100644 --- a/src/Normalizer/PipelineAddPipelineStepProbeCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineAddPipelineStepProbeCommandJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineAddPipelineStepProbeCommandJsonldReadNormalizer implements Denorma use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineAddPipelineStepProbeCommandJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineAddPipelineStepProbeCommandJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineAddPipelineStepProbeCommandJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineAddPipelineStepProbeCommandJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/PipelineAppendPipelineStepCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineAppendPipelineStepCommandInputJsonldNormalizer.php index e468610e..0a440939 100644 --- a/src/Normalizer/PipelineAppendPipelineStepCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineAppendPipelineStepCommandInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineAppendPipelineStepCommandInputJsonldNormalizer implements Denormal use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineAppendPipelineStepCommandInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineAppendPipelineStepCommandInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,61 +52,66 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('code', $data) && null !== $data['code']) { + if (\array_key_exists('code', $data) && $data['code'] !== null) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { $object->setCode(null); } - if (\array_key_exists('label', $data) && null !== $data['label']) { + if (\array_key_exists('label', $data) && $data['label'] !== null) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && null === $data['label']) { + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { $object->setLabel(null); } - if (\array_key_exists('configuration', $data) && null !== $data['configuration']) { + if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['configuration'] as $key => $value) { - $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); - foreach ($value as $key_1 => $value_1) { - $values_1[$key_1] = $value_1; - } - $values[$key] = $values_1; + $values[$key] = $value; } $object->setConfiguration($values); - } elseif (\array_key_exists('configuration', $data) && null === $data['configuration']) { + unset($data['configuration']); + } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { $object->setConfiguration(null); } - if (\array_key_exists('probes', $data) && null !== $data['probes']) { - $values_2 = []; - foreach ($data['probes'] as $value_2) { - $values_2[] = $this->denormalizer->denormalize($value_2, \Gyroscops\Api\Model\ProbeJsonld::class, 'json', $context); + if (\array_key_exists('probes', $data) && $data['probes'] !== null) { + $values_1 = []; + foreach ($data['probes'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'Gyroscops\\Api\\Model\\ProbeJsonld', 'json', $context); } - $object->setProbes($values_2); - } elseif (\array_key_exists('probes', $data) && null === $data['probes']) { + $object->setProbes($values_1); + unset($data['probes']); + } elseif (\array_key_exists('probes', $data) && $data['probes'] === null) { $object->setProbes(null); } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -118,19 +121,18 @@ public function normalize($object, $format = null, array $context = []) $data['label'] = $object->getLabel(); $values = []; foreach ($object->getConfiguration() as $key => $value) { - $values_1 = []; - foreach ($value as $key_1 => $value_1) { - $values_1[$key_1] = $value_1; - } - $values[$key] = $values_1; + $values[$key] = $value; } $data['configuration'] = $values; - if (null !== $object->getProbes()) { - $values_2 = []; - foreach ($object->getProbes() as $value_2) { - $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); + $values_1 = []; + foreach ($object->getProbes() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['probes'] = $values_1; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; } - $data['probes'] = $values_2; } return $data; diff --git a/src/Normalizer/PipelineAppendPipelineStepCommandInputNormalizer.php b/src/Normalizer/PipelineAppendPipelineStepCommandInputNormalizer.php index 8ad1b87a..ebf4d470 100644 --- a/src/Normalizer/PipelineAppendPipelineStepCommandInputNormalizer.php +++ b/src/Normalizer/PipelineAppendPipelineStepCommandInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineAppendPipelineStepCommandInputNormalizer implements DenormalizerIn use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineAppendPipelineStepCommandInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineAppendPipelineStepCommandInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,46 +52,48 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('code', $data) && null !== $data['code']) { + if (\array_key_exists('code', $data) && $data['code'] !== null) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { $object->setCode(null); } - if (\array_key_exists('label', $data) && null !== $data['label']) { + if (\array_key_exists('label', $data) && $data['label'] !== null) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && null === $data['label']) { + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { $object->setLabel(null); } - if (\array_key_exists('configuration', $data) && null !== $data['configuration']) { + if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['configuration'] as $key => $value) { - $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); - foreach ($value as $key_1 => $value_1) { - $values_1[$key_1] = $value_1; - } - $values[$key] = $values_1; + $values[$key] = $value; } $object->setConfiguration($values); - } elseif (\array_key_exists('configuration', $data) && null === $data['configuration']) { + unset($data['configuration']); + } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { $object->setConfiguration(null); } - if (\array_key_exists('probes', $data) && null !== $data['probes']) { - $values_2 = []; - foreach ($data['probes'] as $value_2) { - $values_2[] = $this->denormalizer->denormalize($value_2, \Gyroscops\Api\Model\Probe::class, 'json', $context); + if (\array_key_exists('probes', $data) && $data['probes'] !== null) { + $values_1 = []; + foreach ($data['probes'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'Gyroscops\\Api\\Model\\Probe', 'json', $context); } - $object->setProbes($values_2); - } elseif (\array_key_exists('probes', $data) && null === $data['probes']) { + $object->setProbes($values_1); + unset($data['probes']); + } elseif (\array_key_exists('probes', $data) && $data['probes'] === null) { $object->setProbes(null); } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -103,19 +103,18 @@ public function normalize($object, $format = null, array $context = []) $data['label'] = $object->getLabel(); $values = []; foreach ($object->getConfiguration() as $key => $value) { - $values_1 = []; - foreach ($value as $key_1 => $value_1) { - $values_1[$key_1] = $value_1; - } - $values[$key] = $values_1; + $values[$key] = $value; } $data['configuration'] = $values; - if (null !== $object->getProbes()) { - $values_2 = []; - foreach ($object->getProbes() as $value_2) { - $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); + $values_1 = []; + foreach ($object->getProbes() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['probes'] = $values_1; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; } - $data['probes'] = $values_2; } return $data; diff --git a/src/Normalizer/PipelineAppendPipelineStepCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineAppendPipelineStepCommandJsonldReadNormalizer.php index 9904048b..e8779e4d 100644 --- a/src/Normalizer/PipelineAppendPipelineStepCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineAppendPipelineStepCommandJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineAppendPipelineStepCommandJsonldReadNormalizer implements Denormali use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineAppendPipelineStepCommandJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineAppendPipelineStepCommandJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineAppendPipelineStepCommandJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/PipelineCompilePipelineCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineCompilePipelineCommandInputJsonldNormalizer.php index 89c18872..e763a2e2 100644 --- a/src/Normalizer/PipelineCompilePipelineCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineCompilePipelineCommandInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineCompilePipelineCommandInputJsonldNormalizer implements Denormalize use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineCompilePipelineCommandInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineCompilePipelineCommandInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineCompilePipelineCommandInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineCompilePipelineCommandInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/PipelineCompilePipelineCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineCompilePipelineCommandJsonldReadNormalizer.php index 22c0b435..b2cabe7f 100644 --- a/src/Normalizer/PipelineCompilePipelineCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineCompilePipelineCommandJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineCompilePipelineCommandJsonldReadNormalizer implements Denormalizer use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineCompilePipelineCommandJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineCompilePipelineCommandJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineCompilePipelineCommandJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineCompilePipelineCommandJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/PipelineDeclarePipelineCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineDeclarePipelineCommandInputJsonldNormalizer.php index 7e87c24f..6dc0d31e 100644 --- a/src/Normalizer/PipelineDeclarePipelineCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineDeclarePipelineCommandInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineDeclarePipelineCommandInputJsonldNormalizer implements Denormalize use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineDeclarePipelineCommandInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineDeclarePipelineCommandInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineDeclarePipelineCommandInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineDeclarePipelineCommandInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,123 +52,79 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('label', $data) && null !== $data['label']) { - $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && null === $data['label']) { - $object->setLabel(null); - } - if (\array_key_exists('code', $data) && null !== $data['code']) { - $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { - $object->setCode(null); - } - if (\array_key_exists('steps', $data) && null !== $data['steps']) { + if (\array_key_exists('steps', $data) && $data['steps'] !== null) { $values = []; foreach ($data['steps'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\StepInputJsonld::class, 'json', $context); + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\StepJsonld', 'json', $context); } $object->setSteps($values); - } elseif (\array_key_exists('steps', $data) && null === $data['steps']) { + unset($data['steps']); + } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { $object->setSteps(null); } - if (\array_key_exists('autoloads', $data) && null !== $data['autoloads']) { - $values_1 = []; - foreach ($data['autoloads'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, \Gyroscops\Api\Model\AutoloadInputJsonld::class, 'json', $context); - } - $object->setAutoloads($values_1); - } elseif (\array_key_exists('autoloads', $data) && null === $data['autoloads']) { - $object->setAutoloads(null); + if (\array_key_exists('composer', $data) && $data['composer'] !== null) { + $object->setComposer($this->denormalizer->denormalize($data['composer'], 'Gyroscops\\Api\\Model\\ComposerJsonld', 'json', $context)); + unset($data['composer']); + } elseif (\array_key_exists('composer', $data) && $data['composer'] === null) { + $object->setComposer(null); } - if (\array_key_exists('packages', $data) && null !== $data['packages']) { - $values_2 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); - foreach ($data['packages'] as $key => $value_2) { - $values_2[$key] = $value_2; - } - $object->setPackages($values_2); - } elseif (\array_key_exists('packages', $data) && null === $data['packages']) { - $object->setPackages(null); + if (\array_key_exists('code', $data) && $data['code'] !== null) { + $object->setCode($data['code']); + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + $object->setCode(null); } - if (\array_key_exists('repositories', $data) && null !== $data['repositories']) { - $values_3 = []; - foreach ($data['repositories'] as $value_3) { - $values_3[] = $this->denormalizer->denormalize($value_3, \Gyroscops\Api\Model\AddPipelineComposerRepositoryCommandInputJsonld::class, 'json', $context); - } - $object->setRepositories($values_3); - } elseif (\array_key_exists('repositories', $data) && null === $data['repositories']) { - $object->setRepositories(null); + if (\array_key_exists('label', $data) && $data['label'] !== null) { + $object->setLabel($data['label']); + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + $object->setLabel(null); } - if (\array_key_exists('auths', $data) && null !== $data['auths']) { - $values_4 = []; - foreach ($data['auths'] as $value_4) { - $values_4[] = $this->denormalizer->denormalize($value_4, \Gyroscops\Api\Model\AddPipelineComposerAuthCommandInputJsonld::class, 'json', $context); + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; } - $object->setAuths($values_4); - } elseif (\array_key_exists('auths', $data) && null === $data['auths']) { - $object->setAuths(null); } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - $data['label'] = $object->getLabel(); - $data['code'] = $object->getCode(); $values = []; foreach ($object->getSteps() as $value) { $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['steps'] = $values; - if (null !== $object->getAutoloads()) { - $values_1 = []; - foreach ($object->getAutoloads() as $value_1) { - $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); - } - $data['autoloads'] = $values_1; - } - if (null !== $object->getPackages()) { - $values_2 = []; - foreach ($object->getPackages() as $key => $value_2) { - $values_2[$key] = $value_2; - } - $data['packages'] = $values_2; - } - if (null !== $object->getRepositories()) { - $values_3 = []; - foreach ($object->getRepositories() as $value_3) { - $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); - } - $data['repositories'] = $values_3; - } - if (null !== $object->getAuths()) { - $values_4 = []; - foreach ($object->getAuths() as $value_4) { - $values_4[] = $this->normalizer->normalize($value_4, 'json', $context); + $data['composer'] = $this->normalizer->normalize($object->getComposer(), 'json', $context); + $data['code'] = $object->getCode(); + $data['label'] = $object->getLabel(); + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; } - $data['auths'] = $values_4; } return $data; diff --git a/src/Normalizer/PipelineDeclarePipelineCommandInputNormalizer.php b/src/Normalizer/PipelineDeclarePipelineCommandInputNormalizer.php index 5b7bfb63..e1e4005f 100644 --- a/src/Normalizer/PipelineDeclarePipelineCommandInputNormalizer.php +++ b/src/Normalizer/PipelineDeclarePipelineCommandInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineDeclarePipelineCommandInputNormalizer implements DenormalizerInter use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineDeclarePipelineCommandInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineDeclarePipelineCommandInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineDeclarePipelineCommandInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineDeclarePipelineCommandInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,108 +52,61 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('label', $data) && null !== $data['label']) { - $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && null === $data['label']) { - $object->setLabel(null); - } - if (\array_key_exists('code', $data) && null !== $data['code']) { - $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { - $object->setCode(null); - } - if (\array_key_exists('steps', $data) && null !== $data['steps']) { + if (\array_key_exists('steps', $data) && $data['steps'] !== null) { $values = []; foreach ($data['steps'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\StepInput::class, 'json', $context); + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\Step', 'json', $context); } $object->setSteps($values); - } elseif (\array_key_exists('steps', $data) && null === $data['steps']) { + unset($data['steps']); + } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { $object->setSteps(null); } - if (\array_key_exists('autoloads', $data) && null !== $data['autoloads']) { - $values_1 = []; - foreach ($data['autoloads'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, \Gyroscops\Api\Model\AutoloadInput::class, 'json', $context); - } - $object->setAutoloads($values_1); - } elseif (\array_key_exists('autoloads', $data) && null === $data['autoloads']) { - $object->setAutoloads(null); + if (\array_key_exists('composer', $data) && $data['composer'] !== null) { + $object->setComposer($this->denormalizer->denormalize($data['composer'], 'Gyroscops\\Api\\Model\\Composer', 'json', $context)); + unset($data['composer']); + } elseif (\array_key_exists('composer', $data) && $data['composer'] === null) { + $object->setComposer(null); } - if (\array_key_exists('packages', $data) && null !== $data['packages']) { - $values_2 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); - foreach ($data['packages'] as $key => $value_2) { - $values_2[$key] = $value_2; - } - $object->setPackages($values_2); - } elseif (\array_key_exists('packages', $data) && null === $data['packages']) { - $object->setPackages(null); + if (\array_key_exists('code', $data) && $data['code'] !== null) { + $object->setCode($data['code']); + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + $object->setCode(null); } - if (\array_key_exists('repositories', $data) && null !== $data['repositories']) { - $values_3 = []; - foreach ($data['repositories'] as $value_3) { - $values_3[] = $this->denormalizer->denormalize($value_3, \Gyroscops\Api\Model\AddPipelineComposerRepositoryCommandInput::class, 'json', $context); - } - $object->setRepositories($values_3); - } elseif (\array_key_exists('repositories', $data) && null === $data['repositories']) { - $object->setRepositories(null); + if (\array_key_exists('label', $data) && $data['label'] !== null) { + $object->setLabel($data['label']); + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + $object->setLabel(null); } - if (\array_key_exists('auths', $data) && null !== $data['auths']) { - $values_4 = []; - foreach ($data['auths'] as $value_4) { - $values_4[] = $this->denormalizer->denormalize($value_4, \Gyroscops\Api\Model\AddPipelineComposerAuthCommandInput::class, 'json', $context); + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; } - $object->setAuths($values_4); - } elseif (\array_key_exists('auths', $data) && null === $data['auths']) { - $object->setAuths(null); } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - $data['label'] = $object->getLabel(); - $data['code'] = $object->getCode(); $values = []; foreach ($object->getSteps() as $value) { $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['steps'] = $values; - if (null !== $object->getAutoloads()) { - $values_1 = []; - foreach ($object->getAutoloads() as $value_1) { - $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); - } - $data['autoloads'] = $values_1; - } - if (null !== $object->getPackages()) { - $values_2 = []; - foreach ($object->getPackages() as $key => $value_2) { - $values_2[$key] = $value_2; - } - $data['packages'] = $values_2; - } - if (null !== $object->getRepositories()) { - $values_3 = []; - foreach ($object->getRepositories() as $value_3) { - $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); - } - $data['repositories'] = $values_3; - } - if (null !== $object->getAuths()) { - $values_4 = []; - foreach ($object->getAuths() as $value_4) { - $values_4[] = $this->normalizer->normalize($value_4, 'json', $context); + $data['composer'] = $this->normalizer->normalize($object->getComposer(), 'json', $context); + $data['code'] = $object->getCode(); + $data['label'] = $object->getLabel(); + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; } - $data['auths'] = $values_4; } return $data; diff --git a/src/Normalizer/PipelineDeclarePipelineCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineDeclarePipelineCommandJsonldReadNormalizer.php index 00c85156..ccc18a45 100644 --- a/src/Normalizer/PipelineDeclarePipelineCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineDeclarePipelineCommandJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineDeclarePipelineCommandJsonldReadNormalizer implements Denormalizer use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineDeclarePipelineCommandJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineDeclarePipelineCommandJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineDeclarePipelineCommandJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineDeclarePipelineCommandJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/PipelineDeclarePipelineScheduleImmediateCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineDeclarePipelineScheduleImmediateCommandInputJsonldNormalizer.php new file mode 100644 index 00000000..337ead78 --- /dev/null +++ b/src/Normalizer/PipelineDeclarePipelineScheduleImmediateCommandInputJsonldNormalizer.php @@ -0,0 +1,105 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('environment', $data) && $data['environment'] !== null) { + $object->setEnvironment($data['environment']); + unset($data['environment']); + } elseif (\array_key_exists('environment', $data) && $data['environment'] === null) { + $object->setEnvironment(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('environment') && null !== $object->getEnvironment()) { + $data['environment'] = $object->getEnvironment(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/PipelineDeclarePipelineScheduleImmediateCommandInputNormalizer.php b/src/Normalizer/PipelineDeclarePipelineScheduleImmediateCommandInputNormalizer.php new file mode 100644 index 00000000..ad3a6276 --- /dev/null +++ b/src/Normalizer/PipelineDeclarePipelineScheduleImmediateCommandInputNormalizer.php @@ -0,0 +1,87 @@ +setEnvironment($data['environment']); + unset($data['environment']); + } elseif (\array_key_exists('environment', $data) && $data['environment'] === null) { + $object->setEnvironment(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('environment') && null !== $object->getEnvironment()) { + $data['environment'] = $object->getEnvironment(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/PipelineDeclarePipelineScheduleImmediateCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineDeclarePipelineScheduleImmediateCommandJsonldReadNormalizer.php new file mode 100644 index 00000000..466da72a --- /dev/null +++ b/src/Normalizer/PipelineDeclarePipelineScheduleImmediateCommandJsonldReadNormalizer.php @@ -0,0 +1,96 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/PipelineDeclarePipelineScheduleOnceCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineDeclarePipelineScheduleOnceCommandInputJsonldNormalizer.php new file mode 100644 index 00000000..d875b8e2 --- /dev/null +++ b/src/Normalizer/PipelineDeclarePipelineScheduleOnceCommandInputJsonldNormalizer.php @@ -0,0 +1,114 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('date', $data) && $data['date'] !== null) { + $object->setDate(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['date'])); + unset($data['date']); + } elseif (\array_key_exists('date', $data) && $data['date'] === null) { + $object->setDate(null); + } + if (\array_key_exists('environment', $data) && $data['environment'] !== null) { + $object->setEnvironment($data['environment']); + unset($data['environment']); + } elseif (\array_key_exists('environment', $data) && $data['environment'] === null) { + $object->setEnvironment(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('date') && null !== $object->getDate()) { + $data['date'] = $object->getDate()->format('Y-m-d\\TH:i:sP'); + } + if ($object->isInitialized('environment') && null !== $object->getEnvironment()) { + $data['environment'] = $object->getEnvironment(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/PipelineDeclarePipelineScheduleOnceCommandInputNormalizer.php b/src/Normalizer/PipelineDeclarePipelineScheduleOnceCommandInputNormalizer.php new file mode 100644 index 00000000..d078dd62 --- /dev/null +++ b/src/Normalizer/PipelineDeclarePipelineScheduleOnceCommandInputNormalizer.php @@ -0,0 +1,96 @@ +setDate(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['date'])); + unset($data['date']); + } elseif (\array_key_exists('date', $data) && $data['date'] === null) { + $object->setDate(null); + } + if (\array_key_exists('environment', $data) && $data['environment'] !== null) { + $object->setEnvironment($data['environment']); + unset($data['environment']); + } elseif (\array_key_exists('environment', $data) && $data['environment'] === null) { + $object->setEnvironment(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('date') && null !== $object->getDate()) { + $data['date'] = $object->getDate()->format('Y-m-d\\TH:i:sP'); + } + if ($object->isInitialized('environment') && null !== $object->getEnvironment()) { + $data['environment'] = $object->getEnvironment(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/PipelineDeclarePipelineScheduleOnceCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineDeclarePipelineScheduleOnceCommandJsonldReadNormalizer.php new file mode 100644 index 00000000..6a32494b --- /dev/null +++ b/src/Normalizer/PipelineDeclarePipelineScheduleOnceCommandJsonldReadNormalizer.php @@ -0,0 +1,96 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/PipelineIdJsonldNormalizer.php b/src/Normalizer/PipelineIdJsonldNormalizer.php deleted file mode 100644 index f1558982..00000000 --- a/src/Normalizer/PipelineIdJsonldNormalizer.php +++ /dev/null @@ -1,86 +0,0 @@ -setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { - $object->setContext(null); - } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { - $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - return []; - } -} diff --git a/src/Normalizer/PipelineJsonldNormalizer.php b/src/Normalizer/PipelineJsonldNormalizer.php new file mode 100644 index 00000000..82b19e5a --- /dev/null +++ b/src/Normalizer/PipelineJsonldNormalizer.php @@ -0,0 +1,118 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('steps', $data) && $data['steps'] !== null) { + $values = []; + foreach ($data['steps'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\StepJsonld', 'json', $context); + } + $object->setSteps($values); + unset($data['steps']); + } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { + $object->setSteps(null); + } + if (\array_key_exists('code', $data) && $data['code'] !== null) { + $object->setCode($data['code']); + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + $object->setCode(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getSteps() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['steps'] = $values; + $data['code'] = $object->getCode(); + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/PipelineJsonldReadNormalizer.php b/src/Normalizer/PipelineJsonldReadNormalizer.php index 69f6700e..884998aa 100644 --- a/src/Normalizer/PipelineJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineJsonldReadNormalizer implements DenormalizerInterface, NormalizerI use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,159 +52,183 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('isSoftDeleted', $data) && null !== $data['isSoftDeleted']) { + if (\array_key_exists('currentVersion', $data) && $data['currentVersion'] !== null) { + $object->setCurrentVersion($data['currentVersion']); + unset($data['currentVersion']); + } elseif (\array_key_exists('currentVersion', $data) && $data['currentVersion'] === null) { + $object->setCurrentVersion(null); + } + if (\array_key_exists('isSoftDeleted', $data) && $data['isSoftDeleted'] !== null) { $object->setIsSoftDeleted($data['isSoftDeleted']); - } elseif (\array_key_exists('isSoftDeleted', $data) && null === $data['isSoftDeleted']) { + unset($data['isSoftDeleted']); + } elseif (\array_key_exists('isSoftDeleted', $data) && $data['isSoftDeleted'] === null) { $object->setIsSoftDeleted(null); } - if (\array_key_exists('compiledAt', $data) && null !== $data['compiledAt']) { + if (\array_key_exists('compiledAt', $data) && $data['compiledAt'] !== null) { $object->setCompiledAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['compiledAt'])); - } elseif (\array_key_exists('compiledAt', $data) && null === $data['compiledAt']) { + unset($data['compiledAt']); + } elseif (\array_key_exists('compiledAt', $data) && $data['compiledAt'] === null) { $object->setCompiledAt(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { - $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { - $object->setId2(null); - } - if (\array_key_exists('code', $data) && null !== $data['code']) { - $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { - $object->setCode(null); - } - if (\array_key_exists('label', $data) && null !== $data['label']) { - $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && null === $data['label']) { - $object->setLabel(null); - } - if (\array_key_exists('runtimeType', $data) && null !== $data['runtimeType']) { - $object->setRuntimeType($data['runtimeType']); - } elseif (\array_key_exists('runtimeType', $data) && null === $data['runtimeType']) { - $object->setRuntimeType(null); - } - if (\array_key_exists('runtime', $data) && null !== $data['runtime']) { + if (\array_key_exists('autoload', $data) && $data['autoload'] !== null) { $values = []; - foreach ($data['runtime'] as $value) { + foreach ($data['autoload'] as $value) { $values[] = $value; } - $object->setRuntime($values); - } elseif (\array_key_exists('runtime', $data) && null === $data['runtime']) { - $object->setRuntime(null); + $object->setAutoload($values); + unset($data['autoload']); + } elseif (\array_key_exists('autoload', $data) && $data['autoload'] === null) { + $object->setAutoload(null); } - if (\array_key_exists('autoload', $data) && null !== $data['autoload']) { + if (\array_key_exists('packages', $data) && $data['packages'] !== null) { $values_1 = []; - foreach ($data['autoload'] as $value_1) { + foreach ($data['packages'] as $value_1) { $values_1[] = $value_1; } - $object->setAutoload($values_1); - } elseif (\array_key_exists('autoload', $data) && null === $data['autoload']) { - $object->setAutoload(null); + $object->setPackages($values_1); + unset($data['packages']); + } elseif (\array_key_exists('packages', $data) && $data['packages'] === null) { + $object->setPackages(null); } - if (\array_key_exists('packages', $data) && null !== $data['packages']) { + if (\array_key_exists('repositories', $data) && $data['repositories'] !== null) { $values_2 = []; - foreach ($data['packages'] as $value_2) { + foreach ($data['repositories'] as $value_2) { $values_2[] = $value_2; } - $object->setPackages($values_2); - } elseif (\array_key_exists('packages', $data) && null === $data['packages']) { - $object->setPackages(null); + $object->setRepositories($values_2); + unset($data['repositories']); + } elseif (\array_key_exists('repositories', $data) && $data['repositories'] === null) { + $object->setRepositories(null); } - if (\array_key_exists('repositories', $data) && null !== $data['repositories']) { + if (\array_key_exists('auths', $data) && $data['auths'] !== null) { $values_3 = []; - foreach ($data['repositories'] as $value_3) { + foreach ($data['auths'] as $value_3) { $values_3[] = $value_3; } - $object->setRepositories($values_3); - } elseif (\array_key_exists('repositories', $data) && null === $data['repositories']) { - $object->setRepositories(null); + $object->setAuths($values_3); + unset($data['auths']); + } elseif (\array_key_exists('auths', $data) && $data['auths'] === null) { + $object->setAuths(null); + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId2($data['id']); + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId2(null); + } + if (\array_key_exists('code', $data) && $data['code'] !== null) { + $object->setCode($data['code']); + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + $object->setCode(null); + } + if (\array_key_exists('label', $data) && $data['label'] !== null) { + $object->setLabel($data['label']); + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + $object->setLabel(null); } - if (\array_key_exists('auths', $data) && null !== $data['auths']) { + if (\array_key_exists('runtime', $data) && $data['runtime'] !== null) { $values_4 = []; - foreach ($data['auths'] as $value_4) { + foreach ($data['runtime'] as $value_4) { $values_4[] = $value_4; } - $object->setAuths($values_4); - } elseif (\array_key_exists('auths', $data) && null === $data['auths']) { - $object->setAuths(null); + $object->setRuntime($values_4); + unset($data['runtime']); + } elseif (\array_key_exists('runtime', $data) && $data['runtime'] === null) { + $object->setRuntime(null); } - if (\array_key_exists('steps', $data) && null !== $data['steps']) { + if (\array_key_exists('steps', $data) && $data['steps'] !== null) { $values_5 = []; foreach ($data['steps'] as $value_5) { - $values_5[] = $value_5; + $values_5[] = $this->denormalizer->denormalize($value_5, 'Gyroscops\\Api\\Model\\PipelineStepJsonldRead', 'json', $context); } $object->setSteps($values_5); - } elseif (\array_key_exists('steps', $data) && null === $data['steps']) { + unset($data['steps']); + } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { $object->setSteps(null); } + foreach ($data as $key => $value_6) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_6; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getIsSoftDeleted()) { + if ($object->isInitialized('currentVersion') && null !== $object->getCurrentVersion()) { + $data['currentVersion'] = $object->getCurrentVersion(); + } + if ($object->isInitialized('isSoftDeleted') && null !== $object->getIsSoftDeleted()) { $data['isSoftDeleted'] = $object->getIsSoftDeleted(); } - if (null !== $object->getCompiledAt()) { + if ($object->isInitialized('compiledAt') && null !== $object->getCompiledAt()) { $data['compiledAt'] = $object->getCompiledAt()->format('Y-m-d\\TH:i:sP'); } - $data['id'] = $object->getId2(); - $data['code'] = $object->getCode(); - $data['label'] = $object->getLabel(); - $data['runtimeType'] = $object->getRuntimeType(); - if (null !== $object->getRuntime()) { + if ($object->isInitialized('packages') && null !== $object->getPackages()) { $values = []; - foreach ($object->getRuntime() as $value) { + foreach ($object->getPackages() as $value) { $values[] = $value; } - $data['runtime'] = $values; + $data['packages'] = $values; } - if (null !== $object->getPackages()) { - $values_1 = []; - foreach ($object->getPackages() as $value_1) { - $values_1[] = $value_1; - } - $data['packages'] = $values_1; + $values_1 = []; + foreach ($object->getRepositories() as $value_1) { + $values_1[] = $value_1; } + $data['repositories'] = $values_1; $values_2 = []; - foreach ($object->getRepositories() as $value_2) { + foreach ($object->getAuths() as $value_2) { $values_2[] = $value_2; } - $data['repositories'] = $values_2; - $values_3 = []; - foreach ($object->getAuths() as $value_3) { - $values_3[] = $value_3; + $data['auths'] = $values_2; + $data['id'] = $object->getId2(); + $data['code'] = $object->getCode(); + $data['label'] = $object->getLabel(); + if ($object->isInitialized('runtime') && null !== $object->getRuntime()) { + $values_3 = []; + foreach ($object->getRuntime() as $value_3) { + $values_3[] = $value_3; + } + $data['runtime'] = $values_3; } - $data['auths'] = $values_3; - if (null !== $object->getSteps()) { + if ($object->isInitialized('steps') && null !== $object->getSteps()) { $values_4 = []; foreach ($object->getSteps() as $value_4) { - $values_4[] = $value_4; + $values_4[] = $this->normalizer->normalize($value_4, 'json', $context); } $data['steps'] = $values_4; } + foreach ($object as $key => $value_5) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_5; + } + } return $data; } diff --git a/src/Normalizer/PipelineMoveAfterPipelineStepCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineMoveAfterPipelineStepCommandInputJsonldNormalizer.php index e2dd977b..645a772e 100644 --- a/src/Normalizer/PipelineMoveAfterPipelineStepCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineMoveAfterPipelineStepCommandInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineMoveAfterPipelineStepCommandInputJsonldNormalizer implements Denor use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineMoveAfterPipelineStepCommandInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineMoveAfterPipelineStepCommandInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,40 +52,58 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('code', $data) && null !== $data['code']) { + if (\array_key_exists('after', $data) && $data['after'] !== null) { + $object->setAfter($data['after']); + unset($data['after']); + } elseif (\array_key_exists('after', $data) && $data['after'] === null) { + $object->setAfter(null); + } + if (\array_key_exists('code', $data) && $data['code'] !== null) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { $object->setCode(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; + $data['after'] = $object->getAfter(); $data['code'] = $object->getCode(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/PipelineMoveAfterPipelineStepCommandInputNormalizer.php b/src/Normalizer/PipelineMoveAfterPipelineStepCommandInputNormalizer.php index 1fd93949..6dbe17d7 100644 --- a/src/Normalizer/PipelineMoveAfterPipelineStepCommandInputNormalizer.php +++ b/src/Normalizer/PipelineMoveAfterPipelineStepCommandInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineMoveAfterPipelineStepCommandInputNormalizer implements Denormalize use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineMoveAfterPipelineStepCommandInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineMoveAfterPipelineStepCommandInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,25 +52,40 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('code', $data) && null !== $data['code']) { + if (\array_key_exists('after', $data) && $data['after'] !== null) { + $object->setAfter($data['after']); + unset($data['after']); + } elseif (\array_key_exists('after', $data) && $data['after'] === null) { + $object->setAfter(null); + } + if (\array_key_exists('code', $data) && $data['code'] !== null) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { $object->setCode(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; + $data['after'] = $object->getAfter(); $data['code'] = $object->getCode(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/PipelineMoveAfterPipelineStepCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineMoveAfterPipelineStepCommandJsonldReadNormalizer.php index 7fc8df85..ed06e758 100644 --- a/src/Normalizer/PipelineMoveAfterPipelineStepCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineMoveAfterPipelineStepCommandJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineMoveAfterPipelineStepCommandJsonldReadNormalizer implements Denorm use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineMoveAfterPipelineStepCommandJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineMoveAfterPipelineStepCommandJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineMoveAfterPipelineStepCommandJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/PipelineMoveBeforePipelineStepCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineMoveBeforePipelineStepCommandInputJsonldNormalizer.php index 0f5ff310..dbcaf4d7 100644 --- a/src/Normalizer/PipelineMoveBeforePipelineStepCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineMoveBeforePipelineStepCommandInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineMoveBeforePipelineStepCommandInputJsonldNormalizer implements Deno use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineMoveBeforePipelineStepCommandInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineMoveBeforePipelineStepCommandInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,40 +52,58 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('code', $data) && null !== $data['code']) { + if (\array_key_exists('before', $data) && $data['before'] !== null) { + $object->setBefore($data['before']); + unset($data['before']); + } elseif (\array_key_exists('before', $data) && $data['before'] === null) { + $object->setBefore(null); + } + if (\array_key_exists('code', $data) && $data['code'] !== null) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { $object->setCode(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; + $data['before'] = $object->getBefore(); $data['code'] = $object->getCode(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/PipelineMoveBeforePipelineStepCommandInputNormalizer.php b/src/Normalizer/PipelineMoveBeforePipelineStepCommandInputNormalizer.php index d5fcc496..0c4e0998 100644 --- a/src/Normalizer/PipelineMoveBeforePipelineStepCommandInputNormalizer.php +++ b/src/Normalizer/PipelineMoveBeforePipelineStepCommandInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineMoveBeforePipelineStepCommandInputNormalizer implements Denormaliz use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineMoveBeforePipelineStepCommandInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineMoveBeforePipelineStepCommandInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,25 +52,40 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('code', $data) && null !== $data['code']) { + if (\array_key_exists('before', $data) && $data['before'] !== null) { + $object->setBefore($data['before']); + unset($data['before']); + } elseif (\array_key_exists('before', $data) && $data['before'] === null) { + $object->setBefore(null); + } + if (\array_key_exists('code', $data) && $data['code'] !== null) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { $object->setCode(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; + $data['before'] = $object->getBefore(); $data['code'] = $object->getCode(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/PipelineMoveBeforePipelineStepCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineMoveBeforePipelineStepCommandJsonldReadNormalizer.php index 52c53863..ed5ff239 100644 --- a/src/Normalizer/PipelineMoveBeforePipelineStepCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineMoveBeforePipelineStepCommandJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineMoveBeforePipelineStepCommandJsonldReadNormalizer implements Denor use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineMoveBeforePipelineStepCommandJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineMoveBeforePipelineStepCommandJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineMoveBeforePipelineStepCommandJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/PipelineNormalizer.php b/src/Normalizer/PipelineNormalizer.php new file mode 100644 index 00000000..3a5dff7f --- /dev/null +++ b/src/Normalizer/PipelineNormalizer.php @@ -0,0 +1,100 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\Step', 'json', $context); + } + $object->setSteps($values); + unset($data['steps']); + } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { + $object->setSteps(null); + } + if (\array_key_exists('code', $data) && $data['code'] !== null) { + $object->setCode($data['code']); + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + $object->setCode(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getSteps() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['steps'] = $values; + $data['code'] = $object->getCode(); + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/PipelineReadNormalizer.php b/src/Normalizer/PipelineReadNormalizer.php index 270b478c..12b8603f 100644 --- a/src/Normalizer/PipelineReadNormalizer.php +++ b/src/Normalizer/PipelineReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineReadNormalizer implements DenormalizerInterface, NormalizerInterfa use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,144 +52,165 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('isSoftDeleted', $data) && null !== $data['isSoftDeleted']) { + if (\array_key_exists('currentVersion', $data) && $data['currentVersion'] !== null) { + $object->setCurrentVersion($data['currentVersion']); + unset($data['currentVersion']); + } elseif (\array_key_exists('currentVersion', $data) && $data['currentVersion'] === null) { + $object->setCurrentVersion(null); + } + if (\array_key_exists('isSoftDeleted', $data) && $data['isSoftDeleted'] !== null) { $object->setIsSoftDeleted($data['isSoftDeleted']); - } elseif (\array_key_exists('isSoftDeleted', $data) && null === $data['isSoftDeleted']) { + unset($data['isSoftDeleted']); + } elseif (\array_key_exists('isSoftDeleted', $data) && $data['isSoftDeleted'] === null) { $object->setIsSoftDeleted(null); } - if (\array_key_exists('compiledAt', $data) && null !== $data['compiledAt']) { + if (\array_key_exists('compiledAt', $data) && $data['compiledAt'] !== null) { $object->setCompiledAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['compiledAt'])); - } elseif (\array_key_exists('compiledAt', $data) && null === $data['compiledAt']) { + unset($data['compiledAt']); + } elseif (\array_key_exists('compiledAt', $data) && $data['compiledAt'] === null) { $object->setCompiledAt(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { - $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { - $object->setId(null); - } - if (\array_key_exists('code', $data) && null !== $data['code']) { - $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { - $object->setCode(null); - } - if (\array_key_exists('label', $data) && null !== $data['label']) { - $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && null === $data['label']) { - $object->setLabel(null); - } - if (\array_key_exists('runtimeType', $data) && null !== $data['runtimeType']) { - $object->setRuntimeType($data['runtimeType']); - } elseif (\array_key_exists('runtimeType', $data) && null === $data['runtimeType']) { - $object->setRuntimeType(null); - } - if (\array_key_exists('runtime', $data) && null !== $data['runtime']) { + if (\array_key_exists('autoload', $data) && $data['autoload'] !== null) { $values = []; - foreach ($data['runtime'] as $value) { + foreach ($data['autoload'] as $value) { $values[] = $value; } - $object->setRuntime($values); - } elseif (\array_key_exists('runtime', $data) && null === $data['runtime']) { - $object->setRuntime(null); + $object->setAutoload($values); + unset($data['autoload']); + } elseif (\array_key_exists('autoload', $data) && $data['autoload'] === null) { + $object->setAutoload(null); } - if (\array_key_exists('autoload', $data) && null !== $data['autoload']) { + if (\array_key_exists('packages', $data) && $data['packages'] !== null) { $values_1 = []; - foreach ($data['autoload'] as $value_1) { + foreach ($data['packages'] as $value_1) { $values_1[] = $value_1; } - $object->setAutoload($values_1); - } elseif (\array_key_exists('autoload', $data) && null === $data['autoload']) { - $object->setAutoload(null); + $object->setPackages($values_1); + unset($data['packages']); + } elseif (\array_key_exists('packages', $data) && $data['packages'] === null) { + $object->setPackages(null); } - if (\array_key_exists('packages', $data) && null !== $data['packages']) { + if (\array_key_exists('repositories', $data) && $data['repositories'] !== null) { $values_2 = []; - foreach ($data['packages'] as $value_2) { + foreach ($data['repositories'] as $value_2) { $values_2[] = $value_2; } - $object->setPackages($values_2); - } elseif (\array_key_exists('packages', $data) && null === $data['packages']) { - $object->setPackages(null); + $object->setRepositories($values_2); + unset($data['repositories']); + } elseif (\array_key_exists('repositories', $data) && $data['repositories'] === null) { + $object->setRepositories(null); } - if (\array_key_exists('repositories', $data) && null !== $data['repositories']) { + if (\array_key_exists('auths', $data) && $data['auths'] !== null) { $values_3 = []; - foreach ($data['repositories'] as $value_3) { + foreach ($data['auths'] as $value_3) { $values_3[] = $value_3; } - $object->setRepositories($values_3); - } elseif (\array_key_exists('repositories', $data) && null === $data['repositories']) { - $object->setRepositories(null); + $object->setAuths($values_3); + unset($data['auths']); + } elseif (\array_key_exists('auths', $data) && $data['auths'] === null) { + $object->setAuths(null); + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('code', $data) && $data['code'] !== null) { + $object->setCode($data['code']); + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + $object->setCode(null); + } + if (\array_key_exists('label', $data) && $data['label'] !== null) { + $object->setLabel($data['label']); + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + $object->setLabel(null); } - if (\array_key_exists('auths', $data) && null !== $data['auths']) { + if (\array_key_exists('runtime', $data) && $data['runtime'] !== null) { $values_4 = []; - foreach ($data['auths'] as $value_4) { + foreach ($data['runtime'] as $value_4) { $values_4[] = $value_4; } - $object->setAuths($values_4); - } elseif (\array_key_exists('auths', $data) && null === $data['auths']) { - $object->setAuths(null); + $object->setRuntime($values_4); + unset($data['runtime']); + } elseif (\array_key_exists('runtime', $data) && $data['runtime'] === null) { + $object->setRuntime(null); } - if (\array_key_exists('steps', $data) && null !== $data['steps']) { + if (\array_key_exists('steps', $data) && $data['steps'] !== null) { $values_5 = []; foreach ($data['steps'] as $value_5) { - $values_5[] = $value_5; + $values_5[] = $this->denormalizer->denormalize($value_5, 'Gyroscops\\Api\\Model\\PipelineStepRead', 'json', $context); } $object->setSteps($values_5); - } elseif (\array_key_exists('steps', $data) && null === $data['steps']) { + unset($data['steps']); + } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { $object->setSteps(null); } + foreach ($data as $key => $value_6) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_6; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getIsSoftDeleted()) { + if ($object->isInitialized('currentVersion') && null !== $object->getCurrentVersion()) { + $data['currentVersion'] = $object->getCurrentVersion(); + } + if ($object->isInitialized('isSoftDeleted') && null !== $object->getIsSoftDeleted()) { $data['isSoftDeleted'] = $object->getIsSoftDeleted(); } - if (null !== $object->getCompiledAt()) { + if ($object->isInitialized('compiledAt') && null !== $object->getCompiledAt()) { $data['compiledAt'] = $object->getCompiledAt()->format('Y-m-d\\TH:i:sP'); } - $data['id'] = $object->getId(); - $data['code'] = $object->getCode(); - $data['label'] = $object->getLabel(); - $data['runtimeType'] = $object->getRuntimeType(); - if (null !== $object->getRuntime()) { + if ($object->isInitialized('packages') && null !== $object->getPackages()) { $values = []; - foreach ($object->getRuntime() as $value) { + foreach ($object->getPackages() as $value) { $values[] = $value; } - $data['runtime'] = $values; + $data['packages'] = $values; } - if (null !== $object->getPackages()) { - $values_1 = []; - foreach ($object->getPackages() as $value_1) { - $values_1[] = $value_1; - } - $data['packages'] = $values_1; + $values_1 = []; + foreach ($object->getRepositories() as $value_1) { + $values_1[] = $value_1; } + $data['repositories'] = $values_1; $values_2 = []; - foreach ($object->getRepositories() as $value_2) { + foreach ($object->getAuths() as $value_2) { $values_2[] = $value_2; } - $data['repositories'] = $values_2; - $values_3 = []; - foreach ($object->getAuths() as $value_3) { - $values_3[] = $value_3; + $data['auths'] = $values_2; + $data['id'] = $object->getId(); + $data['code'] = $object->getCode(); + $data['label'] = $object->getLabel(); + if ($object->isInitialized('runtime') && null !== $object->getRuntime()) { + $values_3 = []; + foreach ($object->getRuntime() as $value_3) { + $values_3[] = $value_3; + } + $data['runtime'] = $values_3; } - $data['auths'] = $values_3; - if (null !== $object->getSteps()) { + if ($object->isInitialized('steps') && null !== $object->getSteps()) { $values_4 = []; foreach ($object->getSteps() as $value_4) { - $values_4[] = $value_4; + $values_4[] = $this->normalizer->normalize($value_4, 'json', $context); } $data['steps'] = $values_4; } + foreach ($object as $key => $value_5) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_5; + } + } return $data; } diff --git a/src/Normalizer/PipelineRemovePipelineComposerAuthCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineRemovePipelineComposerAuthCommandInputJsonldNormalizer.php index e5a5b85f..5be28e89 100644 --- a/src/Normalizer/PipelineRemovePipelineComposerAuthCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineRemovePipelineComposerAuthCommandInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineRemovePipelineComposerAuthCommandInputJsonldNormalizer implements use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerAuthCommandInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerAuthCommandInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,42 +52,53 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('url', $data) && null !== $data['url']) { + if (\array_key_exists('url', $data) && $data['url'] !== null) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && null === $data['url']) { + unset($data['url']); + } elseif (\array_key_exists('url', $data) && $data['url'] === null) { $object->setUrl(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getUrl()) { + if ($object->isInitialized('url') && null !== $object->getUrl()) { $data['url'] = $object->getUrl(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/PipelineRemovePipelineComposerAuthCommandInputNormalizer.php b/src/Normalizer/PipelineRemovePipelineComposerAuthCommandInputNormalizer.php index 071b9bd9..70e04c34 100644 --- a/src/Normalizer/PipelineRemovePipelineComposerAuthCommandInputNormalizer.php +++ b/src/Normalizer/PipelineRemovePipelineComposerAuthCommandInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineRemovePipelineComposerAuthCommandInputNormalizer implements Denorm use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerAuthCommandInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerAuthCommandInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,27 +52,35 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('url', $data) && null !== $data['url']) { + if (\array_key_exists('url', $data) && $data['url'] !== null) { $object->setUrl($data['url']); - } elseif (\array_key_exists('url', $data) && null === $data['url']) { + unset($data['url']); + } elseif (\array_key_exists('url', $data) && $data['url'] === null) { $object->setUrl(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getUrl()) { + if ($object->isInitialized('url') && null !== $object->getUrl()) { $data['url'] = $object->getUrl(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/PipelineRemovePipelineComposerAuthCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineRemovePipelineComposerAuthCommandJsonldReadNormalizer.php index 48058bc7..73ce634b 100644 --- a/src/Normalizer/PipelineRemovePipelineComposerAuthCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineRemovePipelineComposerAuthCommandJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineRemovePipelineComposerAuthCommandJsonldReadNormalizer implements D use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerAuthCommandJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineRemovePipelineComposerAuthCommandJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerAuthCommandJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonldNormalizer.php index 066b66f1..a99a415d 100644 --- a/src/Normalizer/PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonldNormalizer imp use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerPSR4AutoloadCommandInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,42 +52,53 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('namespace', $data) && null !== $data['namespace']) { + if (\array_key_exists('namespace', $data) && $data['namespace'] !== null) { $object->setNamespace($data['namespace']); - } elseif (\array_key_exists('namespace', $data) && null === $data['namespace']) { + unset($data['namespace']); + } elseif (\array_key_exists('namespace', $data) && $data['namespace'] === null) { $object->setNamespace(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getNamespace()) { + if ($object->isInitialized('namespace') && null !== $object->getNamespace()) { $data['namespace'] = $object->getNamespace(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/PipelineRemovePipelineComposerPSR4AutoloadCommandInputNormalizer.php b/src/Normalizer/PipelineRemovePipelineComposerPSR4AutoloadCommandInputNormalizer.php index 052d8f07..b4fb735b 100644 --- a/src/Normalizer/PipelineRemovePipelineComposerPSR4AutoloadCommandInputNormalizer.php +++ b/src/Normalizer/PipelineRemovePipelineComposerPSR4AutoloadCommandInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineRemovePipelineComposerPSR4AutoloadCommandInputNormalizer implement use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerPSR4AutoloadCommandInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerPSR4AutoloadCommandInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,27 +52,35 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('namespace', $data) && null !== $data['namespace']) { + if (\array_key_exists('namespace', $data) && $data['namespace'] !== null) { $object->setNamespace($data['namespace']); - } elseif (\array_key_exists('namespace', $data) && null === $data['namespace']) { + unset($data['namespace']); + } elseif (\array_key_exists('namespace', $data) && $data['namespace'] === null) { $object->setNamespace(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getNamespace()) { + if ($object->isInitialized('namespace') && null !== $object->getNamespace()) { $data['namespace'] = $object->getNamespace(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldReadNormalizer.php index 9f90e54c..4a02db24 100644 --- a/src/Normalizer/PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldReadNormalizer impl use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerPSR4AutoloadCommandJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/PipelineRemovePipelineComposerPackageCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineRemovePipelineComposerPackageCommandInputJsonldNormalizer.php index fbf5e0f5..b0eb8a2a 100644 --- a/src/Normalizer/PipelineRemovePipelineComposerPackageCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineRemovePipelineComposerPackageCommandInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineRemovePipelineComposerPackageCommandInputJsonldNormalizer implemen use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerPackageCommandInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerPackageCommandInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,42 +52,53 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('package', $data) && null !== $data['package']) { + if (\array_key_exists('package', $data) && $data['package'] !== null) { $object->setPackage($data['package']); - } elseif (\array_key_exists('package', $data) && null === $data['package']) { + unset($data['package']); + } elseif (\array_key_exists('package', $data) && $data['package'] === null) { $object->setPackage(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getPackage()) { + if ($object->isInitialized('package') && null !== $object->getPackage()) { $data['package'] = $object->getPackage(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/PipelineRemovePipelineComposerPackageCommandInputNormalizer.php b/src/Normalizer/PipelineRemovePipelineComposerPackageCommandInputNormalizer.php index 5cdb76d1..2fa82811 100644 --- a/src/Normalizer/PipelineRemovePipelineComposerPackageCommandInputNormalizer.php +++ b/src/Normalizer/PipelineRemovePipelineComposerPackageCommandInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineRemovePipelineComposerPackageCommandInputNormalizer implements Den use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerPackageCommandInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerPackageCommandInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,27 +52,35 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('package', $data) && null !== $data['package']) { + if (\array_key_exists('package', $data) && $data['package'] !== null) { $object->setPackage($data['package']); - } elseif (\array_key_exists('package', $data) && null === $data['package']) { + unset($data['package']); + } elseif (\array_key_exists('package', $data) && $data['package'] === null) { $object->setPackage(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getPackage()) { + if ($object->isInitialized('package') && null !== $object->getPackage()) { $data['package'] = $object->getPackage(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/PipelineRemovePipelineComposerPackageCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineRemovePipelineComposerPackageCommandJsonldReadNormalizer.php index 296a0b4e..d635048d 100644 --- a/src/Normalizer/PipelineRemovePipelineComposerPackageCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineRemovePipelineComposerPackageCommandJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineRemovePipelineComposerPackageCommandJsonldReadNormalizer implement use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerPackageCommandJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineRemovePipelineComposerPackageCommandJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerPackageCommandJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/PipelineRemovePipelineComposerRepositoryCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineRemovePipelineComposerRepositoryCommandInputJsonldNormalizer.php index 662a4f48..1c8af2b5 100644 --- a/src/Normalizer/PipelineRemovePipelineComposerRepositoryCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineRemovePipelineComposerRepositoryCommandInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineRemovePipelineComposerRepositoryCommandInputJsonldNormalizer imple use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerRepositoryCommandInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerRepositoryCommandInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,42 +52,53 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/PipelineRemovePipelineComposerRepositoryCommandInputNormalizer.php b/src/Normalizer/PipelineRemovePipelineComposerRepositoryCommandInputNormalizer.php index d9c8d05a..a3d148d9 100644 --- a/src/Normalizer/PipelineRemovePipelineComposerRepositoryCommandInputNormalizer.php +++ b/src/Normalizer/PipelineRemovePipelineComposerRepositoryCommandInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineRemovePipelineComposerRepositoryCommandInputNormalizer implements use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerRepositoryCommandInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerRepositoryCommandInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,27 +52,35 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/PipelineRemovePipelineComposerRepositoryCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineRemovePipelineComposerRepositoryCommandJsonldReadNormalizer.php index b11153f5..0ee6cdd7 100644 --- a/src/Normalizer/PipelineRemovePipelineComposerRepositoryCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineRemovePipelineComposerRepositoryCommandJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineRemovePipelineComposerRepositoryCommandJsonldReadNormalizer implem use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerRepositoryCommandJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineRemovePipelineComposerRepositoryCommandJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineRemovePipelineComposerRepositoryCommandJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/PipelineRemovePipelineStepProbeCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineRemovePipelineStepProbeCommandJsonldReadNormalizer.php index 12368426..b617ffdc 100644 --- a/src/Normalizer/PipelineRemovePipelineStepProbeCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineRemovePipelineStepProbeCommandJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineRemovePipelineStepProbeCommandJsonldReadNormalizer implements Deno use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineRemovePipelineStepProbeCommandJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineRemovePipelineStepProbeCommandJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineRemovePipelineStepProbeCommandJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineRemovePipelineStepProbeCommandJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/PipelineReorderPipelineStepsCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineReorderPipelineStepsCommandInputJsonldNormalizer.php index c8bd66f7..e7486136 100644 --- a/src/Normalizer/PipelineReorderPipelineStepsCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineReorderPipelineStepsCommandInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineReorderPipelineStepsCommandInputJsonldNormalizer implements Denorm use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineReorderPipelineStepsCommandInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineReorderPipelineStepsCommandInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,38 +52,44 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('codes', $data) && null !== $data['codes']) { + if (\array_key_exists('codes', $data) && $data['codes'] !== null) { $values = []; foreach ($data['codes'] as $value) { $values[] = $value; } $object->setCodes($values); - } elseif (\array_key_exists('codes', $data) && null === $data['codes']) { + unset($data['codes']); + } elseif (\array_key_exists('codes', $data) && $data['codes'] === null) { $object->setCodes(null); } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -96,6 +100,11 @@ public function normalize($object, $format = null, array $context = []) $values[] = $value; } $data['codes'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/PipelineReorderPipelineStepsCommandInputNormalizer.php b/src/Normalizer/PipelineReorderPipelineStepsCommandInputNormalizer.php index 6480dc13..faeac906 100644 --- a/src/Normalizer/PipelineReorderPipelineStepsCommandInputNormalizer.php +++ b/src/Normalizer/PipelineReorderPipelineStepsCommandInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineReorderPipelineStepsCommandInputNormalizer implements Denormalizer use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineReorderPipelineStepsCommandInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineReorderPipelineStepsCommandInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,23 +52,26 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('codes', $data) && null !== $data['codes']) { + if (\array_key_exists('codes', $data) && $data['codes'] !== null) { $values = []; foreach ($data['codes'] as $value) { $values[] = $value; } $object->setCodes($values); - } elseif (\array_key_exists('codes', $data) && null === $data['codes']) { + unset($data['codes']); + } elseif (\array_key_exists('codes', $data) && $data['codes'] === null) { $object->setCodes(null); } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -81,6 +82,11 @@ public function normalize($object, $format = null, array $context = []) $values[] = $value; } $data['codes'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/PipelineReorderPipelineStepsCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineReorderPipelineStepsCommandJsonldReadNormalizer.php index a40ad1c7..6cdccb08 100644 --- a/src/Normalizer/PipelineReorderPipelineStepsCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineReorderPipelineStepsCommandJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineReorderPipelineStepsCommandJsonldReadNormalizer implements Denorma use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineReorderPipelineStepsCommandJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineReorderPipelineStepsCommandJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineReorderPipelineStepsCommandJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/PipelineReplacePipelineStepCommandInputJsonldNormalizer.php b/src/Normalizer/PipelineReplacePipelineStepCommandInputJsonldNormalizer.php index 6eb2efcd..663a4819 100644 --- a/src/Normalizer/PipelineReplacePipelineStepCommandInputJsonldNormalizer.php +++ b/src/Normalizer/PipelineReplacePipelineStepCommandInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineReplacePipelineStepCommandInputJsonldNormalizer implements Denorma use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineReplacePipelineStepCommandInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineReplacePipelineStepCommandInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,57 +52,66 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('code', $data) && null !== $data['code']) { + if (\array_key_exists('code', $data) && $data['code'] !== null) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { $object->setCode(null); } - if (\array_key_exists('label', $data) && null !== $data['label']) { + if (\array_key_exists('label', $data) && $data['label'] !== null) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && null === $data['label']) { + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { $object->setLabel(null); } - if (\array_key_exists('configuration', $data) && null !== $data['configuration']) { - $values = []; - foreach ($data['configuration'] as $value) { - $values[] = $value; + if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['configuration'] as $key => $value) { + $values[$key] = $value; } $object->setConfiguration($values); - } elseif (\array_key_exists('configuration', $data) && null === $data['configuration']) { + unset($data['configuration']); + } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { $object->setConfiguration(null); } - if (\array_key_exists('probes', $data) && null !== $data['probes']) { + if (\array_key_exists('probes', $data) && $data['probes'] !== null) { $values_1 = []; foreach ($data['probes'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, \Gyroscops\Api\Model\ProbeJsonld::class, 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, 'Gyroscops\\Api\\Model\\ProbeJsonld', 'json', $context); } $object->setProbes($values_1); - } elseif (\array_key_exists('probes', $data) && null === $data['probes']) { + unset($data['probes']); + } elseif (\array_key_exists('probes', $data) && $data['probes'] === null) { $object->setProbes(null); } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -113,16 +120,19 @@ public function normalize($object, $format = null, array $context = []) $data['code'] = $object->getCode(); $data['label'] = $object->getLabel(); $values = []; - foreach ($object->getConfiguration() as $value) { - $values[] = $value; + foreach ($object->getConfiguration() as $key => $value) { + $values[$key] = $value; } $data['configuration'] = $values; - if (null !== $object->getProbes()) { - $values_1 = []; - foreach ($object->getProbes() as $value_1) { - $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + $values_1 = []; + foreach ($object->getProbes() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['probes'] = $values_1; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; } - $data['probes'] = $values_1; } return $data; diff --git a/src/Normalizer/PipelineReplacePipelineStepCommandInputNormalizer.php b/src/Normalizer/PipelineReplacePipelineStepCommandInputNormalizer.php index 6c120e25..a56f8c0e 100644 --- a/src/Normalizer/PipelineReplacePipelineStepCommandInputNormalizer.php +++ b/src/Normalizer/PipelineReplacePipelineStepCommandInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineReplacePipelineStepCommandInputNormalizer implements DenormalizerI use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineReplacePipelineStepCommandInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineReplacePipelineStepCommandInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,42 +52,48 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('code', $data) && null !== $data['code']) { + if (\array_key_exists('code', $data) && $data['code'] !== null) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { $object->setCode(null); } - if (\array_key_exists('label', $data) && null !== $data['label']) { + if (\array_key_exists('label', $data) && $data['label'] !== null) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && null === $data['label']) { + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { $object->setLabel(null); } - if (\array_key_exists('configuration', $data) && null !== $data['configuration']) { - $values = []; - foreach ($data['configuration'] as $value) { - $values[] = $value; + if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['configuration'] as $key => $value) { + $values[$key] = $value; } $object->setConfiguration($values); - } elseif (\array_key_exists('configuration', $data) && null === $data['configuration']) { + unset($data['configuration']); + } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { $object->setConfiguration(null); } - if (\array_key_exists('probes', $data) && null !== $data['probes']) { + if (\array_key_exists('probes', $data) && $data['probes'] !== null) { $values_1 = []; foreach ($data['probes'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, \Gyroscops\Api\Model\Probe::class, 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, 'Gyroscops\\Api\\Model\\Probe', 'json', $context); } $object->setProbes($values_1); - } elseif (\array_key_exists('probes', $data) && null === $data['probes']) { + unset($data['probes']); + } elseif (\array_key_exists('probes', $data) && $data['probes'] === null) { $object->setProbes(null); } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -98,16 +102,19 @@ public function normalize($object, $format = null, array $context = []) $data['code'] = $object->getCode(); $data['label'] = $object->getLabel(); $values = []; - foreach ($object->getConfiguration() as $value) { - $values[] = $value; + foreach ($object->getConfiguration() as $key => $value) { + $values[$key] = $value; } $data['configuration'] = $values; - if (null !== $object->getProbes()) { - $values_1 = []; - foreach ($object->getProbes() as $value_1) { - $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + $values_1 = []; + foreach ($object->getProbes() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['probes'] = $values_1; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; } - $data['probes'] = $values_1; } return $data; diff --git a/src/Normalizer/PipelineReplacePipelineStepCommandJsonldReadNormalizer.php b/src/Normalizer/PipelineReplacePipelineStepCommandJsonldReadNormalizer.php index 1ebd77f1..d330c76d 100644 --- a/src/Normalizer/PipelineReplacePipelineStepCommandJsonldReadNormalizer.php +++ b/src/Normalizer/PipelineReplacePipelineStepCommandJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineReplacePipelineStepCommandJsonldReadNormalizer implements Denormal use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineReplacePipelineStepCommandJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineReplacePipelineStepCommandJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineReplacePipelineStepCommandJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/PipelineStepJsonldNormalizer.php b/src/Normalizer/PipelineStepJsonldNormalizer.php index a065b0de..02b0356a 100644 --- a/src/Normalizer/PipelineStepJsonldNormalizer.php +++ b/src/Normalizer/PipelineStepJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineStepJsonldNormalizer implements DenormalizerInterface, NormalizerI use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineStepJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineStepJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineStepJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineStepJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,82 +52,94 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('code', $data) && null !== $data['code']) { - $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { - $object->setCode(null); - } - if (\array_key_exists('order', $data) && null !== $data['order']) { + if (\array_key_exists('order', $data) && $data['order'] !== null) { $object->setOrder($data['order']); - } elseif (\array_key_exists('order', $data) && null === $data['order']) { + unset($data['order']); + } elseif (\array_key_exists('order', $data) && $data['order'] === null) { $object->setOrder(null); } - if (\array_key_exists('label', $data) && null !== $data['label']) { + if (\array_key_exists('code', $data) && $data['code'] !== null) { + $object->setCode($data['code']); + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + $object->setCode(null); + } + if (\array_key_exists('label', $data) && $data['label'] !== null) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && null === $data['label']) { + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { $object->setLabel(null); } - if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { - $object->setPipeline($this->denormalizer->denormalize($data['pipeline'], \Gyroscops\Api\Model\AbstractPipelineJsonld::class, 'json', $context)); - } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { + if (\array_key_exists('pipeline', $data) && $data['pipeline'] !== null) { + $object->setPipeline($this->denormalizer->denormalize($data['pipeline'], 'Gyroscops\\Api\\Model\\AbstractPipelineJsonld', 'json', $context)); + unset($data['pipeline']); + } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { $object->setPipeline(null); } - if (\array_key_exists('probes', $data) && null !== $data['probes']) { + if (\array_key_exists('probes', $data) && $data['probes'] !== null) { $values = []; foreach ($data['probes'] as $value) { $values[] = $value; } $object->setProbes($values); - } elseif (\array_key_exists('probes', $data) && null === $data['probes']) { + unset($data['probes']); + } elseif (\array_key_exists('probes', $data) && $data['probes'] === null) { $object->setProbes(null); } - if (\array_key_exists('configuration', $data) && null !== $data['configuration']) { + if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { $values_1 = []; foreach ($data['configuration'] as $value_1) { $values_1[] = $value_1; } $object->setConfiguration($values_1); - } elseif (\array_key_exists('configuration', $data) && null === $data['configuration']) { + unset($data['configuration']); + } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { $object->setConfiguration(null); } + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - $data['code'] = $object->getCode(); $data['order'] = $object->getOrder(); + $data['code'] = $object->getCode(); $data['label'] = $object->getLabel(); $data['pipeline'] = $this->normalizer->normalize($object->getPipeline(), 'json', $context); - if (null !== $object->getProbes()) { + if ($object->isInitialized('probes') && null !== $object->getProbes()) { $values = []; foreach ($object->getProbes() as $value) { $values[] = $value; @@ -141,6 +151,11 @@ public function normalize($object, $format = null, array $context = []) $values_1[] = $value_1; } $data['configuration'] = $values_1; + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; + } + } return $data; } diff --git a/src/Normalizer/PipelineStepJsonldReadNormalizer.php b/src/Normalizer/PipelineStepJsonldReadNormalizer.php new file mode 100644 index 00000000..7c251b31 --- /dev/null +++ b/src/Normalizer/PipelineStepJsonldReadNormalizer.php @@ -0,0 +1,125 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('code', $data) && $data['code'] !== null) { + $object->setCode($data['code']); + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + $object->setCode(null); + } + if (\array_key_exists('label', $data) && $data['label'] !== null) { + $object->setLabel($data['label']); + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + $object->setLabel(null); + } + if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { + $values = []; + foreach ($data['configuration'] as $value) { + $values[] = $value; + } + $object->setConfiguration($values); + unset($data['configuration']); + } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { + $object->setConfiguration(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['code'] = $object->getCode(); + $data['label'] = $object->getLabel(); + $values = []; + foreach ($object->getConfiguration() as $value) { + $values[] = $value; + } + $data['configuration'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/PipelineStepNormalizer.php b/src/Normalizer/PipelineStepNormalizer.php index c4cbdb49..6cfd25d8 100644 --- a/src/Normalizer/PipelineStepNormalizer.php +++ b/src/Normalizer/PipelineStepNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineStepNormalizer implements DenormalizerInterface, NormalizerInterfa use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineStep::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineStep'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineStep::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineStep'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,67 +52,76 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('code', $data) && null !== $data['code']) { - $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { - $object->setCode(null); - } - if (\array_key_exists('order', $data) && null !== $data['order']) { + if (\array_key_exists('order', $data) && $data['order'] !== null) { $object->setOrder($data['order']); - } elseif (\array_key_exists('order', $data) && null === $data['order']) { + unset($data['order']); + } elseif (\array_key_exists('order', $data) && $data['order'] === null) { $object->setOrder(null); } - if (\array_key_exists('label', $data) && null !== $data['label']) { + if (\array_key_exists('code', $data) && $data['code'] !== null) { + $object->setCode($data['code']); + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + $object->setCode(null); + } + if (\array_key_exists('label', $data) && $data['label'] !== null) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && null === $data['label']) { + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { $object->setLabel(null); } - if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { - $object->setPipeline($this->denormalizer->denormalize($data['pipeline'], \Gyroscops\Api\Model\AbstractPipeline::class, 'json', $context)); - } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { + if (\array_key_exists('pipeline', $data) && $data['pipeline'] !== null) { + $object->setPipeline($this->denormalizer->denormalize($data['pipeline'], 'Gyroscops\\Api\\Model\\AbstractPipeline', 'json', $context)); + unset($data['pipeline']); + } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { $object->setPipeline(null); } - if (\array_key_exists('probes', $data) && null !== $data['probes']) { + if (\array_key_exists('probes', $data) && $data['probes'] !== null) { $values = []; foreach ($data['probes'] as $value) { $values[] = $value; } $object->setProbes($values); - } elseif (\array_key_exists('probes', $data) && null === $data['probes']) { + unset($data['probes']); + } elseif (\array_key_exists('probes', $data) && $data['probes'] === null) { $object->setProbes(null); } - if (\array_key_exists('configuration', $data) && null !== $data['configuration']) { + if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { $values_1 = []; foreach ($data['configuration'] as $value_1) { $values_1[] = $value_1; } $object->setConfiguration($values_1); - } elseif (\array_key_exists('configuration', $data) && null === $data['configuration']) { + unset($data['configuration']); + } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { $object->setConfiguration(null); } + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - $data['code'] = $object->getCode(); $data['order'] = $object->getOrder(); + $data['code'] = $object->getCode(); $data['label'] = $object->getLabel(); $data['pipeline'] = $this->normalizer->normalize($object->getPipeline(), 'json', $context); - if (null !== $object->getProbes()) { + if ($object->isInitialized('probes') && null !== $object->getProbes()) { $values = []; foreach ($object->getProbes() as $value) { $values[] = $value; @@ -126,6 +133,11 @@ public function normalize($object, $format = null, array $context = []) $values_1[] = $value_1; } $data['configuration'] = $values_1; + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; + } + } return $data; } diff --git a/src/Normalizer/PipelineStepProbeJsonldNormalizer.php b/src/Normalizer/PipelineStepProbeJsonldNormalizer.php index 20f28276..40e6b106 100644 --- a/src/Normalizer/PipelineStepProbeJsonldNormalizer.php +++ b/src/Normalizer/PipelineStepProbeJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineStepProbeJsonldNormalizer implements DenormalizerInterface, Normal use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineStepProbeJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineStepProbeJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineStepProbeJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineStepProbeJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,54 +52,64 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('code', $data) && null !== $data['code']) { + if (\array_key_exists('code', $data) && $data['code'] !== null) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { $object->setCode(null); } - if (\array_key_exists('order', $data) && null !== $data['order']) { + if (\array_key_exists('order', $data) && $data['order'] !== null) { $object->setOrder($data['order']); - } elseif (\array_key_exists('order', $data) && null === $data['order']) { + unset($data['order']); + } elseif (\array_key_exists('order', $data) && $data['order'] === null) { $object->setOrder(null); } - if (\array_key_exists('label', $data) && null !== $data['label']) { + if (\array_key_exists('label', $data) && $data['label'] !== null) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && null === $data['label']) { + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { $object->setLabel(null); } - if (\array_key_exists('step', $data) && null !== $data['step']) { + if (\array_key_exists('step', $data) && $data['step'] !== null) { $object->setStep($data['step']); - } elseif (\array_key_exists('step', $data) && null === $data['step']) { + unset($data['step']); + } elseif (\array_key_exists('step', $data) && $data['step'] === null) { $object->setStep(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -111,6 +119,11 @@ public function normalize($object, $format = null, array $context = []) $data['order'] = $object->getOrder(); $data['label'] = $object->getLabel(); $data['step'] = $object->getStep(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/PipelineStepProbeNormalizer.php b/src/Normalizer/PipelineStepProbeNormalizer.php index 719e53d7..715acfee 100644 --- a/src/Normalizer/PipelineStepProbeNormalizer.php +++ b/src/Normalizer/PipelineStepProbeNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PipelineStepProbeNormalizer implements DenormalizerInterface, NormalizerIn use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PipelineStepProbe::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PipelineStepProbe'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PipelineStepProbe::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PipelineStepProbe'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,39 +52,46 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('code', $data) && null !== $data['code']) { + if (\array_key_exists('code', $data) && $data['code'] !== null) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { $object->setCode(null); } - if (\array_key_exists('order', $data) && null !== $data['order']) { + if (\array_key_exists('order', $data) && $data['order'] !== null) { $object->setOrder($data['order']); - } elseif (\array_key_exists('order', $data) && null === $data['order']) { + unset($data['order']); + } elseif (\array_key_exists('order', $data) && $data['order'] === null) { $object->setOrder(null); } - if (\array_key_exists('label', $data) && null !== $data['label']) { + if (\array_key_exists('label', $data) && $data['label'] !== null) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && null === $data['label']) { + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { $object->setLabel(null); } - if (\array_key_exists('step', $data) && null !== $data['step']) { + if (\array_key_exists('step', $data) && $data['step'] !== null) { $object->setStep($data['step']); - } elseif (\array_key_exists('step', $data) && null === $data['step']) { + unset($data['step']); + } elseif (\array_key_exists('step', $data) && $data['step'] === null) { $object->setStep(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -96,6 +101,11 @@ public function normalize($object, $format = null, array $context = []) $data['order'] = $object->getOrder(); $data['label'] = $object->getLabel(); $data['step'] = $object->getStep(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/PipelineStepReadNormalizer.php b/src/Normalizer/PipelineStepReadNormalizer.php new file mode 100644 index 00000000..080928c9 --- /dev/null +++ b/src/Normalizer/PipelineStepReadNormalizer.php @@ -0,0 +1,107 @@ +setCode($data['code']); + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + $object->setCode(null); + } + if (\array_key_exists('label', $data) && $data['label'] !== null) { + $object->setLabel($data['label']); + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + $object->setLabel(null); + } + if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { + $values = []; + foreach ($data['configuration'] as $value) { + $values[] = $value; + } + $object->setConfiguration($values); + unset($data['configuration']); + } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { + $object->setConfiguration(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['code'] = $object->getCode(); + $data['label'] = $object->getLabel(); + $values = []; + foreach ($object->getConfiguration() as $value) { + $values[] = $value; + } + $data['configuration'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/PriceJsonldNormalizer.php b/src/Normalizer/PriceJsonldNormalizer.php index 85a4e69d..a7357306 100644 --- a/src/Normalizer/PriceJsonldNormalizer.php +++ b/src/Normalizer/PriceJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PriceJsonldNormalizer implements DenormalizerInterface, NormalizerInterfac use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\PriceJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\PriceJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\PriceJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\PriceJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,41 +52,95 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('price', $data) && null !== $data['price']) { - $object->setPrice($data['price']); - } elseif (\array_key_exists('price', $data) && null === $data['price']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId2($data['id']); + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId2(null); + } + if (\array_key_exists('buyable', $data) && $data['buyable'] !== null) { + $object->setBuyable($this->denormalizer->denormalize($data['buyable'], 'Gyroscops\\Api\\Model\\BuyableJsonld', 'json', $context)); + unset($data['buyable']); + } elseif (\array_key_exists('buyable', $data) && $data['buyable'] === null) { + $object->setBuyable(null); + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType2($this->denormalizer->denormalize($data['type'], 'Gyroscops\\Api\\Model\\SubscriptionTypeJsonld', 'json', $context)); + unset($data['type']); + } elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType2(null); + } + if (\array_key_exists('amount', $data) && $data['amount'] !== null) { + $object->setAmount($data['amount']); + unset($data['amount']); + } elseif (\array_key_exists('amount', $data) && $data['amount'] === null) { + $object->setAmount(null); + } + if (\array_key_exists('price', $data) && $data['price'] !== null) { + $object->setPrice($this->denormalizer->denormalize($data['price'], 'Gyroscops\\Api\\Model\\MoneyJsonld', 'json', $context)); + unset($data['price']); + } elseif (\array_key_exists('price', $data) && $data['price'] === null) { $object->setPrice(null); } + if (\array_key_exists('currency', $data) && $data['currency'] !== null) { + $object->setCurrency($data['currency']); + unset($data['currency']); + } elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { + $object->setCurrency(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getPrice()) { - $data['price'] = $object->getPrice(); + if ($object->isInitialized('id2') && null !== $object->getId2()) { + $data['id'] = $object->getId2(); + } + if ($object->isInitialized('buyable') && null !== $object->getBuyable()) { + $data['buyable'] = $this->normalizer->normalize($object->getBuyable(), 'json', $context); + } + if ($object->isInitialized('type2') && null !== $object->getType2()) { + $data['type'] = $this->normalizer->normalize($object->getType2(), 'json', $context); + } + $data['amount'] = $object->getAmount(); + if ($object->isInitialized('price') && null !== $object->getPrice()) { + $data['price'] = $this->normalizer->normalize($object->getPrice(), 'json', $context); + } + if ($object->isInitialized('currency') && null !== $object->getCurrency()) { + $data['currency'] = $object->getCurrency(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } return $data; diff --git a/src/Normalizer/PriceJsonldReadNormalizer.php b/src/Normalizer/PriceJsonldReadNormalizer.php new file mode 100644 index 00000000..5cbd7545 --- /dev/null +++ b/src/Normalizer/PriceJsonldReadNormalizer.php @@ -0,0 +1,121 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType2($this->denormalizer->denormalize($data['type'], 'Gyroscops\\Api\\Model\\SubscriptionTypeJsonldRead', 'json', $context)); + unset($data['type']); + } elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType2(null); + } + if (\array_key_exists('amount', $data) && $data['amount'] !== null) { + $object->setAmount($data['amount']); + unset($data['amount']); + } elseif (\array_key_exists('amount', $data) && $data['amount'] === null) { + $object->setAmount(null); + } + if (\array_key_exists('currency', $data) && $data['currency'] !== null) { + $object->setCurrency($data['currency']); + unset($data['currency']); + } elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { + $object->setCurrency(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type2') && null !== $object->getType2()) { + $data['type'] = $this->normalizer->normalize($object->getType2(), 'json', $context); + } + $data['amount'] = $object->getAmount(); + if ($object->isInitialized('currency') && null !== $object->getCurrency()) { + $data['currency'] = $object->getCurrency(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/PriceNormalizer.php b/src/Normalizer/PriceNormalizer.php index 7849dc7c..1eed5d07 100644 --- a/src/Normalizer/PriceNormalizer.php +++ b/src/Normalizer/PriceNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class PriceNormalizer implements DenormalizerInterface, NormalizerInterface, Den use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\Price::class === $type; + return $type === 'Gyroscops\\Api\\Model\\Price'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\Price::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\Price'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,26 +52,77 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('price', $data) && null !== $data['price']) { - $object->setPrice($data['price']); - } elseif (\array_key_exists('price', $data) && null === $data['price']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('buyable', $data) && $data['buyable'] !== null) { + $object->setBuyable($this->denormalizer->denormalize($data['buyable'], 'Gyroscops\\Api\\Model\\Buyable', 'json', $context)); + unset($data['buyable']); + } elseif (\array_key_exists('buyable', $data) && $data['buyable'] === null) { + $object->setBuyable(null); + } + if (\array_key_exists('type', $data) && $data['type'] !== null) { + $object->setType($this->denormalizer->denormalize($data['type'], 'Gyroscops\\Api\\Model\\SubscriptionType', 'json', $context)); + unset($data['type']); + } elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('amount', $data) && $data['amount'] !== null) { + $object->setAmount($data['amount']); + unset($data['amount']); + } elseif (\array_key_exists('amount', $data) && $data['amount'] === null) { + $object->setAmount(null); + } + if (\array_key_exists('price', $data) && $data['price'] !== null) { + $object->setPrice($this->denormalizer->denormalize($data['price'], 'Gyroscops\\Api\\Model\\Money', 'json', $context)); + unset($data['price']); + } elseif (\array_key_exists('price', $data) && $data['price'] === null) { $object->setPrice(null); } + if (\array_key_exists('currency', $data) && $data['currency'] !== null) { + $object->setCurrency($data['currency']); + unset($data['currency']); + } elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { + $object->setCurrency(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getPrice()) { - $data['price'] = $object->getPrice(); + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('buyable') && null !== $object->getBuyable()) { + $data['buyable'] = $this->normalizer->normalize($object->getBuyable(), 'json', $context); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['type'] = $this->normalizer->normalize($object->getType(), 'json', $context); + } + $data['amount'] = $object->getAmount(); + if ($object->isInitialized('price') && null !== $object->getPrice()) { + $data['price'] = $this->normalizer->normalize($object->getPrice(), 'json', $context); + } + if ($object->isInitialized('currency') && null !== $object->getCurrency()) { + $data['currency'] = $object->getCurrency(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } return $data; diff --git a/src/Normalizer/PriceReadNormalizer.php b/src/Normalizer/PriceReadNormalizer.php new file mode 100644 index 00000000..582f910f --- /dev/null +++ b/src/Normalizer/PriceReadNormalizer.php @@ -0,0 +1,111 @@ + $value) { + $values[$key] = $value; + } + $object->setType($values); + unset($data['type']); + } elseif (\array_key_exists('type', $data) && $data['type'] === null) { + $object->setType(null); + } + if (\array_key_exists('amount', $data) && $data['amount'] !== null) { + $object->setAmount($data['amount']); + unset($data['amount']); + } elseif (\array_key_exists('amount', $data) && $data['amount'] === null) { + $object->setAmount(null); + } + if (\array_key_exists('currency', $data) && $data['currency'] !== null) { + $object->setCurrency($data['currency']); + unset($data['currency']); + } elseif (\array_key_exists('currency', $data) && $data['currency'] === null) { + $object->setCurrency(null); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $values = []; + foreach ($object->getType() as $key => $value) { + $values[$key] = $value; + } + $data['type'] = $values; + } + $data['amount'] = $object->getAmount(); + if ($object->isInitialized('currency') && null !== $object->getCurrency()) { + $data['currency'] = $object->getCurrency(); + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ProbeJsonldNormalizer.php b/src/Normalizer/ProbeJsonldNormalizer.php index 7e4e0bc3..b4071730 100644 --- a/src/Normalizer/ProbeJsonldNormalizer.php +++ b/src/Normalizer/ProbeJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ProbeJsonldNormalizer implements DenormalizerInterface, NormalizerInterfac use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ProbeJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ProbeJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ProbeJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ProbeJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,49 +52,57 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('code', $data) && null !== $data['code']) { + if (\array_key_exists('code', $data) && $data['code'] !== null) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { $object->setCode(null); } - if (\array_key_exists('label', $data) && null !== $data['label']) { + if (\array_key_exists('label', $data) && $data['label'] !== null) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && null === $data['label']) { + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { $object->setLabel(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getCode()) { - $data['code'] = $object->getCode(); - } - if (null !== $object->getLabel()) { - $data['label'] = $object->getLabel(); + $data['code'] = $object->getCode(); + $data['label'] = $object->getLabel(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } return $data; diff --git a/src/Normalizer/ProbeNormalizer.php b/src/Normalizer/ProbeNormalizer.php index ab0c5432..a0c35c7f 100644 --- a/src/Normalizer/ProbeNormalizer.php +++ b/src/Normalizer/ProbeNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ProbeNormalizer implements DenormalizerInterface, NormalizerInterface, Den use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\Probe::class === $type; + return $type === 'Gyroscops\\Api\\Model\\Probe'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\Probe::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\Probe'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,34 +52,39 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('code', $data) && null !== $data['code']) { + if (\array_key_exists('code', $data) && $data['code'] !== null) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { $object->setCode(null); } - if (\array_key_exists('label', $data) && null !== $data['label']) { + if (\array_key_exists('label', $data) && $data['label'] !== null) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && null === $data['label']) { + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { $object->setLabel(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getCode()) { - $data['code'] = $object->getCode(); - } - if (null !== $object->getLabel()) { - $data['label'] = $object->getLabel(); + $data['code'] = $object->getCode(); + $data['label'] = $object->getLabel(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } return $data; diff --git a/src/Normalizer/ReferralCodeJsonldReferralCodeReadNormalizer.php b/src/Normalizer/ReferralCodeJsonldReferralCodeReadNormalizer.php index 595f6485..2a69afb5 100644 --- a/src/Normalizer/ReferralCodeJsonldReferralCodeReadNormalizer.php +++ b/src/Normalizer/ReferralCodeJsonldReferralCodeReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ReferralCodeJsonldReferralCodeReadNormalizer implements DenormalizerInterf use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ReferralCodeJsonldReferralCodeRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ReferralCodeJsonldReferralCodeRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ReferralCodeJsonldReferralCodeRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ReferralCodeJsonldReferralCodeRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,64 +52,78 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('user', $data) && null !== $data['user']) { + if (\array_key_exists('user', $data) && $data['user'] !== null) { $object->setUser($data['user']); - } elseif (\array_key_exists('user', $data) && null === $data['user']) { + unset($data['user']); + } elseif (\array_key_exists('user', $data) && $data['user'] === null) { $object->setUser(null); } - if (\array_key_exists('code', $data) && null !== $data['code']) { + if (\array_key_exists('code', $data) && $data['code'] !== null) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { $object->setCode(null); } - if (\array_key_exists('referralRequests', $data) && null !== $data['referralRequests']) { + if (\array_key_exists('referralRequests', $data) && $data['referralRequests'] !== null) { $values = []; foreach ($data['referralRequests'] as $value) { $values[] = $value; } $object->setReferralRequests($values); - } elseif (\array_key_exists('referralRequests', $data) && null === $data['referralRequests']) { + unset($data['referralRequests']); + } elseif (\array_key_exists('referralRequests', $data) && $data['referralRequests'] === null) { $object->setReferralRequests(null); } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getUser()) { + if ($object->isInitialized('user') && null !== $object->getUser()) { $data['user'] = $object->getUser(); } - if (null !== $object->getCode()) { + if ($object->isInitialized('code') && null !== $object->getCode()) { $data['code'] = $object->getCode(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/ReferralCodeJsonldReferralCodeWriteNormalizer.php b/src/Normalizer/ReferralCodeJsonldReferralCodeWriteNormalizer.php index 27c4f657..66368391 100644 --- a/src/Normalizer/ReferralCodeJsonldReferralCodeWriteNormalizer.php +++ b/src/Normalizer/ReferralCodeJsonldReferralCodeWriteNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ReferralCodeJsonldReferralCodeWriteNormalizer implements DenormalizerInter use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ReferralCodeJsonldReferralCodeWrite::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ReferralCodeJsonldReferralCodeWrite'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ReferralCodeJsonldReferralCodeWrite::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ReferralCodeJsonldReferralCodeWrite'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,42 +52,53 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('user', $data) && null !== $data['user']) { + if (\array_key_exists('user', $data) && $data['user'] !== null) { $object->setUser($data['user']); - } elseif (\array_key_exists('user', $data) && null === $data['user']) { + unset($data['user']); + } elseif (\array_key_exists('user', $data) && $data['user'] === null) { $object->setUser(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getUser()) { + if ($object->isInitialized('user') && null !== $object->getUser()) { $data['user'] = $object->getUser(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/ReferralCodeReferralCodeReadNormalizer.php b/src/Normalizer/ReferralCodeReferralCodeReadNormalizer.php index 9c1a5cf7..231dcf89 100644 --- a/src/Normalizer/ReferralCodeReferralCodeReadNormalizer.php +++ b/src/Normalizer/ReferralCodeReferralCodeReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ReferralCodeReferralCodeReadNormalizer implements DenormalizerInterface, N use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ReferralCodeReferralCodeRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ReferralCodeReferralCodeRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ReferralCodeReferralCodeRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ReferralCodeReferralCodeRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,49 +52,60 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('user', $data) && null !== $data['user']) { + if (\array_key_exists('user', $data) && $data['user'] !== null) { $object->setUser($data['user']); - } elseif (\array_key_exists('user', $data) && null === $data['user']) { + unset($data['user']); + } elseif (\array_key_exists('user', $data) && $data['user'] === null) { $object->setUser(null); } - if (\array_key_exists('code', $data) && null !== $data['code']) { + if (\array_key_exists('code', $data) && $data['code'] !== null) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { $object->setCode(null); } - if (\array_key_exists('referralRequests', $data) && null !== $data['referralRequests']) { + if (\array_key_exists('referralRequests', $data) && $data['referralRequests'] !== null) { $values = []; foreach ($data['referralRequests'] as $value) { $values[] = $value; } $object->setReferralRequests($values); - } elseif (\array_key_exists('referralRequests', $data) && null === $data['referralRequests']) { + unset($data['referralRequests']); + } elseif (\array_key_exists('referralRequests', $data) && $data['referralRequests'] === null) { $object->setReferralRequests(null); } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getUser()) { + if ($object->isInitialized('user') && null !== $object->getUser()) { $data['user'] = $object->getUser(); } - if (null !== $object->getCode()) { + if ($object->isInitialized('code') && null !== $object->getCode()) { $data['code'] = $object->getCode(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/ReferralCodeReferralCodeWriteNormalizer.php b/src/Normalizer/ReferralCodeReferralCodeWriteNormalizer.php index dab4ac42..effad2b6 100644 --- a/src/Normalizer/ReferralCodeReferralCodeWriteNormalizer.php +++ b/src/Normalizer/ReferralCodeReferralCodeWriteNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ReferralCodeReferralCodeWriteNormalizer implements DenormalizerInterface, use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ReferralCodeReferralCodeWrite::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ReferralCodeReferralCodeWrite'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ReferralCodeReferralCodeWrite::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ReferralCodeReferralCodeWrite'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,27 +52,35 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('user', $data) && null !== $data['user']) { + if (\array_key_exists('user', $data) && $data['user'] !== null) { $object->setUser($data['user']); - } elseif (\array_key_exists('user', $data) && null === $data['user']) { + unset($data['user']); + } elseif (\array_key_exists('user', $data) && $data['user'] === null) { $object->setUser(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getUser()) { + if ($object->isInitialized('user') && null !== $object->getUser()) { $data['user'] = $object->getUser(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/ReferralCodesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/ReferralCodesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..cc66ce89 --- /dev/null +++ b/src/Normalizer/ReferralCodesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ReferralCodesGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/ReferralCodesGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..5e768962 --- /dev/null +++ b/src/Normalizer/ReferralCodesGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\ReferralCodesGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ReferralCodesGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/ReferralCodesGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..098d404d --- /dev/null +++ b/src/Normalizer/ReferralCodesGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ReferralCodesGetLdjsonResponse200Normalizer.php b/src/Normalizer/ReferralCodesGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..2216ec48 --- /dev/null +++ b/src/Normalizer/ReferralCodesGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\ReferralCodeJsonldReferralCodeRead', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\ReferralCodesGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\ReferralCodesGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ReferralCodesGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/ReferralCodesGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index bc48fa60..00000000 --- a/src/Normalizer/ReferralCodesGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/ReferralCodesGetResponse200HydraSearchNormalizer.php b/src/Normalizer/ReferralCodesGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index e4ca19e0..00000000 --- a/src/Normalizer/ReferralCodesGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\ReferralCodesGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/ReferralCodesGetResponse200HydraViewNormalizer.php b/src/Normalizer/ReferralCodesGetResponse200HydraViewNormalizer.php deleted file mode 100644 index bd906d8a..00000000 --- a/src/Normalizer/ReferralCodesGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/ReferralCodesGetResponse200Normalizer.php b/src/Normalizer/ReferralCodesGetResponse200Normalizer.php deleted file mode 100644 index e937fd44..00000000 --- a/src/Normalizer/ReferralCodesGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\ReferralCodeJsonldReferralCodeRead::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\ReferralCodesGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\ReferralCodesGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/ReferralOnPremiseRequestsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/ReferralOnPremiseRequestsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..f98eba6a --- /dev/null +++ b/src/Normalizer/ReferralOnPremiseRequestsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ReferralOnPremiseRequestsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/ReferralOnPremiseRequestsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..5f959ca3 --- /dev/null +++ b/src/Normalizer/ReferralOnPremiseRequestsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\ReferralOnPremiseRequestsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ReferralOnPremiseRequestsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/ReferralOnPremiseRequestsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..32b5a161 --- /dev/null +++ b/src/Normalizer/ReferralOnPremiseRequestsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ReferralOnPremiseRequestsGetLdjsonResponse200Normalizer.php b/src/Normalizer/ReferralOnPremiseRequestsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..95056703 --- /dev/null +++ b/src/Normalizer/ReferralOnPremiseRequestsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\OnPremiseRequestJsonldOnPremiseRequestRead', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\ReferralOnPremiseRequestsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\ReferralOnPremiseRequestsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ReferralOnPremiseRequestsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/ReferralOnPremiseRequestsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 10a32740..00000000 --- a/src/Normalizer/ReferralOnPremiseRequestsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/ReferralOnPremiseRequestsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/ReferralOnPremiseRequestsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 19928397..00000000 --- a/src/Normalizer/ReferralOnPremiseRequestsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/ReferralOnPremiseRequestsGetResponse200HydraViewNormalizer.php b/src/Normalizer/ReferralOnPremiseRequestsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index c71476a9..00000000 --- a/src/Normalizer/ReferralOnPremiseRequestsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/ReferralOnPremiseRequestsGetResponse200Normalizer.php b/src/Normalizer/ReferralOnPremiseRequestsGetResponse200Normalizer.php deleted file mode 100644 index ab7a23d1..00000000 --- a/src/Normalizer/ReferralOnPremiseRequestsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\OnPremiseRequestJsonldOnPremiseRequestRead::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\ReferralOnPremiseRequestsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/ReferralRequestJsonldReferralRequestReadNormalizer.php b/src/Normalizer/ReferralRequestJsonldReferralRequestReadNormalizer.php index afc749de..fedafce4 100644 --- a/src/Normalizer/ReferralRequestJsonldReferralRequestReadNormalizer.php +++ b/src/Normalizer/ReferralRequestJsonldReferralRequestReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ReferralRequestJsonldReferralRequestReadNormalizer implements Denormalizer use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ReferralRequestJsonldReferralRequestRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ReferralRequestJsonldReferralRequestRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ReferralRequestJsonldReferralRequestRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ReferralRequestJsonldReferralRequestRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,79 +52,94 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('email', $data) && null !== $data['email']) { + if (\array_key_exists('email', $data) && $data['email'] !== null) { $object->setEmail($data['email']); - } elseif (\array_key_exists('email', $data) && null === $data['email']) { + unset($data['email']); + } elseif (\array_key_exists('email', $data) && $data['email'] === null) { $object->setEmail(null); } - if (\array_key_exists('firstName', $data) && null !== $data['firstName']) { + if (\array_key_exists('firstName', $data) && $data['firstName'] !== null) { $object->setFirstName($data['firstName']); - } elseif (\array_key_exists('firstName', $data) && null === $data['firstName']) { + unset($data['firstName']); + } elseif (\array_key_exists('firstName', $data) && $data['firstName'] === null) { $object->setFirstName(null); } - if (\array_key_exists('lastName', $data) && null !== $data['lastName']) { + if (\array_key_exists('lastName', $data) && $data['lastName'] !== null) { $object->setLastName($data['lastName']); - } elseif (\array_key_exists('lastName', $data) && null === $data['lastName']) { + unset($data['lastName']); + } elseif (\array_key_exists('lastName', $data) && $data['lastName'] === null) { $object->setLastName(null); } - if (\array_key_exists('userName', $data) && null !== $data['userName']) { + if (\array_key_exists('userName', $data) && $data['userName'] !== null) { $object->setUserName($data['userName']); - } elseif (\array_key_exists('userName', $data) && null === $data['userName']) { + unset($data['userName']); + } elseif (\array_key_exists('userName', $data) && $data['userName'] === null) { $object->setUserName(null); } - if (\array_key_exists('companyName', $data) && null !== $data['companyName']) { + if (\array_key_exists('companyName', $data) && $data['companyName'] !== null) { $object->setCompanyName($data['companyName']); - } elseif (\array_key_exists('companyName', $data) && null === $data['companyName']) { + unset($data['companyName']); + } elseif (\array_key_exists('companyName', $data) && $data['companyName'] === null) { $object->setCompanyName(null); } - if (\array_key_exists('creationDate', $data) && null !== $data['creationDate']) { + if (\array_key_exists('creationDate', $data) && $data['creationDate'] !== null) { $object->setCreationDate(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['creationDate'])); - } elseif (\array_key_exists('creationDate', $data) && null === $data['creationDate']) { + unset($data['creationDate']); + } elseif (\array_key_exists('creationDate', $data) && $data['creationDate'] === null) { $object->setCreationDate(null); } - if (\array_key_exists('referralCode', $data) && null !== $data['referralCode']) { + if (\array_key_exists('referralCode', $data) && $data['referralCode'] !== null) { $object->setReferralCode($data['referralCode']); - } elseif (\array_key_exists('referralCode', $data) && null === $data['referralCode']) { + unset($data['referralCode']); + } elseif (\array_key_exists('referralCode', $data) && $data['referralCode'] === null) { $object->setReferralCode(null); } - if (\array_key_exists('approver', $data) && null !== $data['approver']) { + if (\array_key_exists('approver', $data) && $data['approver'] !== null) { $object->setApprover($data['approver']); - } elseif (\array_key_exists('approver', $data) && null === $data['approver']) { + unset($data['approver']); + } elseif (\array_key_exists('approver', $data) && $data['approver'] === null) { $object->setApprover(null); } - if (\array_key_exists('status', $data) && null !== $data['status']) { + if (\array_key_exists('status', $data) && $data['status'] !== null) { $object->setStatus($data['status']); - } elseif (\array_key_exists('status', $data) && null === $data['status']) { + unset($data['status']); + } elseif (\array_key_exists('status', $data) && $data['status'] === null) { $object->setStatus(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -137,18 +150,23 @@ public function normalize($object, $format = null, array $context = []) $data['lastName'] = $object->getLastName(); $data['userName'] = $object->getUserName(); $data['companyName'] = $object->getCompanyName(); - if (null !== $object->getCreationDate()) { + if ($object->isInitialized('creationDate') && null !== $object->getCreationDate()) { $data['creationDate'] = $object->getCreationDate()->format('Y-m-d\\TH:i:sP'); } - if (null !== $object->getReferralCode()) { + if ($object->isInitialized('referralCode') && null !== $object->getReferralCode()) { $data['referralCode'] = $object->getReferralCode(); } - if (null !== $object->getApprover()) { + if ($object->isInitialized('approver') && null !== $object->getApprover()) { $data['approver'] = $object->getApprover(); } - if (null !== $object->getStatus()) { + if ($object->isInitialized('status') && null !== $object->getStatus()) { $data['status'] = $object->getStatus(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/ReferralRequestReferralRequestInputJsonldNormalizer.php b/src/Normalizer/ReferralRequestReferralRequestInputJsonldNormalizer.php index 6ecf1dd4..29c0de52 100644 --- a/src/Normalizer/ReferralRequestReferralRequestInputJsonldNormalizer.php +++ b/src/Normalizer/ReferralRequestReferralRequestInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ReferralRequestReferralRequestInputJsonldNormalizer implements Denormalize use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ReferralRequestReferralRequestInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ReferralRequestReferralRequestInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ReferralRequestReferralRequestInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ReferralRequestReferralRequestInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,82 +52,98 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('email', $data) && null !== $data['email']) { + if (\array_key_exists('email', $data) && $data['email'] !== null) { $object->setEmail($data['email']); - } elseif (\array_key_exists('email', $data) && null === $data['email']) { + unset($data['email']); + } elseif (\array_key_exists('email', $data) && $data['email'] === null) { $object->setEmail(null); } - if (\array_key_exists('firstName', $data) && null !== $data['firstName']) { + if (\array_key_exists('firstName', $data) && $data['firstName'] !== null) { $object->setFirstName($data['firstName']); - } elseif (\array_key_exists('firstName', $data) && null === $data['firstName']) { + unset($data['firstName']); + } elseif (\array_key_exists('firstName', $data) && $data['firstName'] === null) { $object->setFirstName(null); } - if (\array_key_exists('lastName', $data) && null !== $data['lastName']) { + if (\array_key_exists('lastName', $data) && $data['lastName'] !== null) { $object->setLastName($data['lastName']); - } elseif (\array_key_exists('lastName', $data) && null === $data['lastName']) { + unset($data['lastName']); + } elseif (\array_key_exists('lastName', $data) && $data['lastName'] === null) { $object->setLastName(null); } - if (\array_key_exists('username', $data) && null !== $data['username']) { + if (\array_key_exists('username', $data) && $data['username'] !== null) { $object->setUsername($data['username']); - } elseif (\array_key_exists('username', $data) && null === $data['username']) { + unset($data['username']); + } elseif (\array_key_exists('username', $data) && $data['username'] === null) { $object->setUsername(null); } - if (\array_key_exists('companyName', $data) && null !== $data['companyName']) { + if (\array_key_exists('companyName', $data) && $data['companyName'] !== null) { $object->setCompanyName($data['companyName']); - } elseif (\array_key_exists('companyName', $data) && null === $data['companyName']) { + unset($data['companyName']); + } elseif (\array_key_exists('companyName', $data) && $data['companyName'] === null) { $object->setCompanyName(null); } - if (\array_key_exists('referralCode', $data) && null !== $data['referralCode']) { + if (\array_key_exists('referralCode', $data) && $data['referralCode'] !== null) { $object->setReferralCode($data['referralCode']); - } elseif (\array_key_exists('referralCode', $data) && null === $data['referralCode']) { + unset($data['referralCode']); + } elseif (\array_key_exists('referralCode', $data) && $data['referralCode'] === null) { $object->setReferralCode(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getEmail()) { + if ($object->isInitialized('email') && null !== $object->getEmail()) { $data['email'] = $object->getEmail(); } - if (null !== $object->getFirstName()) { + if ($object->isInitialized('firstName') && null !== $object->getFirstName()) { $data['firstName'] = $object->getFirstName(); } - if (null !== $object->getLastName()) { + if ($object->isInitialized('lastName') && null !== $object->getLastName()) { $data['lastName'] = $object->getLastName(); } - if (null !== $object->getUsername()) { + if ($object->isInitialized('username') && null !== $object->getUsername()) { $data['username'] = $object->getUsername(); } - if (null !== $object->getCompanyName()) { + if ($object->isInitialized('companyName') && null !== $object->getCompanyName()) { $data['companyName'] = $object->getCompanyName(); } - if (null !== $object->getReferralCode()) { + if ($object->isInitialized('referralCode') && null !== $object->getReferralCode()) { $data['referralCode'] = $object->getReferralCode(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/ReferralRequestReferralRequestInputNormalizer.php b/src/Normalizer/ReferralRequestReferralRequestInputNormalizer.php index 75ea2499..c7a0b58a 100644 --- a/src/Normalizer/ReferralRequestReferralRequestInputNormalizer.php +++ b/src/Normalizer/ReferralRequestReferralRequestInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ReferralRequestReferralRequestInputNormalizer implements DenormalizerInter use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ReferralRequestReferralRequestInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ReferralRequestReferralRequestInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ReferralRequestReferralRequestInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ReferralRequestReferralRequestInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,67 +52,80 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('email', $data) && null !== $data['email']) { + if (\array_key_exists('email', $data) && $data['email'] !== null) { $object->setEmail($data['email']); - } elseif (\array_key_exists('email', $data) && null === $data['email']) { + unset($data['email']); + } elseif (\array_key_exists('email', $data) && $data['email'] === null) { $object->setEmail(null); } - if (\array_key_exists('firstName', $data) && null !== $data['firstName']) { + if (\array_key_exists('firstName', $data) && $data['firstName'] !== null) { $object->setFirstName($data['firstName']); - } elseif (\array_key_exists('firstName', $data) && null === $data['firstName']) { + unset($data['firstName']); + } elseif (\array_key_exists('firstName', $data) && $data['firstName'] === null) { $object->setFirstName(null); } - if (\array_key_exists('lastName', $data) && null !== $data['lastName']) { + if (\array_key_exists('lastName', $data) && $data['lastName'] !== null) { $object->setLastName($data['lastName']); - } elseif (\array_key_exists('lastName', $data) && null === $data['lastName']) { + unset($data['lastName']); + } elseif (\array_key_exists('lastName', $data) && $data['lastName'] === null) { $object->setLastName(null); } - if (\array_key_exists('username', $data) && null !== $data['username']) { + if (\array_key_exists('username', $data) && $data['username'] !== null) { $object->setUsername($data['username']); - } elseif (\array_key_exists('username', $data) && null === $data['username']) { + unset($data['username']); + } elseif (\array_key_exists('username', $data) && $data['username'] === null) { $object->setUsername(null); } - if (\array_key_exists('companyName', $data) && null !== $data['companyName']) { + if (\array_key_exists('companyName', $data) && $data['companyName'] !== null) { $object->setCompanyName($data['companyName']); - } elseif (\array_key_exists('companyName', $data) && null === $data['companyName']) { + unset($data['companyName']); + } elseif (\array_key_exists('companyName', $data) && $data['companyName'] === null) { $object->setCompanyName(null); } - if (\array_key_exists('referralCode', $data) && null !== $data['referralCode']) { + if (\array_key_exists('referralCode', $data) && $data['referralCode'] !== null) { $object->setReferralCode($data['referralCode']); - } elseif (\array_key_exists('referralCode', $data) && null === $data['referralCode']) { + unset($data['referralCode']); + } elseif (\array_key_exists('referralCode', $data) && $data['referralCode'] === null) { $object->setReferralCode(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getEmail()) { + if ($object->isInitialized('email') && null !== $object->getEmail()) { $data['email'] = $object->getEmail(); } - if (null !== $object->getFirstName()) { + if ($object->isInitialized('firstName') && null !== $object->getFirstName()) { $data['firstName'] = $object->getFirstName(); } - if (null !== $object->getLastName()) { + if ($object->isInitialized('lastName') && null !== $object->getLastName()) { $data['lastName'] = $object->getLastName(); } - if (null !== $object->getUsername()) { + if ($object->isInitialized('username') && null !== $object->getUsername()) { $data['username'] = $object->getUsername(); } - if (null !== $object->getCompanyName()) { + if ($object->isInitialized('companyName') && null !== $object->getCompanyName()) { $data['companyName'] = $object->getCompanyName(); } - if (null !== $object->getReferralCode()) { + if ($object->isInitialized('referralCode') && null !== $object->getReferralCode()) { $data['referralCode'] = $object->getReferralCode(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/ReferralRequestReferralRequestReadNormalizer.php b/src/Normalizer/ReferralRequestReferralRequestReadNormalizer.php index be378d47..fd6ee9ca 100644 --- a/src/Normalizer/ReferralRequestReferralRequestReadNormalizer.php +++ b/src/Normalizer/ReferralRequestReferralRequestReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ReferralRequestReferralRequestReadNormalizer implements DenormalizerInterf use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ReferralRequestReferralRequestRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ReferralRequestReferralRequestRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ReferralRequestReferralRequestRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ReferralRequestReferralRequestRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,64 +52,76 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('email', $data) && null !== $data['email']) { + if (\array_key_exists('email', $data) && $data['email'] !== null) { $object->setEmail($data['email']); - } elseif (\array_key_exists('email', $data) && null === $data['email']) { + unset($data['email']); + } elseif (\array_key_exists('email', $data) && $data['email'] === null) { $object->setEmail(null); } - if (\array_key_exists('firstName', $data) && null !== $data['firstName']) { + if (\array_key_exists('firstName', $data) && $data['firstName'] !== null) { $object->setFirstName($data['firstName']); - } elseif (\array_key_exists('firstName', $data) && null === $data['firstName']) { + unset($data['firstName']); + } elseif (\array_key_exists('firstName', $data) && $data['firstName'] === null) { $object->setFirstName(null); } - if (\array_key_exists('lastName', $data) && null !== $data['lastName']) { + if (\array_key_exists('lastName', $data) && $data['lastName'] !== null) { $object->setLastName($data['lastName']); - } elseif (\array_key_exists('lastName', $data) && null === $data['lastName']) { + unset($data['lastName']); + } elseif (\array_key_exists('lastName', $data) && $data['lastName'] === null) { $object->setLastName(null); } - if (\array_key_exists('userName', $data) && null !== $data['userName']) { + if (\array_key_exists('userName', $data) && $data['userName'] !== null) { $object->setUserName($data['userName']); - } elseif (\array_key_exists('userName', $data) && null === $data['userName']) { + unset($data['userName']); + } elseif (\array_key_exists('userName', $data) && $data['userName'] === null) { $object->setUserName(null); } - if (\array_key_exists('companyName', $data) && null !== $data['companyName']) { + if (\array_key_exists('companyName', $data) && $data['companyName'] !== null) { $object->setCompanyName($data['companyName']); - } elseif (\array_key_exists('companyName', $data) && null === $data['companyName']) { + unset($data['companyName']); + } elseif (\array_key_exists('companyName', $data) && $data['companyName'] === null) { $object->setCompanyName(null); } - if (\array_key_exists('creationDate', $data) && null !== $data['creationDate']) { + if (\array_key_exists('creationDate', $data) && $data['creationDate'] !== null) { $object->setCreationDate(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['creationDate'])); - } elseif (\array_key_exists('creationDate', $data) && null === $data['creationDate']) { + unset($data['creationDate']); + } elseif (\array_key_exists('creationDate', $data) && $data['creationDate'] === null) { $object->setCreationDate(null); } - if (\array_key_exists('referralCode', $data) && null !== $data['referralCode']) { + if (\array_key_exists('referralCode', $data) && $data['referralCode'] !== null) { $object->setReferralCode($data['referralCode']); - } elseif (\array_key_exists('referralCode', $data) && null === $data['referralCode']) { + unset($data['referralCode']); + } elseif (\array_key_exists('referralCode', $data) && $data['referralCode'] === null) { $object->setReferralCode(null); } - if (\array_key_exists('approver', $data) && null !== $data['approver']) { + if (\array_key_exists('approver', $data) && $data['approver'] !== null) { $object->setApprover($data['approver']); - } elseif (\array_key_exists('approver', $data) && null === $data['approver']) { + unset($data['approver']); + } elseif (\array_key_exists('approver', $data) && $data['approver'] === null) { $object->setApprover(null); } - if (\array_key_exists('status', $data) && null !== $data['status']) { + if (\array_key_exists('status', $data) && $data['status'] !== null) { $object->setStatus($data['status']); - } elseif (\array_key_exists('status', $data) && null === $data['status']) { + unset($data['status']); + } elseif (\array_key_exists('status', $data) && $data['status'] === null) { $object->setStatus(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -122,18 +132,23 @@ public function normalize($object, $format = null, array $context = []) $data['lastName'] = $object->getLastName(); $data['userName'] = $object->getUserName(); $data['companyName'] = $object->getCompanyName(); - if (null !== $object->getCreationDate()) { + if ($object->isInitialized('creationDate') && null !== $object->getCreationDate()) { $data['creationDate'] = $object->getCreationDate()->format('Y-m-d\\TH:i:sP'); } - if (null !== $object->getReferralCode()) { + if ($object->isInitialized('referralCode') && null !== $object->getReferralCode()) { $data['referralCode'] = $object->getReferralCode(); } - if (null !== $object->getApprover()) { + if ($object->isInitialized('approver') && null !== $object->getApprover()) { $data['approver'] = $object->getApprover(); } - if (null !== $object->getStatus()) { + if ($object->isInitialized('status') && null !== $object->getStatus()) { $data['status'] = $object->getStatus(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/ReferralRequestsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/ReferralRequestsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..677ed0f3 --- /dev/null +++ b/src/Normalizer/ReferralRequestsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ReferralRequestsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/ReferralRequestsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..1b508756 --- /dev/null +++ b/src/Normalizer/ReferralRequestsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\ReferralRequestsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ReferralRequestsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/ReferralRequestsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..017b9631 --- /dev/null +++ b/src/Normalizer/ReferralRequestsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ReferralRequestsGetLdjsonResponse200Normalizer.php b/src/Normalizer/ReferralRequestsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..1e6240ea --- /dev/null +++ b/src/Normalizer/ReferralRequestsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\ReferralRequestJsonldReferralRequestRead', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\ReferralRequestsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\ReferralRequestsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ReferralRequestsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/ReferralRequestsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 8772028d..00000000 --- a/src/Normalizer/ReferralRequestsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/ReferralRequestsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/ReferralRequestsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 7c86ec78..00000000 --- a/src/Normalizer/ReferralRequestsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\ReferralRequestsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/ReferralRequestsGetResponse200HydraViewNormalizer.php b/src/Normalizer/ReferralRequestsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index 21d12a6b..00000000 --- a/src/Normalizer/ReferralRequestsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/ReferralRequestsGetResponse200Normalizer.php b/src/Normalizer/ReferralRequestsGetResponse200Normalizer.php deleted file mode 100644 index fb05fc79..00000000 --- a/src/Normalizer/ReferralRequestsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\ReferralRequestJsonldReferralRequestRead::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\ReferralRequestsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\ReferralRequestsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/RegionJsonldNormalizer.php b/src/Normalizer/RegionJsonldNormalizer.php new file mode 100644 index 00000000..53fee96f --- /dev/null +++ b/src/Normalizer/RegionJsonldNormalizer.php @@ -0,0 +1,149 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId2($data['id']); + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId2(null); + } + if (\array_key_exists('provider', $data) && $data['provider'] !== null) { + $object->setProvider($data['provider']); + unset($data['provider']); + } elseif (\array_key_exists('provider', $data) && $data['provider'] === null) { + $object->setProvider(null); + } + if (\array_key_exists('datacenterName', $data) && $data['datacenterName'] !== null) { + $object->setDatacenterName($data['datacenterName']); + unset($data['datacenterName']); + } elseif (\array_key_exists('datacenterName', $data) && $data['datacenterName'] === null) { + $object->setDatacenterName(null); + } + if (\array_key_exists('datacenterAddress', $data) && $data['datacenterAddress'] !== null) { + $object->setDatacenterAddress($data['datacenterAddress']); + unset($data['datacenterAddress']); + } elseif (\array_key_exists('datacenterAddress', $data) && $data['datacenterAddress'] === null) { + $object->setDatacenterAddress(null); + } + if (\array_key_exists('cloudEngine', $data) && $data['cloudEngine'] !== null) { + $object->setCloudEngine($this->denormalizer->denormalize($data['cloudEngine'], 'Gyroscops\\Api\\Model\\AbstractCloudEngineJsonld', 'json', $context)); + unset($data['cloudEngine']); + } elseif (\array_key_exists('cloudEngine', $data) && $data['cloudEngine'] === null) { + $object->setCloudEngine(null); + } + if (\array_key_exists('workspaces', $data) && $data['workspaces'] !== null) { + $values = []; + foreach ($data['workspaces'] as $value) { + $values[] = $value; + } + $object->setWorkspaces($values); + unset($data['workspaces']); + } elseif (\array_key_exists('workspaces', $data) && $data['workspaces'] === null) { + $object->setWorkspaces(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['provider'] = $object->getProvider(); + $data['datacenterName'] = $object->getDatacenterName(); + $data['datacenterAddress'] = $object->getDatacenterAddress(); + if ($object->isInitialized('cloudEngine') && null !== $object->getCloudEngine()) { + $data['cloudEngine'] = $this->normalizer->normalize($object->getCloudEngine(), 'json', $context); + } + if ($object->isInitialized('workspaces') && null !== $object->getWorkspaces()) { + $values = []; + foreach ($object->getWorkspaces() as $value) { + $values[] = $value; + } + $data['workspaces'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RegionNormalizer.php b/src/Normalizer/RegionNormalizer.php new file mode 100644 index 00000000..b465d021 --- /dev/null +++ b/src/Normalizer/RegionNormalizer.php @@ -0,0 +1,131 @@ +setId($data['id']); + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('provider', $data) && $data['provider'] !== null) { + $object->setProvider($data['provider']); + unset($data['provider']); + } elseif (\array_key_exists('provider', $data) && $data['provider'] === null) { + $object->setProvider(null); + } + if (\array_key_exists('datacenterName', $data) && $data['datacenterName'] !== null) { + $object->setDatacenterName($data['datacenterName']); + unset($data['datacenterName']); + } elseif (\array_key_exists('datacenterName', $data) && $data['datacenterName'] === null) { + $object->setDatacenterName(null); + } + if (\array_key_exists('datacenterAddress', $data) && $data['datacenterAddress'] !== null) { + $object->setDatacenterAddress($data['datacenterAddress']); + unset($data['datacenterAddress']); + } elseif (\array_key_exists('datacenterAddress', $data) && $data['datacenterAddress'] === null) { + $object->setDatacenterAddress(null); + } + if (\array_key_exists('cloudEngine', $data) && $data['cloudEngine'] !== null) { + $object->setCloudEngine($this->denormalizer->denormalize($data['cloudEngine'], 'Gyroscops\\Api\\Model\\AbstractCloudEngine', 'json', $context)); + unset($data['cloudEngine']); + } elseif (\array_key_exists('cloudEngine', $data) && $data['cloudEngine'] === null) { + $object->setCloudEngine(null); + } + if (\array_key_exists('workspaces', $data) && $data['workspaces'] !== null) { + $values = []; + foreach ($data['workspaces'] as $value) { + $values[] = $value; + } + $object->setWorkspaces($values); + unset($data['workspaces']); + } elseif (\array_key_exists('workspaces', $data) && $data['workspaces'] === null) { + $object->setWorkspaces(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['provider'] = $object->getProvider(); + $data['datacenterName'] = $object->getDatacenterName(); + $data['datacenterAddress'] = $object->getDatacenterAddress(); + if ($object->isInitialized('cloudEngine') && null !== $object->getCloudEngine()) { + $data['cloudEngine'] = $this->normalizer->normalize($object->getCloudEngine(), 'json', $context); + } + if ($object->isInitialized('workspaces') && null !== $object->getWorkspaces()) { + $values = []; + foreach ($object->getWorkspaces() as $value) { + $values[] = $value; + } + $data['workspaces'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeActionsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeActionsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..fbaf1255 --- /dev/null +++ b/src/Normalizer/RuntimeActionsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeActionsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeActionsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..41c68786 --- /dev/null +++ b/src/Normalizer/RuntimeActionsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\RuntimeActionsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeActionsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeActionsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..e8bc83dc --- /dev/null +++ b/src/Normalizer/RuntimeActionsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeActionsGetLdjsonResponse200Normalizer.php b/src/Normalizer/RuntimeActionsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..f6c440c3 --- /dev/null +++ b/src/Normalizer/RuntimeActionsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\ActionJsonldRead', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\RuntimeActionsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\RuntimeActionsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeActionsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeActionsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 1d0a0fa2..00000000 --- a/src/Normalizer/RuntimeActionsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeActionsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeActionsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 6c12e8d3..00000000 --- a/src/Normalizer/RuntimeActionsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeActionsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeActionsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeActionsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index 73ed61c3..00000000 --- a/src/Normalizer/RuntimeActionsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeActionsGetResponse200Normalizer.php b/src/Normalizer/RuntimeActionsGetResponse200Normalizer.php deleted file mode 100644 index 514d2dd1..00000000 --- a/src/Normalizer/RuntimeActionsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\ActionJsonldRead::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeActionsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeActionsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeCompilationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeCompilationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..9b09d389 --- /dev/null +++ b/src/Normalizer/RuntimeCompilationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeCompilationsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeCompilationsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..7bc4f4d7 --- /dev/null +++ b/src/Normalizer/RuntimeCompilationsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\RuntimeCompilationsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeCompilationsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeCompilationsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..eca3154e --- /dev/null +++ b/src/Normalizer/RuntimeCompilationsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeCompilationsGetLdjsonResponse200Normalizer.php b/src/Normalizer/RuntimeCompilationsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..0f0360ba --- /dev/null +++ b/src/Normalizer/RuntimeCompilationsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\CompilationJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\RuntimeCompilationsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\RuntimeCompilationsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeCompilationsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeCompilationsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index dff34294..00000000 --- a/src/Normalizer/RuntimeCompilationsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeCompilationsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeCompilationsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index cfdce272..00000000 --- a/src/Normalizer/RuntimeCompilationsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeCompilationsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeCompilationsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index 4a1cfb52..00000000 --- a/src/Normalizer/RuntimeCompilationsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeCompilationsGetResponse200Normalizer.php b/src/Normalizer/RuntimeCompilationsGetResponse200Normalizer.php deleted file mode 100644 index 81f32d63..00000000 --- a/src/Normalizer/RuntimeCompilationsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\CompilationJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeCompilationsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 0e3b8cb8..00000000 --- a/src/Normalizer/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 18e0cf05..00000000 --- a/src/Normalizer/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index 23670aa0..00000000 --- a/src/Normalizer/RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionExecutionPipelineIdStepsGetResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionExecutionPipelineIdStepsGetResponse200Normalizer.php deleted file mode 100644 index fda01267..00000000 --- a/src/Normalizer/RuntimeExecutionExecutionPipelineIdStepsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\ExecutionPipelineStepJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelineIdStepsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 304dd547..00000000 --- a/src/Normalizer/RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index e911d64d..00000000 --- a/src/Normalizer/RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionExecutionPipelinesGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionExecutionPipelinesGetResponse200HydraViewNormalizer.php deleted file mode 100644 index e747a052..00000000 --- a/src/Normalizer/RuntimeExecutionExecutionPipelinesGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionExecutionPipelinesGetResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionExecutionPipelinesGetResponse200Normalizer.php deleted file mode 100644 index 6957f4d8..00000000 --- a/src/Normalizer/RuntimeExecutionExecutionPipelinesGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\ExecutionPipelineJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeExecutionExecutionPipelinesGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 9597101b..00000000 --- a/src/Normalizer/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 88e42d21..00000000 --- a/src/Normalizer/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index be0a3f57..00000000 --- a/src/Normalizer/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200Normalizer.php deleted file mode 100644 index 5f275af3..00000000 --- a/src/Normalizer/RuntimeExecutionExecutionWorkflowIdJobsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\ExecutionWorkflowJobJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowIdJobsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index db2f03b3..00000000 --- a/src/Normalizer/RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 951b5c9e..00000000 --- a/src/Normalizer/RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionExecutionWorkflowsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionExecutionWorkflowsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index 578cab5e..00000000 --- a/src/Normalizer/RuntimeExecutionExecutionWorkflowsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionExecutionWorkflowsGetResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionExecutionWorkflowsGetResponse200Normalizer.php deleted file mode 100644 index e0eb0bb2..00000000 --- a/src/Normalizer/RuntimeExecutionExecutionWorkflowsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\ExecutionWorkflowJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeExecutionExecutionWorkflowsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index b0c16441..00000000 --- a/src/Normalizer/RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 03ce5c61..00000000 --- a/src/Normalizer/RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionIdWorkflowJobsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionIdWorkflowJobsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index 2c9bda46..00000000 --- a/src/Normalizer/RuntimeExecutionIdWorkflowJobsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionIdWorkflowJobsGetResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionIdWorkflowJobsGetResponse200Normalizer.php deleted file mode 100644 index 163c3106..00000000 --- a/src/Normalizer/RuntimeExecutionIdWorkflowJobsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\ExecutionWorkflowJobJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeExecutionIdWorkflowJobsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index ae3af70f..00000000 --- a/src/Normalizer/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index c0ca280d..00000000 --- a/src/Normalizer/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index c433140c..00000000 --- a/src/Normalizer/RuntimeExecutionPipelineJobIdStepsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionPipelineJobIdStepsGetResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionPipelineJobIdStepsGetResponse200Normalizer.php deleted file mode 100644 index 3f4032ec..00000000 --- a/src/Normalizer/RuntimeExecutionPipelineJobIdStepsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\ExecutionPipelineStepJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeExecutionPipelineJobIdStepsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..b722906d --- /dev/null +++ b/src/Normalizer/RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..a11b695e --- /dev/null +++ b/src/Normalizer/RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..a78b9dc3 --- /dev/null +++ b/src/Normalizer/RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionPipelineJobsGetLdjsonResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionPipelineJobsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..02fbcc86 --- /dev/null +++ b/src/Normalizer/RuntimeExecutionPipelineJobsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\ExecutionPipelineJobJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\RuntimeExecutionPipelineJobsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionPipelineJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionPipelineJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 018f972d..00000000 --- a/src/Normalizer/RuntimeExecutionPipelineJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionPipelineJobsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionPipelineJobsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 6eb4c928..00000000 --- a/src/Normalizer/RuntimeExecutionPipelineJobsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionPipelineJobsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionPipelineJobsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index 7eea615a..00000000 --- a/src/Normalizer/RuntimeExecutionPipelineJobsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionPipelineJobsGetResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionPipelineJobsGetResponse200Normalizer.php deleted file mode 100644 index bc69ee79..00000000 --- a/src/Normalizer/RuntimeExecutionPipelineJobsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\ExecutionPipelineJobJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeExecutionPipelineJobsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..c83a57f0 --- /dev/null +++ b/src/Normalizer/RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..05328253 --- /dev/null +++ b/src/Normalizer/RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..e36c7469 --- /dev/null +++ b/src/Normalizer/RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..432e4d8a --- /dev/null +++ b/src/Normalizer/RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\ExecutionPipelineStepJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\RuntimeExecutionPipelineJobsIdStepsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index a00c7f02..00000000 --- a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 00d2665e..00000000 --- a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index 6d7035fc..00000000 --- a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200Normalizer.php deleted file mode 100644 index 8b715262..00000000 --- a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\ExecutionPipelineStepJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobIdPipelineStepsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 4c4668a5..00000000 --- a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 862ddd0a..00000000 --- a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index 9079addb..00000000 --- a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200Normalizer.php deleted file mode 100644 index b7139b46..00000000 --- a/src/Normalizer/RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\ExecutionWorkflowJobJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeExecutionWorkflowExecutionWorkflowJobsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..0807a5f1 --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..4b68652e --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\RuntimeExecutionsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..e3753f19 --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsGetLdjsonResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..e563d0ae --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\ExecutionJsonldRead', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\RuntimeExecutionsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\RuntimeExecutionsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 7e3e0753..00000000 --- a/src/Normalizer/RuntimeExecutionsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 8600cc9f..00000000 --- a/src/Normalizer/RuntimeExecutionsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index 5002ea4d..00000000 --- a/src/Normalizer/RuntimeExecutionsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionsGetResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionsGetResponse200Normalizer.php deleted file mode 100644 index 839ade6f..00000000 --- a/src/Normalizer/RuntimeExecutionsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\ExecutionJsonldRead::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeExecutionsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..01e56bda --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..104aba92 --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..620a01c5 --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..ce76393f --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\ExecutionWorkflowJobJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\RuntimeExecutionsIdWorkflowsJobsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsPipelinesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionsPipelinesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..1d4ec366 --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsPipelinesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsPipelinesGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionsPipelinesGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..9992bad5 --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsPipelinesGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\RuntimeExecutionsPipelinesGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsPipelinesGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionsPipelinesGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..6cb9c82f --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsPipelinesGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsPipelinesGetLdjsonResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionsPipelinesGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..131950d5 --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsPipelinesGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\ExecutionPipelineJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\RuntimeExecutionsPipelinesGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\RuntimeExecutionsPipelinesGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..8113c704 --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..575c1ce7 --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..33343e3a --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..afe829d6 --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\ExecutionPipelineStepJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\RuntimeExecutionsPipelinesIdStepsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..d8c9bb2b --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..af372087 --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..a06588fc --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsWorkflowsGetLdjsonResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionsWorkflowsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..8e4f1e4c --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsWorkflowsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\ExecutionWorkflowJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..882cab86 --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..4b21f5d6 --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..d0c386c0 --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..21a3bde1 --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\ExecutionWorkflowJobJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsIdJobsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..d80548fe --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..8ba2d748 --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..9d629508 --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..13c5f621 --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\ExecutionWorkflowJobJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsJobsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..07f5aeeb --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..fc3e99b9 --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..636c70ba --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200Normalizer.php b/src/Normalizer/RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..602a6bf6 --- /dev/null +++ b/src/Normalizer/RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\ExecutionPipelineStepJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\RuntimeExecutionsWorkflowsJobsIdPipelinesStepsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimePipelineIdCompilationsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimePipelineIdCompilationsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 8da63017..00000000 --- a/src/Normalizer/RuntimePipelineIdCompilationsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimePipelineIdCompilationsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimePipelineIdCompilationsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 301ef825..00000000 --- a/src/Normalizer/RuntimePipelineIdCompilationsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimePipelineIdCompilationsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimePipelineIdCompilationsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index 0eed78c2..00000000 --- a/src/Normalizer/RuntimePipelineIdCompilationsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimePipelineIdCompilationsGetResponse200Normalizer.php b/src/Normalizer/RuntimePipelineIdCompilationsGetResponse200Normalizer.php deleted file mode 100644 index 310ec103..00000000 --- a/src/Normalizer/RuntimePipelineIdCompilationsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\CompilationJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimePipelineIdCompilationsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimePipelineIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimePipelineIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index da5ae435..00000000 --- a/src/Normalizer/RuntimePipelineIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimePipelineIdStepsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimePipelineIdStepsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 67bd360f..00000000 --- a/src/Normalizer/RuntimePipelineIdStepsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimePipelineIdStepsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimePipelineIdStepsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index 675a2a1b..00000000 --- a/src/Normalizer/RuntimePipelineIdStepsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimePipelineIdStepsGetResponse200Normalizer.php b/src/Normalizer/RuntimePipelineIdStepsGetResponse200Normalizer.php deleted file mode 100644 index 35f7a24b..00000000 --- a/src/Normalizer/RuntimePipelineIdStepsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\PipelineStepJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimePipelineIdStepsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimePipelineStepIdProbesGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimePipelineStepIdProbesGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index ea3d6c55..00000000 --- a/src/Normalizer/RuntimePipelineStepIdProbesGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimePipelineStepIdProbesGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimePipelineStepIdProbesGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 46ae8fd2..00000000 --- a/src/Normalizer/RuntimePipelineStepIdProbesGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimePipelineStepIdProbesGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimePipelineStepIdProbesGetResponse200HydraViewNormalizer.php deleted file mode 100644 index dc062087..00000000 --- a/src/Normalizer/RuntimePipelineStepIdProbesGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimePipelineStepIdProbesGetResponse200Normalizer.php b/src/Normalizer/RuntimePipelineStepIdProbesGetResponse200Normalizer.php deleted file mode 100644 index 5043f9dd..00000000 --- a/src/Normalizer/RuntimePipelineStepIdProbesGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\PipelineStepProbeJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimePipelineStepIdProbesGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimePipelineStepProbesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimePipelineStepProbesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..a140c661 --- /dev/null +++ b/src/Normalizer/RuntimePipelineStepProbesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimePipelineStepProbesGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimePipelineStepProbesGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..e27d725b --- /dev/null +++ b/src/Normalizer/RuntimePipelineStepProbesGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\RuntimePipelineStepProbesGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimePipelineStepProbesGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimePipelineStepProbesGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..cdfed057 --- /dev/null +++ b/src/Normalizer/RuntimePipelineStepProbesGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimePipelineStepProbesGetLdjsonResponse200Normalizer.php b/src/Normalizer/RuntimePipelineStepProbesGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..8aa8ed23 --- /dev/null +++ b/src/Normalizer/RuntimePipelineStepProbesGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\PipelineStepProbeJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\RuntimePipelineStepProbesGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\RuntimePipelineStepProbesGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimePipelineStepProbesGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimePipelineStepProbesGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 2e841325..00000000 --- a/src/Normalizer/RuntimePipelineStepProbesGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimePipelineStepProbesGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimePipelineStepProbesGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index f9476ee9..00000000 --- a/src/Normalizer/RuntimePipelineStepProbesGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimePipelineStepProbesGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimePipelineStepProbesGetResponse200HydraViewNormalizer.php deleted file mode 100644 index 41c4a275..00000000 --- a/src/Normalizer/RuntimePipelineStepProbesGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimePipelineStepProbesGetResponse200Normalizer.php b/src/Normalizer/RuntimePipelineStepProbesGetResponse200Normalizer.php deleted file mode 100644 index 06eee471..00000000 --- a/src/Normalizer/RuntimePipelineStepProbesGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\PipelineStepProbeJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimePipelineStepProbesGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimePipelineStepsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimePipelineStepsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..5ea39faf --- /dev/null +++ b/src/Normalizer/RuntimePipelineStepsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimePipelineStepsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimePipelineStepsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..d3e7c830 --- /dev/null +++ b/src/Normalizer/RuntimePipelineStepsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\RuntimePipelineStepsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimePipelineStepsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimePipelineStepsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..a9cd8eb0 --- /dev/null +++ b/src/Normalizer/RuntimePipelineStepsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimePipelineStepsGetLdjsonResponse200Normalizer.php b/src/Normalizer/RuntimePipelineStepsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..59b13df2 --- /dev/null +++ b/src/Normalizer/RuntimePipelineStepsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\PipelineStepJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\RuntimePipelineStepsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\RuntimePipelineStepsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimePipelineStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimePipelineStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 37ecd429..00000000 --- a/src/Normalizer/RuntimePipelineStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimePipelineStepsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimePipelineStepsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 98fa2fc8..00000000 --- a/src/Normalizer/RuntimePipelineStepsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimePipelineStepsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimePipelineStepsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index eec3ccdf..00000000 --- a/src/Normalizer/RuntimePipelineStepsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimePipelineStepsGetResponse200Normalizer.php b/src/Normalizer/RuntimePipelineStepsGetResponse200Normalizer.php deleted file mode 100644 index 8dcb7651..00000000 --- a/src/Normalizer/RuntimePipelineStepsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\PipelineStepJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimePipelineStepsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimePipelinesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimePipelinesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..768952f8 --- /dev/null +++ b/src/Normalizer/RuntimePipelinesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimePipelinesGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimePipelinesGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..20133a8b --- /dev/null +++ b/src/Normalizer/RuntimePipelinesGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\RuntimePipelinesGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimePipelinesGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimePipelinesGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..620bd016 --- /dev/null +++ b/src/Normalizer/RuntimePipelinesGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimePipelinesGetLdjsonResponse200Normalizer.php b/src/Normalizer/RuntimePipelinesGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..fad7840d --- /dev/null +++ b/src/Normalizer/RuntimePipelinesGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\PipelineJsonldRead', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\RuntimePipelinesGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\RuntimePipelinesGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimePipelinesGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimePipelinesGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 491219d3..00000000 --- a/src/Normalizer/RuntimePipelinesGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimePipelinesGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimePipelinesGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index b0340aae..00000000 --- a/src/Normalizer/RuntimePipelinesGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimePipelinesGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimePipelinesGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimePipelinesGetResponse200HydraViewNormalizer.php deleted file mode 100644 index bd9912f4..00000000 --- a/src/Normalizer/RuntimePipelinesGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimePipelinesGetResponse200Normalizer.php b/src/Normalizer/RuntimePipelinesGetResponse200Normalizer.php deleted file mode 100644 index 99156bcc..00000000 --- a/src/Normalizer/RuntimePipelinesGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\PipelineJsonldRead::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimePipelinesGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimePipelinesGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..bf190484 --- /dev/null +++ b/src/Normalizer/RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..316ee002 --- /dev/null +++ b/src/Normalizer/RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..a57b92ce --- /dev/null +++ b/src/Normalizer/RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimePipelinesIdCompilationsGetLdjsonResponse200Normalizer.php b/src/Normalizer/RuntimePipelinesIdCompilationsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..d1821532 --- /dev/null +++ b/src/Normalizer/RuntimePipelinesIdCompilationsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\CompilationJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\RuntimePipelinesIdCompilationsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..13204eea --- /dev/null +++ b/src/Normalizer/RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..6d0c51b7 --- /dev/null +++ b/src/Normalizer/RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..3160f2a4 --- /dev/null +++ b/src/Normalizer/RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimePipelinesIdSchedulesGetLdjsonResponse200Normalizer.php b/src/Normalizer/RuntimePipelinesIdSchedulesGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..28b9154c --- /dev/null +++ b/src/Normalizer/RuntimePipelinesIdSchedulesGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\ScheduleJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\RuntimePipelinesIdSchedulesGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimePipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimePipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..a4319f58 --- /dev/null +++ b/src/Normalizer/RuntimePipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimePipelinesIdStepsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimePipelinesIdStepsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..f801b4fa --- /dev/null +++ b/src/Normalizer/RuntimePipelinesIdStepsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\RuntimePipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimePipelinesIdStepsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimePipelinesIdStepsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..3c9c2b8a --- /dev/null +++ b/src/Normalizer/RuntimePipelinesIdStepsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimePipelinesIdStepsGetLdjsonResponse200Normalizer.php b/src/Normalizer/RuntimePipelinesIdStepsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..e0c28f42 --- /dev/null +++ b/src/Normalizer/RuntimePipelinesIdStepsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\PipelineStepJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\RuntimePipelinesIdStepsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\RuntimePipelinesIdStepsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..5be45eff --- /dev/null +++ b/src/Normalizer/RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..3278daab --- /dev/null +++ b/src/Normalizer/RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..9f37d068 --- /dev/null +++ b/src/Normalizer/RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimePipelinesStepsIdProbesGetLdjsonResponse200Normalizer.php b/src/Normalizer/RuntimePipelinesStepsIdProbesGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..f4174a93 --- /dev/null +++ b/src/Normalizer/RuntimePipelinesStepsIdProbesGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\PipelineStepProbeJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\RuntimePipelinesStepsIdProbesGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeScheduleIdExecutionsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeScheduleIdExecutionsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index a03788e1..00000000 --- a/src/Normalizer/RuntimeScheduleIdExecutionsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeScheduleIdExecutionsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeScheduleIdExecutionsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index f3a9dcba..00000000 --- a/src/Normalizer/RuntimeScheduleIdExecutionsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeScheduleIdExecutionsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeScheduleIdExecutionsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index ed6b3618..00000000 --- a/src/Normalizer/RuntimeScheduleIdExecutionsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeScheduleIdExecutionsGetResponse200Normalizer.php b/src/Normalizer/RuntimeScheduleIdExecutionsGetResponse200Normalizer.php deleted file mode 100644 index 658d0acf..00000000 --- a/src/Normalizer/RuntimeScheduleIdExecutionsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\ExecutionJsonldRead::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeScheduleIdExecutionsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 8ce84248..00000000 --- a/src/Normalizer/RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index ed0bcf2a..00000000 --- a/src/Normalizer/RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeScheduleIdWorkflowJobsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeScheduleIdWorkflowJobsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index 7a78c45b..00000000 --- a/src/Normalizer/RuntimeScheduleIdWorkflowJobsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeScheduleIdWorkflowJobsGetResponse200Normalizer.php b/src/Normalizer/RuntimeScheduleIdWorkflowJobsGetResponse200Normalizer.php deleted file mode 100644 index 6fb0f811..00000000 --- a/src/Normalizer/RuntimeScheduleIdWorkflowJobsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\WorkflowJobJsonldRead::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeScheduleIdWorkflowJobsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeSchedulesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeSchedulesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..380aff28 --- /dev/null +++ b/src/Normalizer/RuntimeSchedulesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeSchedulesGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeSchedulesGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..b4c30d0e --- /dev/null +++ b/src/Normalizer/RuntimeSchedulesGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\RuntimeSchedulesGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeSchedulesGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeSchedulesGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..c141d46e --- /dev/null +++ b/src/Normalizer/RuntimeSchedulesGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeSchedulesGetLdjsonResponse200Normalizer.php b/src/Normalizer/RuntimeSchedulesGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..f620dace --- /dev/null +++ b/src/Normalizer/RuntimeSchedulesGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\ScheduleJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\RuntimeSchedulesGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\RuntimeSchedulesGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeSchedulesGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeSchedulesGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 19fdbbdd..00000000 --- a/src/Normalizer/RuntimeSchedulesGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeSchedulesGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeSchedulesGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 0f54b434..00000000 --- a/src/Normalizer/RuntimeSchedulesGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeSchedulesGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeSchedulesGetResponse200HydraViewNormalizer.php deleted file mode 100644 index 588db508..00000000 --- a/src/Normalizer/RuntimeSchedulesGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeSchedulesGetResponse200Normalizer.php b/src/Normalizer/RuntimeSchedulesGetResponse200Normalizer.php deleted file mode 100644 index a2bb6f64..00000000 --- a/src/Normalizer/RuntimeSchedulesGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\ScheduleJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeSchedulesGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..46ff4cc3 --- /dev/null +++ b/src/Normalizer/RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..fafe9ff9 --- /dev/null +++ b/src/Normalizer/RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..8a7c20d9 --- /dev/null +++ b/src/Normalizer/RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeSchedulesIdExecutionsGetLdjsonResponse200Normalizer.php b/src/Normalizer/RuntimeSchedulesIdExecutionsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..81b4e22a --- /dev/null +++ b/src/Normalizer/RuntimeSchedulesIdExecutionsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\ExecutionJsonldRead', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\RuntimeSchedulesIdExecutionsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeWorkflowIdJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeWorkflowIdJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index df482dab..00000000 --- a/src/Normalizer/RuntimeWorkflowIdJobsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeWorkflowIdJobsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeWorkflowIdJobsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 58efd702..00000000 --- a/src/Normalizer/RuntimeWorkflowIdJobsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeWorkflowIdJobsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeWorkflowIdJobsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index 7c25a7c0..00000000 --- a/src/Normalizer/RuntimeWorkflowIdJobsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeWorkflowIdJobsGetResponse200Normalizer.php b/src/Normalizer/RuntimeWorkflowIdJobsGetResponse200Normalizer.php deleted file mode 100644 index 180bd898..00000000 --- a/src/Normalizer/RuntimeWorkflowIdJobsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\WorkflowJobJsonldRead::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeWorkflowIdJobsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeWorkflowPipelinesGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeWorkflowPipelinesGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 5749853f..00000000 --- a/src/Normalizer/RuntimeWorkflowPipelinesGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeWorkflowPipelinesGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeWorkflowPipelinesGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 7ac3a510..00000000 --- a/src/Normalizer/RuntimeWorkflowPipelinesGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeWorkflowPipelinesGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeWorkflowPipelinesGetResponse200HydraViewNormalizer.php deleted file mode 100644 index 41dd0aab..00000000 --- a/src/Normalizer/RuntimeWorkflowPipelinesGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeWorkflowPipelinesGetResponse200Normalizer.php b/src/Normalizer/RuntimeWorkflowPipelinesGetResponse200Normalizer.php deleted file mode 100644 index 8437b2f8..00000000 --- a/src/Normalizer/RuntimeWorkflowPipelinesGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\WorkflowJobPipelineJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeWorkflowPipelinesGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index d9d8b101..00000000 --- a/src/Normalizer/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index fbe6992e..00000000 --- a/src/Normalizer/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index 0101ab4d..00000000 --- a/src/Normalizer/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200Normalizer.php b/src/Normalizer/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200Normalizer.php deleted file mode 100644 index 0b8fe02b..00000000 --- a/src/Normalizer/RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\PipelineStepJsonld::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeWorkflowWorkflowJobPipelinesIdStepsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeWorkflowsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeWorkflowsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..07d94e10 --- /dev/null +++ b/src/Normalizer/RuntimeWorkflowsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeWorkflowsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeWorkflowsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..b5275878 --- /dev/null +++ b/src/Normalizer/RuntimeWorkflowsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\RuntimeWorkflowsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeWorkflowsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeWorkflowsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..c0e2cbc7 --- /dev/null +++ b/src/Normalizer/RuntimeWorkflowsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeWorkflowsGetLdjsonResponse200Normalizer.php b/src/Normalizer/RuntimeWorkflowsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..432c198f --- /dev/null +++ b/src/Normalizer/RuntimeWorkflowsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\WorkflowJsonldRead', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\RuntimeWorkflowsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\RuntimeWorkflowsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeWorkflowsGetResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeWorkflowsGetResponse200HydraSearchHydraMappingItemNormalizer.php deleted file mode 100644 index 60f17251..00000000 --- a/src/Normalizer/RuntimeWorkflowsGetResponse200HydraSearchHydraMappingItemNormalizer.php +++ /dev/null @@ -1,105 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('variable', $data) && null !== $data['variable']) { - $object->setVariable($data['variable']); - } elseif (\array_key_exists('variable', $data) && null === $data['variable']) { - $object->setVariable(null); - } - if (\array_key_exists('property', $data) && null !== $data['property']) { - $object->setProperty($data['property']); - } elseif (\array_key_exists('property', $data) && null === $data['property']) { - $object->setProperty(null); - } - if (\array_key_exists('required', $data) && null !== $data['required']) { - $object->setRequired($data['required']); - } elseif (\array_key_exists('required', $data) && null === $data['required']) { - $object->setRequired(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getVariable()) { - $data['variable'] = $object->getVariable(); - } - if (null !== $object->getProperty()) { - $data['property'] = $object->getProperty(); - } - if (null !== $object->getRequired()) { - $data['required'] = $object->getRequired(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeWorkflowsGetResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeWorkflowsGetResponse200HydraSearchNormalizer.php deleted file mode 100644 index 3df5c309..00000000 --- a/src/Normalizer/RuntimeWorkflowsGetResponse200HydraSearchNormalizer.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:template', $data) && null !== $data['hydra:template']) { - $object->setHydraTemplate($data['hydra:template']); - } elseif (\array_key_exists('hydra:template', $data) && null === $data['hydra:template']) { - $object->setHydraTemplate(null); - } - if (\array_key_exists('hydra:variableRepresentation', $data) && null !== $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); - } elseif (\array_key_exists('hydra:variableRepresentation', $data) && null === $data['hydra:variableRepresentation']) { - $object->setHydraVariableRepresentation(null); - } - if (\array_key_exists('hydra:mapping', $data) && null !== $data['hydra:mapping']) { - $values = []; - foreach ($data['hydra:mapping'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200HydraSearchHydraMappingItem::class, 'json', $context); - } - $object->setHydraMapping($values); - } elseif (\array_key_exists('hydra:mapping', $data) && null === $data['hydra:mapping']) { - $object->setHydraMapping(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraTemplate()) { - $data['hydra:template'] = $object->getHydraTemplate(); - } - if (null !== $object->getHydraVariableRepresentation()) { - $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); - } - if (null !== $object->getHydraMapping()) { - $values = []; - foreach ($object->getHydraMapping() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:mapping'] = $values; - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeWorkflowsGetResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeWorkflowsGetResponse200HydraViewNormalizer.php deleted file mode 100644 index 3b700d5a..00000000 --- a/src/Normalizer/RuntimeWorkflowsGetResponse200HydraViewNormalizer.php +++ /dev/null @@ -1,121 +0,0 @@ -setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('hydra:first', $data) && null !== $data['hydra:first']) { - $object->setHydraFirst($data['hydra:first']); - } elseif (\array_key_exists('hydra:first', $data) && null === $data['hydra:first']) { - $object->setHydraFirst(null); - } - if (\array_key_exists('hydra:last', $data) && null !== $data['hydra:last']) { - $object->setHydraLast($data['hydra:last']); - } elseif (\array_key_exists('hydra:last', $data) && null === $data['hydra:last']) { - $object->setHydraLast(null); - } - if (\array_key_exists('hydra:previous', $data) && null !== $data['hydra:previous']) { - $object->setHydraPrevious($data['hydra:previous']); - } elseif (\array_key_exists('hydra:previous', $data) && null === $data['hydra:previous']) { - $object->setHydraPrevious(null); - } - if (\array_key_exists('hydra:next', $data) && null !== $data['hydra:next']) { - $object->setHydraNext($data['hydra:next']); - } elseif (\array_key_exists('hydra:next', $data) && null === $data['hydra:next']) { - $object->setHydraNext(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getId()) { - $data['@id'] = $object->getId(); - } - if (null !== $object->getType()) { - $data['@type'] = $object->getType(); - } - if (null !== $object->getHydraFirst()) { - $data['hydra:first'] = $object->getHydraFirst(); - } - if (null !== $object->getHydraLast()) { - $data['hydra:last'] = $object->getHydraLast(); - } - if (null !== $object->getHydraPrevious()) { - $data['hydra:previous'] = $object->getHydraPrevious(); - } - if (null !== $object->getHydraNext()) { - $data['hydra:next'] = $object->getHydraNext(); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeWorkflowsGetResponse200Normalizer.php b/src/Normalizer/RuntimeWorkflowsGetResponse200Normalizer.php deleted file mode 100644 index b507ba07..00000000 --- a/src/Normalizer/RuntimeWorkflowsGetResponse200Normalizer.php +++ /dev/null @@ -1,111 +0,0 @@ -denormalizer->denormalize($value, \Gyroscops\Api\Model\WorkflowJsonldRead::class, 'json', $context); - } - $object->setHydraMember($values); - } elseif (\array_key_exists('hydra:member', $data) && null === $data['hydra:member']) { - $object->setHydraMember(null); - } - if (\array_key_exists('hydra:totalItems', $data) && null !== $data['hydra:totalItems']) { - $object->setHydraTotalItems($data['hydra:totalItems']); - } elseif (\array_key_exists('hydra:totalItems', $data) && null === $data['hydra:totalItems']) { - $object->setHydraTotalItems(null); - } - if (\array_key_exists('hydra:view', $data) && null !== $data['hydra:view']) { - $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200HydraView::class, 'json', $context)); - } elseif (\array_key_exists('hydra:view', $data) && null === $data['hydra:view']) { - $object->setHydraView(null); - } - if (\array_key_exists('hydra:search', $data) && null !== $data['hydra:search']) { - $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], \Gyroscops\Api\Model\RuntimeWorkflowsGetResponse200HydraSearch::class, 'json', $context)); - } elseif (\array_key_exists('hydra:search', $data) && null === $data['hydra:search']) { - $object->setHydraSearch(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $values = []; - foreach ($object->getHydraMember() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['hydra:member'] = $values; - if (null !== $object->getHydraTotalItems()) { - $data['hydra:totalItems'] = $object->getHydraTotalItems(); - } - if (null !== $object->getHydraView()) { - $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); - } - if (null !== $object->getHydraSearch()) { - $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..967511ed --- /dev/null +++ b/src/Normalizer/RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..55bebe75 --- /dev/null +++ b/src/Normalizer/RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..1ed8610a --- /dev/null +++ b/src/Normalizer/RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeWorkflowsIdCompilationsGetLdjsonResponse200Normalizer.php b/src/Normalizer/RuntimeWorkflowsIdCompilationsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..b099f2a3 --- /dev/null +++ b/src/Normalizer/RuntimeWorkflowsIdCompilationsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\CompilationJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\RuntimeWorkflowsIdCompilationsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..60ed11ba --- /dev/null +++ b/src/Normalizer/RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..da735247 --- /dev/null +++ b/src/Normalizer/RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..4397418c --- /dev/null +++ b/src/Normalizer/RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeWorkflowsIdJobsGetLdjsonResponse200Normalizer.php b/src/Normalizer/RuntimeWorkflowsIdJobsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..b717f250 --- /dev/null +++ b/src/Normalizer/RuntimeWorkflowsIdJobsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\WorkflowJobJsonldRead', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\RuntimeWorkflowsIdJobsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..ef891e52 --- /dev/null +++ b/src/Normalizer/RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..0a582f29 --- /dev/null +++ b/src/Normalizer/RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..b3989ed2 --- /dev/null +++ b/src/Normalizer/RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeWorkflowsIdSchedulesGetLdjsonResponse200Normalizer.php b/src/Normalizer/RuntimeWorkflowsIdSchedulesGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..e35ab746 --- /dev/null +++ b/src/Normalizer/RuntimeWorkflowsIdSchedulesGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\ScheduleJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\RuntimeWorkflowsIdSchedulesGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..d58ca95c --- /dev/null +++ b/src/Normalizer/RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..760aca1c --- /dev/null +++ b/src/Normalizer/RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..bc8006b6 --- /dev/null +++ b/src/Normalizer/RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeWorkflowsPipelinesGetLdjsonResponse200Normalizer.php b/src/Normalizer/RuntimeWorkflowsPipelinesGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..d3a8329c --- /dev/null +++ b/src/Normalizer/RuntimeWorkflowsPipelinesGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\WorkflowJobPipelineJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\RuntimeWorkflowsPipelinesGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php b/src/Normalizer/RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php new file mode 100644 index 00000000..2693e08c --- /dev/null +++ b/src/Normalizer/RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItemNormalizer.php @@ -0,0 +1,114 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('variable', $data) && $data['variable'] !== null) { + $object->setVariable($data['variable']); + unset($data['variable']); + } elseif (\array_key_exists('variable', $data) && $data['variable'] === null) { + $object->setVariable(null); + } + if (\array_key_exists('property', $data) && $data['property'] !== null) { + $object->setProperty($data['property']); + unset($data['property']); + } elseif (\array_key_exists('property', $data) && $data['property'] === null) { + $object->setProperty(null); + } + if (\array_key_exists('required', $data) && $data['required'] !== null) { + $object->setRequired($data['required']); + unset($data['required']); + } elseif (\array_key_exists('required', $data) && $data['required'] === null) { + $object->setRequired(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('variable') && null !== $object->getVariable()) { + $data['variable'] = $object->getVariable(); + } + if ($object->isInitialized('property') && null !== $object->getProperty()) { + $data['property'] = $object->getProperty(); + } + if ($object->isInitialized('required') && null !== $object->getRequired()) { + $data['required'] = $object->getRequired(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraSearchNormalizer.php b/src/Normalizer/RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraSearchNormalizer.php new file mode 100644 index 00000000..23c1d695 --- /dev/null +++ b/src/Normalizer/RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraSearchNormalizer.php @@ -0,0 +1,122 @@ +setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:template', $data) && $data['hydra:template'] !== null) { + $object->setHydraTemplate($data['hydra:template']); + unset($data['hydra:template']); + } elseif (\array_key_exists('hydra:template', $data) && $data['hydra:template'] === null) { + $object->setHydraTemplate(null); + } + if (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] !== null) { + $object->setHydraVariableRepresentation($data['hydra:variableRepresentation']); + unset($data['hydra:variableRepresentation']); + } elseif (\array_key_exists('hydra:variableRepresentation', $data) && $data['hydra:variableRepresentation'] === null) { + $object->setHydraVariableRepresentation(null); + } + if (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] !== null) { + $values = []; + foreach ($data['hydra:mapping'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraSearchHydraMappingItem', 'json', $context); + } + $object->setHydraMapping($values); + unset($data['hydra:mapping']); + } elseif (\array_key_exists('hydra:mapping', $data) && $data['hydra:mapping'] === null) { + $object->setHydraMapping(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraTemplate') && null !== $object->getHydraTemplate()) { + $data['hydra:template'] = $object->getHydraTemplate(); + } + if ($object->isInitialized('hydraVariableRepresentation') && null !== $object->getHydraVariableRepresentation()) { + $data['hydra:variableRepresentation'] = $object->getHydraVariableRepresentation(); + } + if ($object->isInitialized('hydraMapping') && null !== $object->getHydraMapping()) { + $values = []; + foreach ($object->getHydraMapping() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:mapping'] = $values; + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraViewNormalizer.php b/src/Normalizer/RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraViewNormalizer.php new file mode 100644 index 00000000..0219d9c7 --- /dev/null +++ b/src/Normalizer/RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraViewNormalizer.php @@ -0,0 +1,132 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('hydra:first', $data) && $data['hydra:first'] !== null) { + $object->setHydraFirst($data['hydra:first']); + unset($data['hydra:first']); + } elseif (\array_key_exists('hydra:first', $data) && $data['hydra:first'] === null) { + $object->setHydraFirst(null); + } + if (\array_key_exists('hydra:last', $data) && $data['hydra:last'] !== null) { + $object->setHydraLast($data['hydra:last']); + unset($data['hydra:last']); + } elseif (\array_key_exists('hydra:last', $data) && $data['hydra:last'] === null) { + $object->setHydraLast(null); + } + if (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] !== null) { + $object->setHydraPrevious($data['hydra:previous']); + unset($data['hydra:previous']); + } elseif (\array_key_exists('hydra:previous', $data) && $data['hydra:previous'] === null) { + $object->setHydraPrevious(null); + } + if (\array_key_exists('hydra:next', $data) && $data['hydra:next'] !== null) { + $object->setHydraNext($data['hydra:next']); + unset($data['hydra:next']); + } elseif (\array_key_exists('hydra:next', $data) && $data['hydra:next'] === null) { + $object->setHydraNext(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['@id'] = $object->getId(); + } + if ($object->isInitialized('type') && null !== $object->getType()) { + $data['@type'] = $object->getType(); + } + if ($object->isInitialized('hydraFirst') && null !== $object->getHydraFirst()) { + $data['hydra:first'] = $object->getHydraFirst(); + } + if ($object->isInitialized('hydraLast') && null !== $object->getHydraLast()) { + $data['hydra:last'] = $object->getHydraLast(); + } + if ($object->isInitialized('hydraPrevious') && null !== $object->getHydraPrevious()) { + $data['hydra:previous'] = $object->getHydraPrevious(); + } + if ($object->isInitialized('hydraNext') && null !== $object->getHydraNext()) { + $data['hydra:next'] = $object->getHydraNext(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200Normalizer.php b/src/Normalizer/RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200Normalizer.php new file mode 100644 index 00000000..e8fae075 --- /dev/null +++ b/src/Normalizer/RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200Normalizer.php @@ -0,0 +1,120 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\PipelineStepJsonld', 'json', $context); + } + $object->setHydraMember($values); + unset($data['hydra:member']); + } elseif (\array_key_exists('hydra:member', $data) && $data['hydra:member'] === null) { + $object->setHydraMember(null); + } + if (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] !== null) { + $object->setHydraTotalItems($data['hydra:totalItems']); + unset($data['hydra:totalItems']); + } elseif (\array_key_exists('hydra:totalItems', $data) && $data['hydra:totalItems'] === null) { + $object->setHydraTotalItems(null); + } + if (\array_key_exists('hydra:view', $data) && $data['hydra:view'] !== null) { + $object->setHydraView($this->denormalizer->denormalize($data['hydra:view'], 'Gyroscops\\Api\\Model\\RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraView', 'json', $context)); + unset($data['hydra:view']); + } elseif (\array_key_exists('hydra:view', $data) && $data['hydra:view'] === null) { + $object->setHydraView(null); + } + if (\array_key_exists('hydra:search', $data) && $data['hydra:search'] !== null) { + $object->setHydraSearch($this->denormalizer->denormalize($data['hydra:search'], 'Gyroscops\\Api\\Model\\RuntimeWorkflowsWorkflowJobPipelinesIdStepsGetLdjsonResponse200HydraSearch', 'json', $context)); + unset($data['hydra:search']); + } elseif (\array_key_exists('hydra:search', $data) && $data['hydra:search'] === null) { + $object->setHydraSearch(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getHydraMember() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['hydra:member'] = $values; + if ($object->isInitialized('hydraTotalItems') && null !== $object->getHydraTotalItems()) { + $data['hydra:totalItems'] = $object->getHydraTotalItems(); + } + if ($object->isInitialized('hydraView') && null !== $object->getHydraView()) { + $data['hydra:view'] = $this->normalizer->normalize($object->getHydraView(), 'json', $context); + } + if ($object->isInitialized('hydraSearch') && null !== $object->getHydraSearch()) { + $data['hydra:search'] = $this->normalizer->normalize($object->getHydraSearch(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/ScheduleDeclarePipelineScheduleCommandInputJsonldNormalizer.php b/src/Normalizer/ScheduleDeclarePipelineScheduleCommandInputJsonldNormalizer.php deleted file mode 100644 index 40f4a070..00000000 --- a/src/Normalizer/ScheduleDeclarePipelineScheduleCommandInputJsonldNormalizer.php +++ /dev/null @@ -1,142 +0,0 @@ -setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { - $object->setContext(null); - } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { - $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { - $object->setPipeline($data['pipeline']); - } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { - $object->setPipeline(null); - } - if (\array_key_exists('type', $data) && null !== $data['type']) { - $object->setType2($data['type']); - } elseif (\array_key_exists('type', $data) && null === $data['type']) { - $object->setType2(null); - } - if (\array_key_exists('date', $data) && null !== $data['date']) { - $object->setDate(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['date'])); - } elseif (\array_key_exists('date', $data) && null === $data['date']) { - $object->setDate(null); - } - if (\array_key_exists('start', $data) && null !== $data['start']) { - $object->setStart(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['start'])); - } elseif (\array_key_exists('start', $data) && null === $data['start']) { - $object->setStart(null); - } - if (\array_key_exists('interval', $data) && null !== $data['interval']) { - $object->setInterval($data['interval']); - } elseif (\array_key_exists('interval', $data) && null === $data['interval']) { - $object->setInterval(null); - } - if (\array_key_exists('recurrences', $data) && null !== $data['recurrences']) { - $object->setRecurrences($data['recurrences']); - } elseif (\array_key_exists('recurrences', $data) && null === $data['recurrences']) { - $object->setRecurrences(null); - } - if (\array_key_exists('end', $data) && null !== $data['end']) { - $object->setEnd(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['end'])); - } elseif (\array_key_exists('end', $data) && null === $data['end']) { - $object->setEnd(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $data['pipeline'] = $object->getPipeline(); - if (null !== $object->getType2()) { - $data['type'] = $object->getType2(); - } - if (null !== $object->getDate()) { - $data['date'] = $object->getDate()->format('Y-m-d\\TH:i:sP'); - } - if (null !== $object->getStart()) { - $data['start'] = $object->getStart()->format('Y-m-d\\TH:i:sP'); - } - if (null !== $object->getInterval()) { - $data['interval'] = $object->getInterval(); - } - if (null !== $object->getRecurrences()) { - $data['recurrences'] = $object->getRecurrences(); - } - if (null !== $object->getEnd()) { - $data['end'] = $object->getEnd()->format('Y-m-d\\TH:i:sP'); - } - - return $data; - } -} diff --git a/src/Normalizer/ScheduleDeclarePipelineScheduleCommandInputNormalizer.php b/src/Normalizer/ScheduleDeclarePipelineScheduleCommandInputNormalizer.php deleted file mode 100644 index faad7081..00000000 --- a/src/Normalizer/ScheduleDeclarePipelineScheduleCommandInputNormalizer.php +++ /dev/null @@ -1,127 +0,0 @@ -setPipeline($data['pipeline']); - } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { - $object->setPipeline(null); - } - if (\array_key_exists('type', $data) && null !== $data['type']) { - $object->setType($data['type']); - } elseif (\array_key_exists('type', $data) && null === $data['type']) { - $object->setType(null); - } - if (\array_key_exists('date', $data) && null !== $data['date']) { - $object->setDate(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['date'])); - } elseif (\array_key_exists('date', $data) && null === $data['date']) { - $object->setDate(null); - } - if (\array_key_exists('start', $data) && null !== $data['start']) { - $object->setStart(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['start'])); - } elseif (\array_key_exists('start', $data) && null === $data['start']) { - $object->setStart(null); - } - if (\array_key_exists('interval', $data) && null !== $data['interval']) { - $object->setInterval($data['interval']); - } elseif (\array_key_exists('interval', $data) && null === $data['interval']) { - $object->setInterval(null); - } - if (\array_key_exists('recurrences', $data) && null !== $data['recurrences']) { - $object->setRecurrences($data['recurrences']); - } elseif (\array_key_exists('recurrences', $data) && null === $data['recurrences']) { - $object->setRecurrences(null); - } - if (\array_key_exists('end', $data) && null !== $data['end']) { - $object->setEnd(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['end'])); - } elseif (\array_key_exists('end', $data) && null === $data['end']) { - $object->setEnd(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $data['pipeline'] = $object->getPipeline(); - if (null !== $object->getType()) { - $data['type'] = $object->getType(); - } - if (null !== $object->getDate()) { - $data['date'] = $object->getDate()->format('Y-m-d\\TH:i:sP'); - } - if (null !== $object->getStart()) { - $data['start'] = $object->getStart()->format('Y-m-d\\TH:i:sP'); - } - if (null !== $object->getInterval()) { - $data['interval'] = $object->getInterval(); - } - if (null !== $object->getRecurrences()) { - $data['recurrences'] = $object->getRecurrences(); - } - if (null !== $object->getEnd()) { - $data['end'] = $object->getEnd()->format('Y-m-d\\TH:i:sP'); - } - - return $data; - } -} diff --git a/src/Normalizer/ScheduleJsonldNormalizer.php b/src/Normalizer/ScheduleJsonldNormalizer.php index aa453b18..94a41b99 100644 --- a/src/Normalizer/ScheduleJsonldNormalizer.php +++ b/src/Normalizer/ScheduleJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class ScheduleJsonldNormalizer implements DenormalizerInterface, NormalizerInter use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\ScheduleJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\ScheduleJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\ScheduleJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\ScheduleJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,130 +52,44 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { - $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { - $object->setId2(null); - } - if (\array_key_exists('type', $data) && null !== $data['type']) { - $object->setType2($data['type']); - } elseif (\array_key_exists('type', $data) && null === $data['type']) { - $object->setType2(null); - } - if (\array_key_exists('startAt', $data) && null !== $data['startAt']) { - $object->setStartAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['startAt'])); - } elseif (\array_key_exists('startAt', $data) && null === $data['startAt']) { - $object->setStartAt(null); - } - if (\array_key_exists('interval', $data) && null !== $data['interval']) { - $object->setInterval($data['interval']); - } elseif (\array_key_exists('interval', $data) && null === $data['interval']) { - $object->setInterval(null); - } - if (\array_key_exists('endAt', $data) && null !== $data['endAt']) { - $object->setEndAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['endAt'])); - } elseif (\array_key_exists('endAt', $data) && null === $data['endAt']) { - $object->setEndAt(null); - } - if (\array_key_exists('recurrences', $data) && null !== $data['recurrences']) { - $object->setRecurrences($data['recurrences']); - } elseif (\array_key_exists('recurrences', $data) && null === $data['recurrences']) { - $object->setRecurrences(null); - } - if (\array_key_exists('executions', $data) && null !== $data['executions']) { - $values = []; - foreach ($data['executions'] as $value) { - $values[] = $value; + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; } - $object->setExecutions($values); - } elseif (\array_key_exists('executions', $data) && null === $data['executions']) { - $object->setExecutions(null); - } - if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { - $object->setPipeline($data['pipeline']); - } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { - $object->setPipeline(null); - } - if (\array_key_exists('workflow', $data) && null !== $data['workflow']) { - $object->setWorkflow($data['workflow']); - } elseif (\array_key_exists('workflow', $data) && null === $data['workflow']) { - $object->setWorkflow(null); - } - if (\array_key_exists('owner', $data) && null !== $data['owner']) { - $object->setOwner($data['owner']); - } elseif (\array_key_exists('owner', $data) && null === $data['owner']) { - $object->setOwner(null); - } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { - $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { - $object->setWorkspace(null); - } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { - $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { - $object->setOrganization(null); } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - $data['id'] = $object->getId2(); - if (null !== $object->getType2()) { - $data['type'] = $object->getType2(); - } - if (null !== $object->getStartAt()) { - $data['startAt'] = $object->getStartAt()->format('Y-m-d\\TH:i:sP'); - } - if (null !== $object->getInterval()) { - $data['interval'] = $object->getInterval(); - } - if (null !== $object->getEndAt()) { - $data['endAt'] = $object->getEndAt()->format('Y-m-d\\TH:i:sP'); - } - if (null !== $object->getRecurrences()) { - $data['recurrences'] = $object->getRecurrences(); - } - if (null !== $object->getExecutions()) { - $values = []; - foreach ($object->getExecutions() as $value) { - $values[] = $value; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; } - $data['executions'] = $values; - } - if (null !== $object->getPipeline()) { - $data['pipeline'] = $object->getPipeline(); - } - if (null !== $object->getWorkflow()) { - $data['workflow'] = $object->getWorkflow(); } - $data['owner'] = $object->getOwner(); - $data['workspace'] = $object->getWorkspace(); - $data['organization'] = $object->getOrganization(); return $data; } diff --git a/src/Normalizer/ScheduleNormalizer.php b/src/Normalizer/ScheduleNormalizer.php deleted file mode 100644 index 72404f5b..00000000 --- a/src/Normalizer/ScheduleNormalizer.php +++ /dev/null @@ -1,169 +0,0 @@ -setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { - $object->setId(null); - } - if (\array_key_exists('type', $data) && null !== $data['type']) { - $object->setType($data['type']); - } elseif (\array_key_exists('type', $data) && null === $data['type']) { - $object->setType(null); - } - if (\array_key_exists('startAt', $data) && null !== $data['startAt']) { - $object->setStartAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['startAt'])); - } elseif (\array_key_exists('startAt', $data) && null === $data['startAt']) { - $object->setStartAt(null); - } - if (\array_key_exists('interval', $data) && null !== $data['interval']) { - $object->setInterval($data['interval']); - } elseif (\array_key_exists('interval', $data) && null === $data['interval']) { - $object->setInterval(null); - } - if (\array_key_exists('endAt', $data) && null !== $data['endAt']) { - $object->setEndAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['endAt'])); - } elseif (\array_key_exists('endAt', $data) && null === $data['endAt']) { - $object->setEndAt(null); - } - if (\array_key_exists('recurrences', $data) && null !== $data['recurrences']) { - $object->setRecurrences($data['recurrences']); - } elseif (\array_key_exists('recurrences', $data) && null === $data['recurrences']) { - $object->setRecurrences(null); - } - if (\array_key_exists('executions', $data) && null !== $data['executions']) { - $values = []; - foreach ($data['executions'] as $value) { - $values[] = $value; - } - $object->setExecutions($values); - } elseif (\array_key_exists('executions', $data) && null === $data['executions']) { - $object->setExecutions(null); - } - if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { - $object->setPipeline($data['pipeline']); - } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { - $object->setPipeline(null); - } - if (\array_key_exists('workflow', $data) && null !== $data['workflow']) { - $object->setWorkflow($data['workflow']); - } elseif (\array_key_exists('workflow', $data) && null === $data['workflow']) { - $object->setWorkflow(null); - } - if (\array_key_exists('owner', $data) && null !== $data['owner']) { - $object->setOwner($data['owner']); - } elseif (\array_key_exists('owner', $data) && null === $data['owner']) { - $object->setOwner(null); - } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { - $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { - $object->setWorkspace(null); - } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { - $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { - $object->setOrganization(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $data['id'] = $object->getId(); - if (null !== $object->getType()) { - $data['type'] = $object->getType(); - } - if (null !== $object->getStartAt()) { - $data['startAt'] = $object->getStartAt()->format('Y-m-d\\TH:i:sP'); - } - if (null !== $object->getInterval()) { - $data['interval'] = $object->getInterval(); - } - if (null !== $object->getEndAt()) { - $data['endAt'] = $object->getEndAt()->format('Y-m-d\\TH:i:sP'); - } - if (null !== $object->getRecurrences()) { - $data['recurrences'] = $object->getRecurrences(); - } - if (null !== $object->getExecutions()) { - $values = []; - foreach ($object->getExecutions() as $value) { - $values[] = $value; - } - $data['executions'] = $values; - } - if (null !== $object->getPipeline()) { - $data['pipeline'] = $object->getPipeline(); - } - if (null !== $object->getWorkflow()) { - $data['workflow'] = $object->getWorkflow(); - } - $data['owner'] = $object->getOwner(); - $data['workspace'] = $object->getWorkspace(); - $data['organization'] = $object->getOrganization(); - - return $data; - } -} diff --git a/src/Normalizer/ScheduleScheduleCommandInterfaceJsonldNormalizer.php b/src/Normalizer/ScheduleScheduleCommandInterfaceJsonldNormalizer.php deleted file mode 100644 index 15d7cbe1..00000000 --- a/src/Normalizer/ScheduleScheduleCommandInterfaceJsonldNormalizer.php +++ /dev/null @@ -1,86 +0,0 @@ -setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { - $object->setContext(null); - } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { - $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - return []; - } -} diff --git a/src/Normalizer/SecretChangeSecretValueInputJsonldNormalizer.php b/src/Normalizer/SecretChangeSecretValueInputJsonldNormalizer.php index 1771f95c..f273f498 100644 --- a/src/Normalizer/SecretChangeSecretValueInputJsonldNormalizer.php +++ b/src/Normalizer/SecretChangeSecretValueInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class SecretChangeSecretValueInputJsonldNormalizer implements DenormalizerInterf use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\SecretChangeSecretValueInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\SecretChangeSecretValueInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\SecretChangeSecretValueInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\SecretChangeSecretValueInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,81 +52,60 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { - $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { - $object->setId2(null); - } - if (\array_key_exists('contents', $data) && null !== $data['contents']) { + if (\array_key_exists('contents', $data) && $data['contents'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { - $values[$key] = $value; + $values[$key] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\OpaqueInterfaceJsonld', 'json', $context); } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { + unset($data['contents']); + } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { $object->setContents(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { - $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { - $object->setOrganization(null); - } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { - $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { - $object->setWorkspace(null); - } - if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { - $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonld::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { - $object->setIterator(null); + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getId2()) { - $data['id'] = $object->getId2(); - } - if (null !== $object->getContents()) { + if ($object->isInitialized('contents') && null !== $object->getContents()) { $values = []; foreach ($object->getContents() as $key => $value) { - $values[$key] = $value; + $values[$key] = $this->normalizer->normalize($value, 'json', $context); } $data['contents'] = $values; } - if (null !== $object->getOrganization()) { - $data['organization'] = $object->getOrganization(); - } - if (null !== $object->getWorkspace()) { - $data['workspace'] = $object->getWorkspace(); - } - if (null !== $object->getIterator()) { - $data['iterator'] = $this->normalizer->normalize($object->getIterator(), 'json', $context); + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } } return $data; diff --git a/src/Normalizer/SecretChangeSecretValueInputNormalizer.php b/src/Normalizer/SecretChangeSecretValueInputNormalizer.php index cc6bcd0c..0cb1893f 100644 --- a/src/Normalizer/SecretChangeSecretValueInputNormalizer.php +++ b/src/Normalizer/SecretChangeSecretValueInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class SecretChangeSecretValueInputNormalizer implements DenormalizerInterface, N use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\SecretChangeSecretValueInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\SecretChangeSecretValueInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\SecretChangeSecretValueInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\SecretChangeSecretValueInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,66 +52,50 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { - $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { - $object->setId(null); - } - if (\array_key_exists('contents', $data) && null !== $data['contents']) { + if (\array_key_exists('contents', $data) && $data['contents'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { - $values[$key] = $value; + $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($value as $key_1 => $value_1) { + $values_1[$key_1] = $value_1; + } + $values[$key] = $values_1; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { + unset($data['contents']); + } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { $object->setContents(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { - $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { - $object->setOrganization(null); - } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { - $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { - $object->setWorkspace(null); - } - if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { - $object->setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { - $object->setIterator(null); + foreach ($data as $key_2 => $value_2) { + if (preg_match('/.*/', (string) $key_2)) { + $object[$key_2] = $value_2; + } } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getId()) { - $data['id'] = $object->getId(); - } - if (null !== $object->getContents()) { + if ($object->isInitialized('contents') && null !== $object->getContents()) { $values = []; foreach ($object->getContents() as $key => $value) { - $values[$key] = $value; + $values_1 = []; + foreach ($value as $key_1 => $value_1) { + $values_1[$key_1] = $value_1; + } + $values[$key] = $values_1; } $data['contents'] = $values; } - if (null !== $object->getOrganization()) { - $data['organization'] = $object->getOrganization(); - } - if (null !== $object->getWorkspace()) { - $data['workspace'] = $object->getWorkspace(); - } - if (null !== $object->getIterator()) { - $data['iterator'] = $object->getIterator(); + foreach ($object as $key_2 => $value_2) { + if (preg_match('/.*/', (string) $key_2)) { + $data[$key_2] = $value_2; + } } return $data; diff --git a/src/Normalizer/SecretCreateSecretInputJsonldNormalizer.php b/src/Normalizer/SecretCreateSecretInputJsonldNormalizer.php index 8c1bfdea..f4636b30 100644 --- a/src/Normalizer/SecretCreateSecretInputJsonldNormalizer.php +++ b/src/Normalizer/SecretCreateSecretInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class SecretCreateSecretInputJsonldNormalizer implements DenormalizerInterface, use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\SecretCreateSecretInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\SecretCreateSecretInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\SecretCreateSecretInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\SecretCreateSecretInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,89 +52,78 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('description', $data) && null !== $data['description']) { + if (\array_key_exists('description', $data) && $data['description'] !== null) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && null === $data['description']) { + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { $object->setDescription(null); } - if (\array_key_exists('contents', $data) && null !== $data['contents']) { + if (\array_key_exists('contents', $data) && $data['contents'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { + unset($data['contents']); + } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { $object->setContents(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { - $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { - $object->setOrganization(null); - } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { - $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { - $object->setWorkspace(null); - } - if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { - $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonld::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { - $object->setIterator(null); + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getDescription()) { + if ($object->isInitialized('description') && null !== $object->getDescription()) { $data['description'] = $object->getDescription(); } - if (null !== $object->getContents()) { + if ($object->isInitialized('contents') && null !== $object->getContents()) { $values = []; foreach ($object->getContents() as $key => $value) { $values[$key] = $value; } $data['contents'] = $values; } - if (null !== $object->getOrganization()) { - $data['organization'] = $object->getOrganization(); - } - if (null !== $object->getWorkspace()) { - $data['workspace'] = $object->getWorkspace(); - } - if (null !== $object->getIterator()) { - $data['iterator'] = $this->normalizer->normalize($object->getIterator(), 'json', $context); + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } } return $data; diff --git a/src/Normalizer/SecretCreateSecretInputNormalizer.php b/src/Normalizer/SecretCreateSecretInputNormalizer.php index c31d0c16..9ce3230b 100644 --- a/src/Normalizer/SecretCreateSecretInputNormalizer.php +++ b/src/Normalizer/SecretCreateSecretInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class SecretCreateSecretInputNormalizer implements DenormalizerInterface, Normal use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\SecretCreateSecretInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\SecretCreateSecretInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\SecretCreateSecretInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\SecretCreateSecretInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,74 +52,60 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('description', $data) && null !== $data['description']) { + if (\array_key_exists('description', $data) && $data['description'] !== null) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && null === $data['description']) { + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { $object->setDescription(null); } - if (\array_key_exists('contents', $data) && null !== $data['contents']) { + if (\array_key_exists('contents', $data) && $data['contents'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { + unset($data['contents']); + } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { $object->setContents(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { - $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { - $object->setOrganization(null); - } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { - $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { - $object->setWorkspace(null); - } - if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { - $object->setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { - $object->setIterator(null); + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getDescription()) { + if ($object->isInitialized('description') && null !== $object->getDescription()) { $data['description'] = $object->getDescription(); } - if (null !== $object->getContents()) { + if ($object->isInitialized('contents') && null !== $object->getContents()) { $values = []; foreach ($object->getContents() as $key => $value) { $values[$key] = $value; } $data['contents'] = $values; } - if (null !== $object->getOrganization()) { - $data['organization'] = $object->getOrganization(); - } - if (null !== $object->getWorkspace()) { - $data['workspace'] = $object->getWorkspace(); - } - if (null !== $object->getIterator()) { - $data['iterator'] = $object->getIterator(); + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } } return $data; diff --git a/src/Normalizer/SecretEditNormalizer.php b/src/Normalizer/SecretEditNormalizer.php index c1a77091..417a4a82 100644 --- a/src/Normalizer/SecretEditNormalizer.php +++ b/src/Normalizer/SecretEditNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class SecretEditNormalizer implements DenormalizerInterface, NormalizerInterface use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\SecretEdit::class === $type; + return $type === 'Gyroscops\\Api\\Model\\SecretEdit'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\SecretEdit::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\SecretEdit'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,35 +52,44 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('description', $data) && null !== $data['description']) { + if (\array_key_exists('description', $data) && $data['description'] !== null) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && null === $data['description']) { + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { $object->setDescription(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getDescription()) { + if ($object->isInitialized('description') && null !== $object->getDescription()) { $data['description'] = $object->getDescription(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/SecretIdJsonldNormalizer.php b/src/Normalizer/SecretIdJsonldNormalizer.php deleted file mode 100644 index afbe04b2..00000000 --- a/src/Normalizer/SecretIdJsonldNormalizer.php +++ /dev/null @@ -1,86 +0,0 @@ -setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { - $object->setContext(null); - } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { - $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - return []; - } -} diff --git a/src/Normalizer/SecretJsonldEditNormalizer.php b/src/Normalizer/SecretJsonldEditNormalizer.php index 64dfb216..639bec3a 100644 --- a/src/Normalizer/SecretJsonldEditNormalizer.php +++ b/src/Normalizer/SecretJsonldEditNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class SecretJsonldEditNormalizer implements DenormalizerInterface, NormalizerInt use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\SecretJsonldEdit::class === $type; + return $type === 'Gyroscops\\Api\\Model\\SecretJsonldEdit'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\SecretJsonldEdit::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\SecretJsonldEdit'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,50 +52,62 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('description', $data) && null !== $data['description']) { + if (\array_key_exists('description', $data) && $data['description'] !== null) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && null === $data['description']) { + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { $object->setDescription(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getDescription()) { + if ($object->isInitialized('description') && null !== $object->getDescription()) { $data['description'] = $object->getDescription(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/SecretJsonldNormalizer.php b/src/Normalizer/SecretJsonldNormalizer.php index cdad3524..7be7c920 100644 --- a/src/Normalizer/SecretJsonldNormalizer.php +++ b/src/Normalizer/SecretJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class SecretJsonldNormalizer implements DenormalizerInterface, NormalizerInterfa use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\SecretJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\SecretJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\SecretJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\SecretJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,95 +52,104 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('slug', $data) && null !== $data['slug']) { + if (\array_key_exists('slug', $data) && $data['slug'] !== null) { $object->setSlug($data['slug']); - } elseif (\array_key_exists('slug', $data) && null === $data['slug']) { + unset($data['slug']); + } elseif (\array_key_exists('slug', $data) && $data['slug'] === null) { $object->setSlug(null); } - if (\array_key_exists('description', $data) && null !== $data['description']) { + if (\array_key_exists('description', $data) && $data['description'] !== null) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && null === $data['description']) { + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { $object->setDescription(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { + if (\array_key_exists('organization', $data) && $data['organization'] !== null) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { + unset($data['organization']); + } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { + if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { + unset($data['workspace']); + } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { $object->setWorkspace(null); } - if (\array_key_exists('contents', $data) && null !== $data['contents']) { + if (\array_key_exists('contents', $data) && $data['contents'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { + unset($data['contents']); + } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { $object->setContents(null); } - if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { - $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonld::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { - $object->setIterator(null); + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getSlug()) { + if ($object->isInitialized('slug') && null !== $object->getSlug()) { $data['slug'] = $object->getSlug(); } - if (null !== $object->getDescription()) { + if ($object->isInitialized('description') && null !== $object->getDescription()) { $data['description'] = $object->getDescription(); } - if (null !== $object->getOrganization()) { + if ($object->isInitialized('organization') && null !== $object->getOrganization()) { $data['organization'] = $object->getOrganization(); } - if (null !== $object->getWorkspace()) { + if ($object->isInitialized('workspace') && null !== $object->getWorkspace()) { $data['workspace'] = $object->getWorkspace(); } - if (null !== $object->getIterator()) { - $data['iterator'] = $this->normalizer->normalize($object->getIterator(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } return $data; diff --git a/src/Normalizer/SecretJsonldReadNormalizer.php b/src/Normalizer/SecretJsonldReadNormalizer.php index fadec0c6..c2a5237f 100644 --- a/src/Normalizer/SecretJsonldReadNormalizer.php +++ b/src/Normalizer/SecretJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class SecretJsonldReadNormalizer implements DenormalizerInterface, NormalizerInt use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\SecretJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\SecretJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\SecretJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\SecretJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,71 +52,95 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('description', $data) && null !== $data['description']) { + if (\array_key_exists('description', $data) && $data['description'] !== null) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && null === $data['description']) { + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { $object->setDescription(null); } - if (\array_key_exists('contents', $data) && null !== $data['contents']) { + if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + $object->setOrganization($data['organization']); + unset($data['organization']); + } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + $object->setOrganization(null); + } + if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + $object->setWorkspace($data['workspace']); + unset($data['workspace']); + } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + $object->setWorkspace(null); + } + if (\array_key_exists('contents', $data) && $data['contents'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { + unset($data['contents']); + } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { $object->setContents(null); } - if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { - $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonldRead::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { - $object->setIterator(null); + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getDescription()) { + if ($object->isInitialized('description') && null !== $object->getDescription()) { $data['description'] = $object->getDescription(); } - if (null !== $object->getIterator()) { - $data['iterator'] = $this->normalizer->normalize($object->getIterator(), 'json', $context); + if ($object->isInitialized('organization') && null !== $object->getOrganization()) { + $data['organization'] = $object->getOrganization(); + } + if ($object->isInitialized('workspace') && null !== $object->getWorkspace()) { + $data['workspace'] = $object->getWorkspace(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } return $data; diff --git a/src/Normalizer/SecretNormalizer.php b/src/Normalizer/SecretNormalizer.php index 7d51be14..3bef2c1e 100644 --- a/src/Normalizer/SecretNormalizer.php +++ b/src/Normalizer/SecretNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class SecretNormalizer implements DenormalizerInterface, NormalizerInterface, De use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\Secret::class === $type; + return $type === 'Gyroscops\\Api\\Model\\Secret'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\Secret::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\Secret'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,80 +52,86 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('slug', $data) && null !== $data['slug']) { + if (\array_key_exists('slug', $data) && $data['slug'] !== null) { $object->setSlug($data['slug']); - } elseif (\array_key_exists('slug', $data) && null === $data['slug']) { + unset($data['slug']); + } elseif (\array_key_exists('slug', $data) && $data['slug'] === null) { $object->setSlug(null); } - if (\array_key_exists('description', $data) && null !== $data['description']) { + if (\array_key_exists('description', $data) && $data['description'] !== null) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && null === $data['description']) { + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { $object->setDescription(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { + if (\array_key_exists('organization', $data) && $data['organization'] !== null) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { + unset($data['organization']); + } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { $object->setOrganization(null); } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { + if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { + unset($data['workspace']); + } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { $object->setWorkspace(null); } - if (\array_key_exists('contents', $data) && null !== $data['contents']) { + if (\array_key_exists('contents', $data) && $data['contents'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { + unset($data['contents']); + } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { $object->setContents(null); } - if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { - $object->setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { - $object->setIterator(null); + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getSlug()) { + if ($object->isInitialized('slug') && null !== $object->getSlug()) { $data['slug'] = $object->getSlug(); } - if (null !== $object->getDescription()) { + if ($object->isInitialized('description') && null !== $object->getDescription()) { $data['description'] = $object->getDescription(); } - if (null !== $object->getOrganization()) { + if ($object->isInitialized('organization') && null !== $object->getOrganization()) { $data['organization'] = $object->getOrganization(); } - if (null !== $object->getWorkspace()) { + if ($object->isInitialized('workspace') && null !== $object->getWorkspace()) { $data['workspace'] = $object->getWorkspace(); } - if (null !== $object->getIterator()) { - $data['iterator'] = $object->getIterator(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } return $data; diff --git a/src/Normalizer/SecretReadNormalizer.php b/src/Normalizer/SecretReadNormalizer.php index c3bf9b14..1804ec0d 100644 --- a/src/Normalizer/SecretReadNormalizer.php +++ b/src/Normalizer/SecretReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class SecretReadNormalizer implements DenormalizerInterface, NormalizerInterface use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\SecretRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\SecretRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\SecretRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\SecretRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,56 +52,77 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('description', $data) && null !== $data['description']) { + if (\array_key_exists('description', $data) && $data['description'] !== null) { $object->setDescription($data['description']); - } elseif (\array_key_exists('description', $data) && null === $data['description']) { + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { $object->setDescription(null); } - if (\array_key_exists('contents', $data) && null !== $data['contents']) { + if (\array_key_exists('organization', $data) && $data['organization'] !== null) { + $object->setOrganization($data['organization']); + unset($data['organization']); + } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { + $object->setOrganization(null); + } + if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + $object->setWorkspace($data['workspace']); + unset($data['workspace']); + } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { + $object->setWorkspace(null); + } + if (\array_key_exists('contents', $data) && $data['contents'] !== null) { $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['contents'] as $key => $value) { $values[$key] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { + unset($data['contents']); + } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { $object->setContents(null); } - if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { - $object->setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { - $object->setIterator(null); + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getDescription()) { + if ($object->isInitialized('description') && null !== $object->getDescription()) { $data['description'] = $object->getDescription(); } - if (null !== $object->getIterator()) { - $data['iterator'] = $object->getIterator(); + if ($object->isInitialized('organization') && null !== $object->getOrganization()) { + $data['organization'] = $object->getOrganization(); + } + if ($object->isInitialized('workspace') && null !== $object->getWorkspace()) { + $data['workspace'] = $object->getWorkspace(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } } return $data; diff --git a/src/Normalizer/SecretRemoveSecretValueInputJsonldNormalizer.php b/src/Normalizer/SecretRemoveSecretValueInputJsonldNormalizer.php index b8d97feb..84e909ba 100644 --- a/src/Normalizer/SecretRemoveSecretValueInputJsonldNormalizer.php +++ b/src/Normalizer/SecretRemoveSecretValueInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class SecretRemoveSecretValueInputJsonldNormalizer implements DenormalizerInterf use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\SecretRemoveSecretValueInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\SecretRemoveSecretValueInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\SecretRemoveSecretValueInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\SecretRemoveSecretValueInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,81 +52,60 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { - $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { - $object->setId2(null); - } - if (\array_key_exists('contents', $data) && null !== $data['contents']) { + if (\array_key_exists('contents', $data) && $data['contents'] !== null) { $values = []; foreach ($data['contents'] as $value) { $values[] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { + unset($data['contents']); + } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { $object->setContents(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { - $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { - $object->setOrganization(null); - } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { - $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { - $object->setWorkspace(null); - } - if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { - $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonld::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { - $object->setIterator(null); + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getId2()) { - $data['id'] = $object->getId2(); - } - if (null !== $object->getContents()) { + if ($object->isInitialized('contents') && null !== $object->getContents()) { $values = []; foreach ($object->getContents() as $value) { $values[] = $value; } $data['contents'] = $values; } - if (null !== $object->getOrganization()) { - $data['organization'] = $object->getOrganization(); - } - if (null !== $object->getWorkspace()) { - $data['workspace'] = $object->getWorkspace(); - } - if (null !== $object->getIterator()) { - $data['iterator'] = $this->normalizer->normalize($object->getIterator(), 'json', $context); + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } return $data; diff --git a/src/Normalizer/SecretRemoveSecretValueInputNormalizer.php b/src/Normalizer/SecretRemoveSecretValueInputNormalizer.php index 20253ea9..32ffd515 100644 --- a/src/Normalizer/SecretRemoveSecretValueInputNormalizer.php +++ b/src/Normalizer/SecretRemoveSecretValueInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class SecretRemoveSecretValueInputNormalizer implements DenormalizerInterface, N use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\SecretRemoveSecretValueInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\SecretRemoveSecretValueInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\SecretRemoveSecretValueInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\SecretRemoveSecretValueInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,66 +52,42 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { - $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { - $object->setId(null); - } - if (\array_key_exists('contents', $data) && null !== $data['contents']) { + if (\array_key_exists('contents', $data) && $data['contents'] !== null) { $values = []; foreach ($data['contents'] as $value) { $values[] = $value; } $object->setContents($values); - } elseif (\array_key_exists('contents', $data) && null === $data['contents']) { + unset($data['contents']); + } elseif (\array_key_exists('contents', $data) && $data['contents'] === null) { $object->setContents(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { - $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { - $object->setOrganization(null); - } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { - $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { - $object->setWorkspace(null); - } - if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { - $object->setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { - $object->setIterator(null); + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getId()) { - $data['id'] = $object->getId(); - } - if (null !== $object->getContents()) { + if ($object->isInitialized('contents') && null !== $object->getContents()) { $values = []; foreach ($object->getContents() as $value) { $values[] = $value; } $data['contents'] = $values; } - if (null !== $object->getOrganization()) { - $data['organization'] = $object->getOrganization(); - } - if (null !== $object->getWorkspace()) { - $data['workspace'] = $object->getWorkspace(); - } - if (null !== $object->getIterator()) { - $data['iterator'] = $object->getIterator(); + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } } return $data; diff --git a/src/Normalizer/StepInputJsonldNormalizer.php b/src/Normalizer/StepInputJsonldNormalizer.php deleted file mode 100644 index ec207c47..00000000 --- a/src/Normalizer/StepInputJsonldNormalizer.php +++ /dev/null @@ -1,138 +0,0 @@ -setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { - $object->setContext(null); - } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { - $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('code', $data) && null !== $data['code']) { - $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { - $object->setCode(null); - } - if (\array_key_exists('label', $data) && null !== $data['label']) { - $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && null === $data['label']) { - $object->setLabel(null); - } - if (\array_key_exists('configuration', $data) && null !== $data['configuration']) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); - foreach ($data['configuration'] as $key => $value) { - $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); - foreach ($value as $key_1 => $value_1) { - $values_1[$key_1] = $value_1; - } - $values[$key] = $values_1; - } - $object->setConfiguration($values); - } elseif (\array_key_exists('configuration', $data) && null === $data['configuration']) { - $object->setConfiguration(null); - } - if (\array_key_exists('probes', $data) && null !== $data['probes']) { - $values_2 = []; - foreach ($data['probes'] as $value_2) { - $values_2[] = $this->denormalizer->denormalize($value_2, \Gyroscops\Api\Model\ProbeJsonld::class, 'json', $context); - } - $object->setProbes($values_2); - } elseif (\array_key_exists('probes', $data) && null === $data['probes']) { - $object->setProbes(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $data['code'] = $object->getCode(); - $data['label'] = $object->getLabel(); - $values = []; - foreach ($object->getConfiguration() as $key => $value) { - $values_1 = []; - foreach ($value as $key_1 => $value_1) { - $values_1[$key_1] = $value_1; - } - $values[$key] = $values_1; - } - $data['configuration'] = $values; - if (null !== $object->getProbes()) { - $values_2 = []; - foreach ($object->getProbes() as $value_2) { - $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); - } - $data['probes'] = $values_2; - } - - return $data; - } -} diff --git a/src/Normalizer/StepInputNormalizer.php b/src/Normalizer/StepInputNormalizer.php deleted file mode 100644 index 812f1344..00000000 --- a/src/Normalizer/StepInputNormalizer.php +++ /dev/null @@ -1,123 +0,0 @@ -setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { - $object->setCode(null); - } - if (\array_key_exists('label', $data) && null !== $data['label']) { - $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && null === $data['label']) { - $object->setLabel(null); - } - if (\array_key_exists('configuration', $data) && null !== $data['configuration']) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); - foreach ($data['configuration'] as $key => $value) { - $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); - foreach ($value as $key_1 => $value_1) { - $values_1[$key_1] = $value_1; - } - $values[$key] = $values_1; - } - $object->setConfiguration($values); - } elseif (\array_key_exists('configuration', $data) && null === $data['configuration']) { - $object->setConfiguration(null); - } - if (\array_key_exists('probes', $data) && null !== $data['probes']) { - $values_2 = []; - foreach ($data['probes'] as $value_2) { - $values_2[] = $this->denormalizer->denormalize($value_2, \Gyroscops\Api\Model\Probe::class, 'json', $context); - } - $object->setProbes($values_2); - } elseif (\array_key_exists('probes', $data) && null === $data['probes']) { - $object->setProbes(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $data['code'] = $object->getCode(); - $data['label'] = $object->getLabel(); - $values = []; - foreach ($object->getConfiguration() as $key => $value) { - $values_1 = []; - foreach ($value as $key_1 => $value_1) { - $values_1[$key_1] = $value_1; - } - $values[$key] = $values_1; - } - $data['configuration'] = $values; - if (null !== $object->getProbes()) { - $values_2 = []; - foreach ($object->getProbes() as $value_2) { - $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); - } - $data['probes'] = $values_2; - } - - return $data; - } -} diff --git a/src/Normalizer/StepJsonldNormalizer.php b/src/Normalizer/StepJsonldNormalizer.php new file mode 100644 index 00000000..c5edfc58 --- /dev/null +++ b/src/Normalizer/StepJsonldNormalizer.php @@ -0,0 +1,140 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['configuration'] as $key => $value) { + $values[$key] = $value; + } + $object->setConfiguration($values); + unset($data['configuration']); + } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { + $object->setConfiguration(null); + } + if (\array_key_exists('code', $data) && $data['code'] !== null) { + $object->setCode($data['code']); + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + $object->setCode(null); + } + if (\array_key_exists('label', $data) && $data['label'] !== null) { + $object->setLabel($data['label']); + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + $object->setLabel(null); + } + if (\array_key_exists('probes', $data) && $data['probes'] !== null) { + $values_1 = []; + foreach ($data['probes'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'Gyroscops\\Api\\Model\\ProbeJsonld', 'json', $context); + } + $object->setProbes($values_1); + unset($data['probes']); + } elseif (\array_key_exists('probes', $data) && $data['probes'] === null) { + $object->setProbes(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getConfiguration() as $key => $value) { + $values[$key] = $value; + } + $data['configuration'] = $values; + $data['code'] = $object->getCode(); + $data['label'] = $object->getLabel(); + $values_1 = []; + foreach ($object->getProbes() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['probes'] = $values_1; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } + } + + return $data; + } +} diff --git a/src/Normalizer/StepNormalizer.php b/src/Normalizer/StepNormalizer.php new file mode 100644 index 00000000..ee0db8d4 --- /dev/null +++ b/src/Normalizer/StepNormalizer.php @@ -0,0 +1,122 @@ + $value) { + $values[$key] = $value; + } + $object->setConfiguration($values); + unset($data['configuration']); + } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { + $object->setConfiguration(null); + } + if (\array_key_exists('code', $data) && $data['code'] !== null) { + $object->setCode($data['code']); + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + $object->setCode(null); + } + if (\array_key_exists('label', $data) && $data['label'] !== null) { + $object->setLabel($data['label']); + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + $object->setLabel(null); + } + if (\array_key_exists('probes', $data) && $data['probes'] !== null) { + $values_1 = []; + foreach ($data['probes'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'Gyroscops\\Api\\Model\\Probe', 'json', $context); + } + $object->setProbes($values_1); + unset($data['probes']); + } elseif (\array_key_exists('probes', $data) && $data['probes'] === null) { + $object->setProbes(null); + } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getConfiguration() as $key => $value) { + $values[$key] = $value; + } + $data['configuration'] = $values; + $data['code'] = $object->getCode(); + $data['label'] = $object->getLabel(); + $values_1 = []; + foreach ($object->getProbes() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['probes'] = $values_1; + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } + } + + return $data; + } +} diff --git a/src/Normalizer/SubscriptionJsonldNormalizer.php b/src/Normalizer/SubscriptionJsonldNormalizer.php index ced12f2e..cee10f21 100644 --- a/src/Normalizer/SubscriptionJsonldNormalizer.php +++ b/src/Normalizer/SubscriptionJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class SubscriptionJsonldNormalizer implements DenormalizerInterface, NormalizerI use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\SubscriptionJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\SubscriptionJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\SubscriptionJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\SubscriptionJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,77 +52,88 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { + if (\array_key_exists('organization', $data) && $data['organization'] !== null) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { + unset($data['organization']); + } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { $object->setOrganization(null); } - if (\array_key_exists('offer', $data) && null !== $data['offer']) { + if (\array_key_exists('offer', $data) && $data['offer'] !== null) { $object->setOffer($data['offer']); - } elseif (\array_key_exists('offer', $data) && null === $data['offer']) { + unset($data['offer']); + } elseif (\array_key_exists('offer', $data) && $data['offer'] === null) { $object->setOffer(null); } - if (\array_key_exists('options', $data) && null !== $data['options']) { + if (\array_key_exists('options', $data) && $data['options'] !== null) { $values = []; foreach ($data['options'] as $value) { $values[] = $value; } $object->setOptions($values); - } elseif (\array_key_exists('options', $data) && null === $data['options']) { + unset($data['options']); + } elseif (\array_key_exists('options', $data) && $data['options'] === null) { $object->setOptions(null); } - if (\array_key_exists('cost', $data) && null !== $data['cost']) { - $object->setCost($this->denormalizer->denormalize($data['cost'], \Gyroscops\Api\Model\PriceJsonld::class, 'json', $context)); - } elseif (\array_key_exists('cost', $data) && null === $data['cost']) { + if (\array_key_exists('cost', $data) && $data['cost'] !== null) { + $object->setCost($this->denormalizer->denormalize($data['cost'], 'Gyroscops\\Api\\Model\\PriceJsonld', 'json', $context)); + unset($data['cost']); + } elseif (\array_key_exists('cost', $data) && $data['cost'] === null) { $object->setCost(null); } - if (\array_key_exists('periods', $data) && null !== $data['periods']) { + if (\array_key_exists('periods', $data) && $data['periods'] !== null) { $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['periods'] as $key => $value_1) { $values_1[$key] = $value_1; } $object->setPeriods($values_1); - } elseif (\array_key_exists('periods', $data) && null === $data['periods']) { + unset($data['periods']); + } elseif (\array_key_exists('periods', $data) && $data['periods'] === null) { $object->setPeriods(null); } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; $data['organization'] = $object->getOrganization(); - if (null !== $object->getOffer()) { + if ($object->isInitialized('offer') && null !== $object->getOffer()) { $data['offer'] = $object->getOffer(); } - if (null !== $object->getOptions()) { + if ($object->isInitialized('options') && null !== $object->getOptions()) { $values = []; foreach ($object->getOptions() as $value) { $values[] = $value; @@ -132,13 +141,18 @@ public function normalize($object, $format = null, array $context = []) $data['options'] = $values; } $data['cost'] = $this->normalizer->normalize($object->getCost(), 'json', $context); - if (null !== $object->getPeriods()) { + if ($object->isInitialized('periods') && null !== $object->getPeriods()) { $values_1 = []; foreach ($object->getPeriods() as $key => $value_1) { $values_1[$key] = $value_1; } $data['periods'] = $values_1; } + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } + } return $data; } diff --git a/src/Normalizer/SubscriptionNormalizer.php b/src/Normalizer/SubscriptionNormalizer.php index ed27a453..803308c6 100644 --- a/src/Normalizer/SubscriptionNormalizer.php +++ b/src/Normalizer/SubscriptionNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class SubscriptionNormalizer implements DenormalizerInterface, NormalizerInterfa use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\Subscription::class === $type; + return $type === 'Gyroscops\\Api\\Model\\Subscription'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\Subscription::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\Subscription'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,62 +52,70 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { + if (\array_key_exists('organization', $data) && $data['organization'] !== null) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { + unset($data['organization']); + } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { $object->setOrganization(null); } - if (\array_key_exists('offer', $data) && null !== $data['offer']) { + if (\array_key_exists('offer', $data) && $data['offer'] !== null) { $object->setOffer($data['offer']); - } elseif (\array_key_exists('offer', $data) && null === $data['offer']) { + unset($data['offer']); + } elseif (\array_key_exists('offer', $data) && $data['offer'] === null) { $object->setOffer(null); } - if (\array_key_exists('options', $data) && null !== $data['options']) { + if (\array_key_exists('options', $data) && $data['options'] !== null) { $values = []; foreach ($data['options'] as $value) { $values[] = $value; } $object->setOptions($values); - } elseif (\array_key_exists('options', $data) && null === $data['options']) { + unset($data['options']); + } elseif (\array_key_exists('options', $data) && $data['options'] === null) { $object->setOptions(null); } - if (\array_key_exists('cost', $data) && null !== $data['cost']) { - $object->setCost($this->denormalizer->denormalize($data['cost'], \Gyroscops\Api\Model\Price::class, 'json', $context)); - } elseif (\array_key_exists('cost', $data) && null === $data['cost']) { + if (\array_key_exists('cost', $data) && $data['cost'] !== null) { + $object->setCost($this->denormalizer->denormalize($data['cost'], 'Gyroscops\\Api\\Model\\Price', 'json', $context)); + unset($data['cost']); + } elseif (\array_key_exists('cost', $data) && $data['cost'] === null) { $object->setCost(null); } - if (\array_key_exists('periods', $data) && null !== $data['periods']) { + if (\array_key_exists('periods', $data) && $data['periods'] !== null) { $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); foreach ($data['periods'] as $key => $value_1) { $values_1[$key] = $value_1; } $object->setPeriods($values_1); - } elseif (\array_key_exists('periods', $data) && null === $data['periods']) { + unset($data['periods']); + } elseif (\array_key_exists('periods', $data) && $data['periods'] === null) { $object->setPeriods(null); } + foreach ($data as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_2; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; $data['organization'] = $object->getOrganization(); - if (null !== $object->getOffer()) { + if ($object->isInitialized('offer') && null !== $object->getOffer()) { $data['offer'] = $object->getOffer(); } - if (null !== $object->getOptions()) { + if ($object->isInitialized('options') && null !== $object->getOptions()) { $values = []; foreach ($object->getOptions() as $value) { $values[] = $value; @@ -117,13 +123,18 @@ public function normalize($object, $format = null, array $context = []) $data['options'] = $values; } $data['cost'] = $this->normalizer->normalize($object->getCost(), 'json', $context); - if (null !== $object->getPeriods()) { + if ($object->isInitialized('periods') && null !== $object->getPeriods()) { $values_1 = []; foreach ($object->getPeriods() as $key => $value_1) { $values_1[$key] = $value_1; } $data['periods'] = $values_1; } + foreach ($object as $key_1 => $value_2) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_2; + } + } return $data; } diff --git a/src/Normalizer/SubscriptionOfferJsonldReadNormalizer.php b/src/Normalizer/SubscriptionOfferJsonldReadNormalizer.php new file mode 100644 index 00000000..b479cb87 --- /dev/null +++ b/src/Normalizer/SubscriptionOfferJsonldReadNormalizer.php @@ -0,0 +1,215 @@ +setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + $object->setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('color', $data) && $data['color'] !== null) { + $object->setColor($this->denormalizer->denormalize($data['color'], 'Gyroscops\\Api\\Model\\ColorJsonldRead', 'json', $context)); + unset($data['color']); + } elseif (\array_key_exists('color', $data) && $data['color'] === null) { + $object->setColor(null); + } + if (\array_key_exists('colorDepth', $data) && $data['colorDepth'] !== null) { + $object->setColorDepth($data['colorDepth']); + unset($data['colorDepth']); + } elseif (\array_key_exists('colorDepth', $data) && $data['colorDepth'] === null) { + $object->setColorDepth(null); + } + if (\array_key_exists('sku', $data) && $data['sku'] !== null) { + $object->setSku($data['sku']); + unset($data['sku']); + } elseif (\array_key_exists('sku', $data) && $data['sku'] === null) { + $object->setSku(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('slug', $data) && $data['slug'] !== null) { + $object->setSlug($data['slug']); + unset($data['slug']); + } elseif (\array_key_exists('slug', $data) && $data['slug'] === null) { + $object->setSlug(null); + } + if (\array_key_exists('shortDescription', $data) && $data['shortDescription'] !== null) { + $object->setShortDescription($data['shortDescription']); + unset($data['shortDescription']); + } elseif (\array_key_exists('shortDescription', $data) && $data['shortDescription'] === null) { + $object->setShortDescription(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('features', $data) && $data['features'] !== null) { + $values = []; + foreach ($data['features'] as $value) { + $values[] = $value; + } + $object->setFeatures($values); + unset($data['features']); + } elseif (\array_key_exists('features', $data) && $data['features'] === null) { + $object->setFeatures(null); + } + if (\array_key_exists('priceList', $data) && $data['priceList'] !== null) { + $values_1 = []; + foreach ($data['priceList'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'Gyroscops\\Api\\Model\\PriceJsonldRead', 'json', $context); + } + $object->setPriceList($values_1); + unset($data['priceList']); + } elseif (\array_key_exists('priceList', $data) && $data['priceList'] === null) { + $object->setPriceList(null); + } + if (\array_key_exists('rank', $data) && $data['rank'] !== null) { + $object->setRank($data['rank']); + unset($data['rank']); + } elseif (\array_key_exists('rank', $data) && $data['rank'] === null) { + $object->setRank(null); + } + if (\array_key_exists('active', $data) && $data['active'] !== null) { + $object->setActive($data['active']); + unset($data['active']); + } elseif (\array_key_exists('active', $data) && $data['active'] === null) { + $object->setActive(null); + } + if (\array_key_exists('activeFrom', $data) && $data['activeFrom'] !== null) { + $object->setActiveFrom(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['activeFrom'])); + unset($data['activeFrom']); + } elseif (\array_key_exists('activeFrom', $data) && $data['activeFrom'] === null) { + $object->setActiveFrom(null); + } + if (\array_key_exists('activeUntil', $data) && $data['activeUntil'] !== null) { + $object->setActiveUntil(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['activeUntil'])); + unset($data['activeUntil']); + } elseif (\array_key_exists('activeUntil', $data) && $data['activeUntil'] === null) { + $object->setActiveUntil(null); + } + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['color'] = $this->normalizer->normalize($object->getColor(), 'json', $context); + if ($object->isInitialized('colorDepth') && null !== $object->getColorDepth()) { + $data['colorDepth'] = $object->getColorDepth(); + } + $data['sku'] = $object->getSku(); + $data['name'] = $object->getName(); + $data['slug'] = $object->getSlug(); + $data['shortDescription'] = $object->getShortDescription(); + $data['description'] = $object->getDescription(); + $values = []; + foreach ($object->getFeatures() as $value) { + $values[] = $value; + } + $data['features'] = $values; + if ($object->isInitialized('priceList') && null !== $object->getPriceList()) { + $values_1 = []; + foreach ($object->getPriceList() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + } + $data['priceList'] = $values_1; + } + if ($object->isInitialized('rank') && null !== $object->getRank()) { + $data['rank'] = $object->getRank(); + } + if ($object->isInitialized('active') && null !== $object->getActive()) { + $data['active'] = $object->getActive(); + } + if ($object->isInitialized('activeFrom') && null !== $object->getActiveFrom()) { + $data['activeFrom'] = $object->getActiveFrom()->format('Y-m-d\\TH:i:sP'); + } + if ($object->isInitialized('activeUntil') && null !== $object->getActiveUntil()) { + $data['activeUntil'] = $object->getActiveUntil()->format('Y-m-d\\TH:i:sP'); + } + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; + } + } + + return $data; + } +} diff --git a/src/Normalizer/SubscriptionOfferJsonldWriteNormalizer.php b/src/Normalizer/SubscriptionOfferJsonldWriteNormalizer.php new file mode 100644 index 00000000..92262388 --- /dev/null +++ b/src/Normalizer/SubscriptionOfferJsonldWriteNormalizer.php @@ -0,0 +1,132 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('rank', $data) && $data['rank'] !== null) { + $object->setRank($data['rank']); + unset($data['rank']); + } elseif (\array_key_exists('rank', $data) && $data['rank'] === null) { + $object->setRank(null); + } + if (\array_key_exists('active', $data) && $data['active'] !== null) { + $object->setActive($data['active']); + unset($data['active']); + } elseif (\array_key_exists('active', $data) && $data['active'] === null) { + $object->setActive(null); + } + if (\array_key_exists('activeFrom', $data) && $data['activeFrom'] !== null) { + $object->setActiveFrom(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['activeFrom'])); + unset($data['activeFrom']); + } elseif (\array_key_exists('activeFrom', $data) && $data['activeFrom'] === null) { + $object->setActiveFrom(null); + } + if (\array_key_exists('activeUntil', $data) && $data['activeUntil'] !== null) { + $object->setActiveUntil(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['activeUntil'])); + unset($data['activeUntil']); + } elseif (\array_key_exists('activeUntil', $data) && $data['activeUntil'] === null) { + $object->setActiveUntil(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('rank') && null !== $object->getRank()) { + $data['rank'] = $object->getRank(); + } + if ($object->isInitialized('active') && null !== $object->getActive()) { + $data['active'] = $object->getActive(); + } + if ($object->isInitialized('activeFrom') && null !== $object->getActiveFrom()) { + $data['activeFrom'] = $object->getActiveFrom()->format('Y-m-d\\TH:i:sP'); + } + if ($object->isInitialized('activeUntil') && null !== $object->getActiveUntil()) { + $data['activeUntil'] = $object->getActiveUntil()->format('Y-m-d\\TH:i:sP'); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/SubscriptionOfferReadNormalizer.php b/src/Normalizer/SubscriptionOfferReadNormalizer.php new file mode 100644 index 00000000..c43ad570 --- /dev/null +++ b/src/Normalizer/SubscriptionOfferReadNormalizer.php @@ -0,0 +1,205 @@ + $value) { + $values[$key] = $value; + } + $object->setColor($values); + unset($data['color']); + } elseif (\array_key_exists('color', $data) && $data['color'] === null) { + $object->setColor(null); + } + if (\array_key_exists('colorDepth', $data) && $data['colorDepth'] !== null) { + $object->setColorDepth($data['colorDepth']); + unset($data['colorDepth']); + } elseif (\array_key_exists('colorDepth', $data) && $data['colorDepth'] === null) { + $object->setColorDepth(null); + } + if (\array_key_exists('sku', $data) && $data['sku'] !== null) { + $object->setSku($data['sku']); + unset($data['sku']); + } elseif (\array_key_exists('sku', $data) && $data['sku'] === null) { + $object->setSku(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('slug', $data) && $data['slug'] !== null) { + $object->setSlug($data['slug']); + unset($data['slug']); + } elseif (\array_key_exists('slug', $data) && $data['slug'] === null) { + $object->setSlug(null); + } + if (\array_key_exists('shortDescription', $data) && $data['shortDescription'] !== null) { + $object->setShortDescription($data['shortDescription']); + unset($data['shortDescription']); + } elseif (\array_key_exists('shortDescription', $data) && $data['shortDescription'] === null) { + $object->setShortDescription(null); + } + if (\array_key_exists('description', $data) && $data['description'] !== null) { + $object->setDescription($data['description']); + unset($data['description']); + } elseif (\array_key_exists('description', $data) && $data['description'] === null) { + $object->setDescription(null); + } + if (\array_key_exists('features', $data) && $data['features'] !== null) { + $values_1 = []; + foreach ($data['features'] as $value_1) { + $values_1[] = $value_1; + } + $object->setFeatures($values_1); + unset($data['features']); + } elseif (\array_key_exists('features', $data) && $data['features'] === null) { + $object->setFeatures(null); + } + if (\array_key_exists('priceList', $data) && $data['priceList'] !== null) { + $values_2 = []; + foreach ($data['priceList'] as $value_2) { + $values_2[] = $this->denormalizer->denormalize($value_2, 'Gyroscops\\Api\\Model\\PriceRead', 'json', $context); + } + $object->setPriceList($values_2); + unset($data['priceList']); + } elseif (\array_key_exists('priceList', $data) && $data['priceList'] === null) { + $object->setPriceList(null); + } + if (\array_key_exists('rank', $data) && $data['rank'] !== null) { + $object->setRank($data['rank']); + unset($data['rank']); + } elseif (\array_key_exists('rank', $data) && $data['rank'] === null) { + $object->setRank(null); + } + if (\array_key_exists('active', $data) && $data['active'] !== null) { + $object->setActive($data['active']); + unset($data['active']); + } elseif (\array_key_exists('active', $data) && $data['active'] === null) { + $object->setActive(null); + } + if (\array_key_exists('activeFrom', $data) && $data['activeFrom'] !== null) { + $object->setActiveFrom(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['activeFrom'])); + unset($data['activeFrom']); + } elseif (\array_key_exists('activeFrom', $data) && $data['activeFrom'] === null) { + $object->setActiveFrom(null); + } + if (\array_key_exists('activeUntil', $data) && $data['activeUntil'] !== null) { + $object->setActiveUntil(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['activeUntil'])); + unset($data['activeUntil']); + } elseif (\array_key_exists('activeUntil', $data) && $data['activeUntil'] === null) { + $object->setActiveUntil(null); + } + foreach ($data as $key_1 => $value_3) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_3; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getColor() as $key => $value) { + $values[$key] = $value; + } + $data['color'] = $values; + if ($object->isInitialized('colorDepth') && null !== $object->getColorDepth()) { + $data['colorDepth'] = $object->getColorDepth(); + } + $data['sku'] = $object->getSku(); + $data['name'] = $object->getName(); + $data['slug'] = $object->getSlug(); + $data['shortDescription'] = $object->getShortDescription(); + $data['description'] = $object->getDescription(); + $values_1 = []; + foreach ($object->getFeatures() as $value_1) { + $values_1[] = $value_1; + } + $data['features'] = $values_1; + if ($object->isInitialized('priceList') && null !== $object->getPriceList()) { + $values_2 = []; + foreach ($object->getPriceList() as $value_2) { + $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); + } + $data['priceList'] = $values_2; + } + if ($object->isInitialized('rank') && null !== $object->getRank()) { + $data['rank'] = $object->getRank(); + } + if ($object->isInitialized('active') && null !== $object->getActive()) { + $data['active'] = $object->getActive(); + } + if ($object->isInitialized('activeFrom') && null !== $object->getActiveFrom()) { + $data['activeFrom'] = $object->getActiveFrom()->format('Y-m-d\\TH:i:sP'); + } + if ($object->isInitialized('activeUntil') && null !== $object->getActiveUntil()) { + $data['activeUntil'] = $object->getActiveUntil()->format('Y-m-d\\TH:i:sP'); + } + foreach ($object as $key_1 => $value_3) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_3; + } + } + + return $data; + } +} diff --git a/src/Normalizer/SubscriptionOfferWriteNormalizer.php b/src/Normalizer/SubscriptionOfferWriteNormalizer.php new file mode 100644 index 00000000..338cdd4c --- /dev/null +++ b/src/Normalizer/SubscriptionOfferWriteNormalizer.php @@ -0,0 +1,114 @@ +setRank($data['rank']); + unset($data['rank']); + } elseif (\array_key_exists('rank', $data) && $data['rank'] === null) { + $object->setRank(null); + } + if (\array_key_exists('active', $data) && $data['active'] !== null) { + $object->setActive($data['active']); + unset($data['active']); + } elseif (\array_key_exists('active', $data) && $data['active'] === null) { + $object->setActive(null); + } + if (\array_key_exists('activeFrom', $data) && $data['activeFrom'] !== null) { + $object->setActiveFrom(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['activeFrom'])); + unset($data['activeFrom']); + } elseif (\array_key_exists('activeFrom', $data) && $data['activeFrom'] === null) { + $object->setActiveFrom(null); + } + if (\array_key_exists('activeUntil', $data) && $data['activeUntil'] !== null) { + $object->setActiveUntil(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['activeUntil'])); + unset($data['activeUntil']); + } elseif (\array_key_exists('activeUntil', $data) && $data['activeUntil'] === null) { + $object->setActiveUntil(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('rank') && null !== $object->getRank()) { + $data['rank'] = $object->getRank(); + } + if ($object->isInitialized('active') && null !== $object->getActive()) { + $data['active'] = $object->getActive(); + } + if ($object->isInitialized('activeFrom') && null !== $object->getActiveFrom()) { + $data['activeFrom'] = $object->getActiveFrom()->format('Y-m-d\\TH:i:sP'); + } + if ($object->isInitialized('activeUntil') && null !== $object->getActiveUntil()) { + $data['activeUntil'] = $object->getActiveUntil()->format('Y-m-d\\TH:i:sP'); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/SubscriptionOptionJsonldNormalizer.php b/src/Normalizer/SubscriptionOptionJsonldNormalizer.php index 534970ab..9450f0ae 100644 --- a/src/Normalizer/SubscriptionOptionJsonldNormalizer.php +++ b/src/Normalizer/SubscriptionOptionJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class SubscriptionOptionJsonldNormalizer implements DenormalizerInterface, Norma use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\SubscriptionOptionJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\SubscriptionOptionJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\SubscriptionOptionJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\SubscriptionOptionJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,44 +52,52 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('subscription', $data) && null !== $data['subscription']) { + if (\array_key_exists('subscription', $data) && $data['subscription'] !== null) { $object->setSubscription($data['subscription']); - } elseif (\array_key_exists('subscription', $data) && null === $data['subscription']) { + unset($data['subscription']); + } elseif (\array_key_exists('subscription', $data) && $data['subscription'] === null) { $object->setSubscription(null); } - if (\array_key_exists('option', $data) && null !== $data['option']) { + if (\array_key_exists('option', $data) && $data['option'] !== null) { $object->setOption($data['option']); - } elseif (\array_key_exists('option', $data) && null === $data['option']) { + unset($data['option']); + } elseif (\array_key_exists('option', $data) && $data['option'] === null) { $object->setOption(null); } - if (\array_key_exists('price', $data) && null !== $data['price']) { - $object->setPrice($this->denormalizer->denormalize($data['price'], \Gyroscops\Api\Model\PriceJsonld::class, 'json', $context)); - } elseif (\array_key_exists('price', $data) && null === $data['price']) { + if (\array_key_exists('price', $data) && $data['price'] !== null) { + $object->setPrice($this->denormalizer->denormalize($data['price'], 'Gyroscops\\Api\\Model\\PriceJsonld', 'json', $context)); + unset($data['price']); + } elseif (\array_key_exists('price', $data) && $data['price'] === null) { $object->setPrice(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -100,6 +106,11 @@ public function normalize($object, $format = null, array $context = []) $data['subscription'] = $object->getSubscription(); $data['option'] = $object->getOption(); $data['price'] = $this->normalizer->normalize($object->getPrice(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/SubscriptionOptionNormalizer.php b/src/Normalizer/SubscriptionOptionNormalizer.php index 733c16a4..91cf55d8 100644 --- a/src/Normalizer/SubscriptionOptionNormalizer.php +++ b/src/Normalizer/SubscriptionOptionNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class SubscriptionOptionNormalizer implements DenormalizerInterface, NormalizerI use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\SubscriptionOption::class === $type; + return $type === 'Gyroscops\\Api\\Model\\SubscriptionOption'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\SubscriptionOption::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\SubscriptionOption'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,34 +52,40 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('subscription', $data) && null !== $data['subscription']) { + if (\array_key_exists('subscription', $data) && $data['subscription'] !== null) { $object->setSubscription($data['subscription']); - } elseif (\array_key_exists('subscription', $data) && null === $data['subscription']) { + unset($data['subscription']); + } elseif (\array_key_exists('subscription', $data) && $data['subscription'] === null) { $object->setSubscription(null); } - if (\array_key_exists('option', $data) && null !== $data['option']) { + if (\array_key_exists('option', $data) && $data['option'] !== null) { $object->setOption($data['option']); - } elseif (\array_key_exists('option', $data) && null === $data['option']) { + unset($data['option']); + } elseif (\array_key_exists('option', $data) && $data['option'] === null) { $object->setOption(null); } - if (\array_key_exists('price', $data) && null !== $data['price']) { - $object->setPrice($this->denormalizer->denormalize($data['price'], \Gyroscops\Api\Model\Price::class, 'json', $context)); - } elseif (\array_key_exists('price', $data) && null === $data['price']) { + if (\array_key_exists('price', $data) && $data['price'] !== null) { + $object->setPrice($this->denormalizer->denormalize($data['price'], 'Gyroscops\\Api\\Model\\Price', 'json', $context)); + unset($data['price']); + } elseif (\array_key_exists('price', $data) && $data['price'] === null) { $object->setPrice(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -90,6 +94,11 @@ public function normalize($object, $format = null, array $context = []) $data['subscription'] = $object->getSubscription(); $data['option'] = $object->getOption(); $data['price'] = $this->normalizer->normalize($object->getPrice(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/SubscriptionTypeJsonldNormalizer.php b/src/Normalizer/SubscriptionTypeJsonldNormalizer.php new file mode 100644 index 00000000..dc2b45c6 --- /dev/null +++ b/src/Normalizer/SubscriptionTypeJsonldNormalizer.php @@ -0,0 +1,108 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('name', $data) && $data['name'] !== null) { + $object->setName($data['name']); + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('value', $data) && $data['value'] !== null) { + $object->setValue($data['value']); + unset($data['value']); + } elseif (\array_key_exists('value', $data) && $data['value'] === null) { + $object->setValue(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/SubscriptionTypeJsonldReadNormalizer.php b/src/Normalizer/SubscriptionTypeJsonldReadNormalizer.php new file mode 100644 index 00000000..3af4fd5d --- /dev/null +++ b/src/Normalizer/SubscriptionTypeJsonldReadNormalizer.php @@ -0,0 +1,96 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/SubscriptionTypeNormalizer.php b/src/Normalizer/SubscriptionTypeNormalizer.php new file mode 100644 index 00000000..1104ecc9 --- /dev/null +++ b/src/Normalizer/SubscriptionTypeNormalizer.php @@ -0,0 +1,90 @@ +setName($data['name']); + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { + $object->setName(null); + } + if (\array_key_exists('value', $data) && $data['value'] !== null) { + $object->setValue($data['value']); + unset($data['value']); + } elseif (\array_key_exists('value', $data) && $data['value'] === null) { + $object->setValue(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/TokenNormalizer.php b/src/Normalizer/TokenNormalizer.php index b1b84c08..768ce1ea 100644 --- a/src/Normalizer/TokenNormalizer.php +++ b/src/Normalizer/TokenNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class TokenNormalizer implements DenormalizerInterface, NormalizerInterface, Den use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\Token::class === $type; + return $type === 'Gyroscops\\Api\\Model\\Token'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\Token::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\Token'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,23 +52,33 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('token', $data) && null !== $data['token']) { + if (\array_key_exists('token', $data) && $data['token'] !== null) { $object->setToken($data['token']); - } elseif (\array_key_exists('token', $data) && null === $data['token']) { + unset($data['token']); + } elseif (\array_key_exists('token', $data) && $data['token'] === null) { $object->setToken(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/TraversableJsonldNormalizer.php b/src/Normalizer/TraversableJsonldNormalizer.php index ef3c5e3f..a90defb6 100644 --- a/src/Normalizer/TraversableJsonldNormalizer.php +++ b/src/Normalizer/TraversableJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class TraversableJsonldNormalizer implements DenormalizerInterface, NormalizerIn use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\TraversableJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\TraversableJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\TraversableJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\TraversableJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/TraversableJsonldReadNormalizer.php b/src/Normalizer/TraversableJsonldReadNormalizer.php deleted file mode 100644 index d745d84b..00000000 --- a/src/Normalizer/TraversableJsonldReadNormalizer.php +++ /dev/null @@ -1,86 +0,0 @@ -setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { - $object->setContext(null); - } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { - $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - return []; - } -} diff --git a/src/Normalizer/UpdateListJsonldNormalizer.php b/src/Normalizer/UpdateListJsonldNormalizer.php deleted file mode 100644 index b19cc53f..00000000 --- a/src/Normalizer/UpdateListJsonldNormalizer.php +++ /dev/null @@ -1,96 +0,0 @@ -setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { - $object->setContext(null); - } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { - $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - if (\array_key_exists('iterator', $data) && null !== $data['iterator']) { - $object->setIterator($this->denormalizer->denormalize($data['iterator'], \Gyroscops\Api\Model\TraversableJsonld::class, 'json', $context)); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { - $object->setIterator(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getIterator()) { - $data['iterator'] = $this->normalizer->normalize($object->getIterator(), 'json', $context); - } - - return $data; - } -} diff --git a/src/Normalizer/UpdateListNormalizer.php b/src/Normalizer/UpdateListNormalizer.php deleted file mode 100644 index 188defbb..00000000 --- a/src/Normalizer/UpdateListNormalizer.php +++ /dev/null @@ -1,81 +0,0 @@ -setIterator($data['iterator']); - } elseif (\array_key_exists('iterator', $data) && null === $data['iterator']) { - $object->setIterator(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if (null !== $object->getIterator()) { - $data['iterator'] = $object->getIterator(); - } - - return $data; - } -} diff --git a/src/Normalizer/UserAuthorizationJsonldNormalizer.php b/src/Normalizer/UserAuthorizationJsonldNormalizer.php index 24acc4b2..772bad79 100644 --- a/src/Normalizer/UserAuthorizationJsonldNormalizer.php +++ b/src/Normalizer/UserAuthorizationJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class UserAuthorizationJsonldNormalizer implements DenormalizerInterface, Normal use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\UserAuthorizationJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\UserAuthorizationJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\UserAuthorizationJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\UserAuthorizationJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,75 +52,86 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('user', $data) && null !== $data['user']) { + if (\array_key_exists('user', $data) && $data['user'] !== null) { $object->setUser($data['user']); - } elseif (\array_key_exists('user', $data) && null === $data['user']) { + unset($data['user']); + } elseif (\array_key_exists('user', $data) && $data['user'] === null) { $object->setUser(null); } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { + if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { + unset($data['workspace']); + } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { $object->setWorkspace(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { + if (\array_key_exists('organization', $data) && $data['organization'] !== null) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { + unset($data['organization']); + } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { $object->setOrganization(null); } - if (\array_key_exists('resource', $data) && null !== $data['resource']) { + if (\array_key_exists('resource', $data) && $data['resource'] !== null) { $object->setResource($data['resource']); - } elseif (\array_key_exists('resource', $data) && null === $data['resource']) { + unset($data['resource']); + } elseif (\array_key_exists('resource', $data) && $data['resource'] === null) { $object->setResource(null); } - if (\array_key_exists('authorizations', $data) && null !== $data['authorizations']) { + if (\array_key_exists('authorizations', $data) && $data['authorizations'] !== null) { $values = []; foreach ($data['authorizations'] as $value) { $values[] = $value; } $object->setAuthorizations($values); - } elseif (\array_key_exists('authorizations', $data) && null === $data['authorizations']) { + unset($data['authorizations']); + } elseif (\array_key_exists('authorizations', $data) && $data['authorizations'] === null) { $object->setAuthorizations(null); } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getUser()) { + if ($object->isInitialized('user') && null !== $object->getUser()) { $data['user'] = $object->getUser(); } - if (null !== $object->getWorkspace()) { + if ($object->isInitialized('workspace') && null !== $object->getWorkspace()) { $data['workspace'] = $object->getWorkspace(); } - if (null !== $object->getOrganization()) { + if ($object->isInitialized('organization') && null !== $object->getOrganization()) { $data['organization'] = $object->getOrganization(); } $data['resource'] = $object->getResource(); @@ -131,6 +140,11 @@ public function normalize($object, $format = null, array $context = []) $values[] = $value; } $data['authorizations'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/UserAuthorizationNormalizer.php b/src/Normalizer/UserAuthorizationNormalizer.php index f30fb9a0..4472c993 100644 --- a/src/Normalizer/UserAuthorizationNormalizer.php +++ b/src/Normalizer/UserAuthorizationNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class UserAuthorizationNormalizer implements DenormalizerInterface, NormalizerIn use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\UserAuthorization::class === $type; + return $type === 'Gyroscops\\Api\\Model\\UserAuthorization'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\UserAuthorization::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\UserAuthorization'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,60 +52,68 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('user', $data) && null !== $data['user']) { + if (\array_key_exists('user', $data) && $data['user'] !== null) { $object->setUser($data['user']); - } elseif (\array_key_exists('user', $data) && null === $data['user']) { + unset($data['user']); + } elseif (\array_key_exists('user', $data) && $data['user'] === null) { $object->setUser(null); } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { + if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { $object->setWorkspace($data['workspace']); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { + unset($data['workspace']); + } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { $object->setWorkspace(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { + if (\array_key_exists('organization', $data) && $data['organization'] !== null) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { + unset($data['organization']); + } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { $object->setOrganization(null); } - if (\array_key_exists('resource', $data) && null !== $data['resource']) { + if (\array_key_exists('resource', $data) && $data['resource'] !== null) { $object->setResource($data['resource']); - } elseif (\array_key_exists('resource', $data) && null === $data['resource']) { + unset($data['resource']); + } elseif (\array_key_exists('resource', $data) && $data['resource'] === null) { $object->setResource(null); } - if (\array_key_exists('authorizations', $data) && null !== $data['authorizations']) { + if (\array_key_exists('authorizations', $data) && $data['authorizations'] !== null) { $values = []; foreach ($data['authorizations'] as $value) { $values[] = $value; } $object->setAuthorizations($values); - } elseif (\array_key_exists('authorizations', $data) && null === $data['authorizations']) { + unset($data['authorizations']); + } elseif (\array_key_exists('authorizations', $data) && $data['authorizations'] === null) { $object->setAuthorizations(null); } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getUser()) { + if ($object->isInitialized('user') && null !== $object->getUser()) { $data['user'] = $object->getUser(); } - if (null !== $object->getWorkspace()) { + if ($object->isInitialized('workspace') && null !== $object->getWorkspace()) { $data['workspace'] = $object->getWorkspace(); } - if (null !== $object->getOrganization()) { + if ($object->isInitialized('organization') && null !== $object->getOrganization()) { $data['organization'] = $object->getOrganization(); } $data['resource'] = $object->getResource(); @@ -116,6 +122,11 @@ public function normalize($object, $format = null, array $context = []) $values[] = $value; } $data['authorizations'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/UserIdJsonldNormalizer.php b/src/Normalizer/UserIdJsonldNormalizer.php new file mode 100644 index 00000000..ae02d694 --- /dev/null +++ b/src/Normalizer/UserIdJsonldNormalizer.php @@ -0,0 +1,102 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('nil', $data) && $data['nil'] !== null) { + $object->setNil($data['nil']); + unset($data['nil']); + } elseif (\array_key_exists('nil', $data) && $data['nil'] === null) { + $object->setNil(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/UserIdNormalizer.php b/src/Normalizer/UserIdNormalizer.php new file mode 100644 index 00000000..15188f67 --- /dev/null +++ b/src/Normalizer/UserIdNormalizer.php @@ -0,0 +1,84 @@ +setNil($data['nil']); + unset($data['nil']); + } elseif (\array_key_exists('nil', $data) && $data['nil'] === null) { + $object->setNil(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/UserJsonldNormalizer.php b/src/Normalizer/UserJsonldNormalizer.php index b795ba1b..76f5a76d 100644 --- a/src/Normalizer/UserJsonldNormalizer.php +++ b/src/Normalizer/UserJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class UserJsonldNormalizer implements DenormalizerInterface, NormalizerInterface use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\UserJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\UserJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\UserJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\UserJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,57 +52,67 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('firstName', $data) && null !== $data['firstName']) { + if (\array_key_exists('firstName', $data) && $data['firstName'] !== null) { $object->setFirstName($data['firstName']); - } elseif (\array_key_exists('firstName', $data) && null === $data['firstName']) { + unset($data['firstName']); + } elseif (\array_key_exists('firstName', $data) && $data['firstName'] === null) { $object->setFirstName(null); } - if (\array_key_exists('lastName', $data) && null !== $data['lastName']) { + if (\array_key_exists('lastName', $data) && $data['lastName'] !== null) { $object->setLastName($data['lastName']); - } elseif (\array_key_exists('lastName', $data) && null === $data['lastName']) { + unset($data['lastName']); + } elseif (\array_key_exists('lastName', $data) && $data['lastName'] === null) { $object->setLastName(null); } - if (\array_key_exists('username', $data) && null !== $data['username']) { + if (\array_key_exists('username', $data) && $data['username'] !== null) { $object->setUsername($data['username']); - } elseif (\array_key_exists('username', $data) && null === $data['username']) { + unset($data['username']); + } elseif (\array_key_exists('username', $data) && $data['username'] === null) { $object->setUsername(null); } - if (\array_key_exists('email', $data) && null !== $data['email']) { + if (\array_key_exists('email', $data) && $data['email'] !== null) { $object->setEmail($data['email']); - } elseif (\array_key_exists('email', $data) && null === $data['email']) { + unset($data['email']); + } elseif (\array_key_exists('email', $data) && $data['email'] === null) { $object->setEmail(null); } - if (\array_key_exists('password', $data) && null !== $data['password']) { + if (\array_key_exists('password', $data) && $data['password'] !== null) { $object->setPassword($data['password']); - } elseif (\array_key_exists('password', $data) && null === $data['password']) { + unset($data['password']); + } elseif (\array_key_exists('password', $data) && $data['password'] === null) { $object->setPassword(null); } - if (\array_key_exists('enabled', $data) && null !== $data['enabled']) { + if (\array_key_exists('enabled', $data) && $data['enabled'] !== null) { $object->setEnabled($data['enabled']); - } elseif (\array_key_exists('enabled', $data) && null === $data['enabled']) { + unset($data['enabled']); + } elseif (\array_key_exists('enabled', $data) && $data['enabled'] === null) { $object->setEnabled(null); } - if (\array_key_exists('roles', $data) && null !== $data['roles']) { + if (\array_key_exists('roles', $data) && $data['roles'] !== null) { $values = []; foreach ($data['roles'] as $value) { $values_1 = []; @@ -114,96 +122,126 @@ public function denormalize($data, $class, $format = null, array $context = []) $values[] = $values_1; } $object->setRoles($values); - } elseif (\array_key_exists('roles', $data) && null === $data['roles']) { + unset($data['roles']); + } elseif (\array_key_exists('roles', $data) && $data['roles'] === null) { $object->setRoles(null); } - if (\array_key_exists('authorizations', $data) && null !== $data['authorizations']) { + if (\array_key_exists('authorizations', $data) && $data['authorizations'] !== null) { $values_2 = []; foreach ($data['authorizations'] as $value_2) { $values_2[] = $value_2; } $object->setAuthorizations($values_2); - } elseif (\array_key_exists('authorizations', $data) && null === $data['authorizations']) { + unset($data['authorizations']); + } elseif (\array_key_exists('authorizations', $data) && $data['authorizations'] === null) { $object->setAuthorizations(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { + if (\array_key_exists('organization', $data) && $data['organization'] !== null) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { + unset($data['organization']); + } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { $object->setOrganization(null); } - if (\array_key_exists('additionalOrganizations', $data) && null !== $data['additionalOrganizations']) { + if (\array_key_exists('additionalOrganizations', $data) && $data['additionalOrganizations'] !== null) { $values_3 = []; foreach ($data['additionalOrganizations'] as $value_3) { $values_3[] = $value_3; } $object->setAdditionalOrganizations($values_3); - } elseif (\array_key_exists('additionalOrganizations', $data) && null === $data['additionalOrganizations']) { + unset($data['additionalOrganizations']); + } elseif (\array_key_exists('additionalOrganizations', $data) && $data['additionalOrganizations'] === null) { $object->setAdditionalOrganizations(null); } - if (\array_key_exists('workspaces', $data) && null !== $data['workspaces']) { + if (\array_key_exists('workspaces', $data) && $data['workspaces'] !== null) { $values_4 = []; foreach ($data['workspaces'] as $value_4) { $values_4[] = $value_4; } $object->setWorkspaces($values_4); - } elseif (\array_key_exists('workspaces', $data) && null === $data['workspaces']) { + unset($data['workspaces']); + } elseif (\array_key_exists('workspaces', $data) && $data['workspaces'] === null) { $object->setWorkspaces(null); } - if (\array_key_exists('currentWorkspace', $data) && null !== $data['currentWorkspace']) { + if (\array_key_exists('currentWorkspace', $data) && $data['currentWorkspace'] !== null) { $object->setCurrentWorkspace($data['currentWorkspace']); - } elseif (\array_key_exists('currentWorkspace', $data) && null === $data['currentWorkspace']) { + unset($data['currentWorkspace']); + } elseif (\array_key_exists('currentWorkspace', $data) && $data['currentWorkspace'] === null) { $object->setCurrentWorkspace(null); } - if (\array_key_exists('currentOrganization', $data) && null !== $data['currentOrganization']) { + if (\array_key_exists('currentOrganization', $data) && $data['currentOrganization'] !== null) { $object->setCurrentOrganization($data['currentOrganization']); - } elseif (\array_key_exists('currentOrganization', $data) && null === $data['currentOrganization']) { + unset($data['currentOrganization']); + } elseif (\array_key_exists('currentOrganization', $data) && $data['currentOrganization'] === null) { $object->setCurrentOrganization(null); } - if (\array_key_exists('referralCodes', $data) && null !== $data['referralCodes']) { + if (\array_key_exists('referralCodes', $data) && $data['referralCodes'] !== null) { $values_5 = []; foreach ($data['referralCodes'] as $value_5) { $values_5[] = $value_5; } $object->setReferralCodes($values_5); - } elseif (\array_key_exists('referralCodes', $data) && null === $data['referralCodes']) { + unset($data['referralCodes']); + } elseif (\array_key_exists('referralCodes', $data) && $data['referralCodes'] === null) { $object->setReferralCodes(null); } - if (\array_key_exists('acceptedReferralRequests', $data) && null !== $data['acceptedReferralRequests']) { + if (\array_key_exists('acceptedReferralRequests', $data) && $data['acceptedReferralRequests'] !== null) { $values_6 = []; foreach ($data['acceptedReferralRequests'] as $value_6) { $values_6[] = $value_6; } $object->setAcceptedReferralRequests($values_6); - } elseif (\array_key_exists('acceptedReferralRequests', $data) && null === $data['acceptedReferralRequests']) { + unset($data['acceptedReferralRequests']); + } elseif (\array_key_exists('acceptedReferralRequests', $data) && $data['acceptedReferralRequests'] === null) { $object->setAcceptedReferralRequests(null); } - if (\array_key_exists('userIdentifier', $data) && null !== $data['userIdentifier']) { + if (\array_key_exists('akeneoLinkedAccounts', $data) && $data['akeneoLinkedAccounts'] !== null) { + $values_7 = []; + foreach ($data['akeneoLinkedAccounts'] as $value_7) { + $values_7[] = $value_7; + } + $object->setAkeneoLinkedAccounts($values_7); + unset($data['akeneoLinkedAccounts']); + } elseif (\array_key_exists('akeneoLinkedAccounts', $data) && $data['akeneoLinkedAccounts'] === null) { + $object->setAkeneoLinkedAccounts(null); + } + if (\array_key_exists('userIdentifier', $data) && $data['userIdentifier'] !== null) { $object->setUserIdentifier($data['userIdentifier']); - } elseif (\array_key_exists('userIdentifier', $data) && null === $data['userIdentifier']) { + unset($data['userIdentifier']); + } elseif (\array_key_exists('userIdentifier', $data) && $data['userIdentifier'] === null) { $object->setUserIdentifier(null); } - if (\array_key_exists('salt', $data) && null !== $data['salt']) { + if (\array_key_exists('fullName', $data) && $data['fullName'] !== null) { + $object->setFullName($data['fullName']); + unset($data['fullName']); + } elseif (\array_key_exists('fullName', $data) && $data['fullName'] === null) { + $object->setFullName(null); + } + if (\array_key_exists('salt', $data) && $data['salt'] !== null) { $object->setSalt($data['salt']); - } elseif (\array_key_exists('salt', $data) && null === $data['salt']) { + unset($data['salt']); + } elseif (\array_key_exists('salt', $data) && $data['salt'] === null) { $object->setSalt(null); } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { - $values_7 = []; - foreach ($data['workspace'] as $value_7) { - $values_7[] = $value_7; + if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + $values_8 = []; + foreach ($data['workspace'] as $value_8) { + $values_8[] = $value_8; } - $object->setWorkspace($values_7); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { + $object->setWorkspace($values_8); + unset($data['workspace']); + } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { $object->setWorkspace(null); } + foreach ($data as $key => $value_9) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_9; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -212,16 +250,16 @@ public function normalize($object, $format = null, array $context = []) $data['firstName'] = $object->getFirstName(); $data['lastName'] = $object->getLastName(); $data['username'] = $object->getUsername(); - if (null !== $object->getEmail()) { + if ($object->isInitialized('email') && null !== $object->getEmail()) { $data['email'] = $object->getEmail(); } - if (null !== $object->getPassword()) { + if ($object->isInitialized('password') && null !== $object->getPassword()) { $data['password'] = $object->getPassword(); } - if (null !== $object->getEnabled()) { + if ($object->isInitialized('enabled') && null !== $object->getEnabled()) { $data['enabled'] = $object->getEnabled(); } - if (null !== $object->getRoles()) { + if ($object->isInitialized('roles') && null !== $object->getRoles()) { $values = []; foreach ($object->getRoles() as $value) { $values_1 = []; @@ -232,42 +270,54 @@ public function normalize($object, $format = null, array $context = []) } $data['roles'] = $values; } - if (null !== $object->getAuthorizations()) { + if ($object->isInitialized('authorizations') && null !== $object->getAuthorizations()) { $values_2 = []; foreach ($object->getAuthorizations() as $value_2) { $values_2[] = $value_2; } $data['authorizations'] = $values_2; } - if (null !== $object->getOrganization()) { + if ($object->isInitialized('organization') && null !== $object->getOrganization()) { $data['organization'] = $object->getOrganization(); } - if (null !== $object->getAdditionalOrganizations()) { + if ($object->isInitialized('additionalOrganizations') && null !== $object->getAdditionalOrganizations()) { $values_3 = []; foreach ($object->getAdditionalOrganizations() as $value_3) { $values_3[] = $value_3; } $data['additionalOrganizations'] = $values_3; } - if (null !== $object->getWorkspaces()) { + if ($object->isInitialized('workspaces') && null !== $object->getWorkspaces()) { $values_4 = []; foreach ($object->getWorkspaces() as $value_4) { $values_4[] = $value_4; } $data['workspaces'] = $values_4; } - if (null !== $object->getCurrentWorkspace()) { + if ($object->isInitialized('currentWorkspace') && null !== $object->getCurrentWorkspace()) { $data['currentWorkspace'] = $object->getCurrentWorkspace(); } - if (null !== $object->getCurrentOrganization()) { + if ($object->isInitialized('currentOrganization') && null !== $object->getCurrentOrganization()) { $data['currentOrganization'] = $object->getCurrentOrganization(); } - if (null !== $object->getWorkspace()) { + if ($object->isInitialized('akeneoLinkedAccounts') && null !== $object->getAkeneoLinkedAccounts()) { $values_5 = []; - foreach ($object->getWorkspace() as $value_5) { + foreach ($object->getAkeneoLinkedAccounts() as $value_5) { $values_5[] = $value_5; } - $data['workspace'] = $values_5; + $data['akeneoLinkedAccounts'] = $values_5; + } + if ($object->isInitialized('workspace') && null !== $object->getWorkspace()) { + $values_6 = []; + foreach ($object->getWorkspace() as $value_6) { + $values_6[] = $value_6; + } + $data['workspace'] = $values_6; + } + foreach ($object as $key => $value_7) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_7; + } } return $data; diff --git a/src/Normalizer/UserNormalizer.php b/src/Normalizer/UserNormalizer.php index 6e5437b5..7f3b768b 100644 --- a/src/Normalizer/UserNormalizer.php +++ b/src/Normalizer/UserNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class UserNormalizer implements DenormalizerInterface, NormalizerInterface, Deno use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\User::class === $type; + return $type === 'Gyroscops\\Api\\Model\\User'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\User::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\User'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,42 +52,49 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('firstName', $data) && null !== $data['firstName']) { + if (\array_key_exists('firstName', $data) && $data['firstName'] !== null) { $object->setFirstName($data['firstName']); - } elseif (\array_key_exists('firstName', $data) && null === $data['firstName']) { + unset($data['firstName']); + } elseif (\array_key_exists('firstName', $data) && $data['firstName'] === null) { $object->setFirstName(null); } - if (\array_key_exists('lastName', $data) && null !== $data['lastName']) { + if (\array_key_exists('lastName', $data) && $data['lastName'] !== null) { $object->setLastName($data['lastName']); - } elseif (\array_key_exists('lastName', $data) && null === $data['lastName']) { + unset($data['lastName']); + } elseif (\array_key_exists('lastName', $data) && $data['lastName'] === null) { $object->setLastName(null); } - if (\array_key_exists('username', $data) && null !== $data['username']) { + if (\array_key_exists('username', $data) && $data['username'] !== null) { $object->setUsername($data['username']); - } elseif (\array_key_exists('username', $data) && null === $data['username']) { + unset($data['username']); + } elseif (\array_key_exists('username', $data) && $data['username'] === null) { $object->setUsername(null); } - if (\array_key_exists('email', $data) && null !== $data['email']) { + if (\array_key_exists('email', $data) && $data['email'] !== null) { $object->setEmail($data['email']); - } elseif (\array_key_exists('email', $data) && null === $data['email']) { + unset($data['email']); + } elseif (\array_key_exists('email', $data) && $data['email'] === null) { $object->setEmail(null); } - if (\array_key_exists('password', $data) && null !== $data['password']) { + if (\array_key_exists('password', $data) && $data['password'] !== null) { $object->setPassword($data['password']); - } elseif (\array_key_exists('password', $data) && null === $data['password']) { + unset($data['password']); + } elseif (\array_key_exists('password', $data) && $data['password'] === null) { $object->setPassword(null); } - if (\array_key_exists('enabled', $data) && null !== $data['enabled']) { + if (\array_key_exists('enabled', $data) && $data['enabled'] !== null) { $object->setEnabled($data['enabled']); - } elseif (\array_key_exists('enabled', $data) && null === $data['enabled']) { + unset($data['enabled']); + } elseif (\array_key_exists('enabled', $data) && $data['enabled'] === null) { $object->setEnabled(null); } - if (\array_key_exists('roles', $data) && null !== $data['roles']) { + if (\array_key_exists('roles', $data) && $data['roles'] !== null) { $values = []; foreach ($data['roles'] as $value) { $values_1 = []; @@ -99,96 +104,126 @@ public function denormalize($data, $class, $format = null, array $context = []) $values[] = $values_1; } $object->setRoles($values); - } elseif (\array_key_exists('roles', $data) && null === $data['roles']) { + unset($data['roles']); + } elseif (\array_key_exists('roles', $data) && $data['roles'] === null) { $object->setRoles(null); } - if (\array_key_exists('authorizations', $data) && null !== $data['authorizations']) { + if (\array_key_exists('authorizations', $data) && $data['authorizations'] !== null) { $values_2 = []; foreach ($data['authorizations'] as $value_2) { $values_2[] = $value_2; } $object->setAuthorizations($values_2); - } elseif (\array_key_exists('authorizations', $data) && null === $data['authorizations']) { + unset($data['authorizations']); + } elseif (\array_key_exists('authorizations', $data) && $data['authorizations'] === null) { $object->setAuthorizations(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { + if (\array_key_exists('organization', $data) && $data['organization'] !== null) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { + unset($data['organization']); + } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { $object->setOrganization(null); } - if (\array_key_exists('additionalOrganizations', $data) && null !== $data['additionalOrganizations']) { + if (\array_key_exists('additionalOrganizations', $data) && $data['additionalOrganizations'] !== null) { $values_3 = []; foreach ($data['additionalOrganizations'] as $value_3) { $values_3[] = $value_3; } $object->setAdditionalOrganizations($values_3); - } elseif (\array_key_exists('additionalOrganizations', $data) && null === $data['additionalOrganizations']) { + unset($data['additionalOrganizations']); + } elseif (\array_key_exists('additionalOrganizations', $data) && $data['additionalOrganizations'] === null) { $object->setAdditionalOrganizations(null); } - if (\array_key_exists('workspaces', $data) && null !== $data['workspaces']) { + if (\array_key_exists('workspaces', $data) && $data['workspaces'] !== null) { $values_4 = []; foreach ($data['workspaces'] as $value_4) { $values_4[] = $value_4; } $object->setWorkspaces($values_4); - } elseif (\array_key_exists('workspaces', $data) && null === $data['workspaces']) { + unset($data['workspaces']); + } elseif (\array_key_exists('workspaces', $data) && $data['workspaces'] === null) { $object->setWorkspaces(null); } - if (\array_key_exists('currentWorkspace', $data) && null !== $data['currentWorkspace']) { + if (\array_key_exists('currentWorkspace', $data) && $data['currentWorkspace'] !== null) { $object->setCurrentWorkspace($data['currentWorkspace']); - } elseif (\array_key_exists('currentWorkspace', $data) && null === $data['currentWorkspace']) { + unset($data['currentWorkspace']); + } elseif (\array_key_exists('currentWorkspace', $data) && $data['currentWorkspace'] === null) { $object->setCurrentWorkspace(null); } - if (\array_key_exists('currentOrganization', $data) && null !== $data['currentOrganization']) { + if (\array_key_exists('currentOrganization', $data) && $data['currentOrganization'] !== null) { $object->setCurrentOrganization($data['currentOrganization']); - } elseif (\array_key_exists('currentOrganization', $data) && null === $data['currentOrganization']) { + unset($data['currentOrganization']); + } elseif (\array_key_exists('currentOrganization', $data) && $data['currentOrganization'] === null) { $object->setCurrentOrganization(null); } - if (\array_key_exists('referralCodes', $data) && null !== $data['referralCodes']) { + if (\array_key_exists('referralCodes', $data) && $data['referralCodes'] !== null) { $values_5 = []; foreach ($data['referralCodes'] as $value_5) { $values_5[] = $value_5; } $object->setReferralCodes($values_5); - } elseif (\array_key_exists('referralCodes', $data) && null === $data['referralCodes']) { + unset($data['referralCodes']); + } elseif (\array_key_exists('referralCodes', $data) && $data['referralCodes'] === null) { $object->setReferralCodes(null); } - if (\array_key_exists('acceptedReferralRequests', $data) && null !== $data['acceptedReferralRequests']) { + if (\array_key_exists('acceptedReferralRequests', $data) && $data['acceptedReferralRequests'] !== null) { $values_6 = []; foreach ($data['acceptedReferralRequests'] as $value_6) { $values_6[] = $value_6; } $object->setAcceptedReferralRequests($values_6); - } elseif (\array_key_exists('acceptedReferralRequests', $data) && null === $data['acceptedReferralRequests']) { + unset($data['acceptedReferralRequests']); + } elseif (\array_key_exists('acceptedReferralRequests', $data) && $data['acceptedReferralRequests'] === null) { $object->setAcceptedReferralRequests(null); } - if (\array_key_exists('userIdentifier', $data) && null !== $data['userIdentifier']) { + if (\array_key_exists('akeneoLinkedAccounts', $data) && $data['akeneoLinkedAccounts'] !== null) { + $values_7 = []; + foreach ($data['akeneoLinkedAccounts'] as $value_7) { + $values_7[] = $value_7; + } + $object->setAkeneoLinkedAccounts($values_7); + unset($data['akeneoLinkedAccounts']); + } elseif (\array_key_exists('akeneoLinkedAccounts', $data) && $data['akeneoLinkedAccounts'] === null) { + $object->setAkeneoLinkedAccounts(null); + } + if (\array_key_exists('userIdentifier', $data) && $data['userIdentifier'] !== null) { $object->setUserIdentifier($data['userIdentifier']); - } elseif (\array_key_exists('userIdentifier', $data) && null === $data['userIdentifier']) { + unset($data['userIdentifier']); + } elseif (\array_key_exists('userIdentifier', $data) && $data['userIdentifier'] === null) { $object->setUserIdentifier(null); } - if (\array_key_exists('salt', $data) && null !== $data['salt']) { + if (\array_key_exists('fullName', $data) && $data['fullName'] !== null) { + $object->setFullName($data['fullName']); + unset($data['fullName']); + } elseif (\array_key_exists('fullName', $data) && $data['fullName'] === null) { + $object->setFullName(null); + } + if (\array_key_exists('salt', $data) && $data['salt'] !== null) { $object->setSalt($data['salt']); - } elseif (\array_key_exists('salt', $data) && null === $data['salt']) { + unset($data['salt']); + } elseif (\array_key_exists('salt', $data) && $data['salt'] === null) { $object->setSalt(null); } - if (\array_key_exists('workspace', $data) && null !== $data['workspace']) { - $values_7 = []; - foreach ($data['workspace'] as $value_7) { - $values_7[] = $value_7; + if (\array_key_exists('workspace', $data) && $data['workspace'] !== null) { + $values_8 = []; + foreach ($data['workspace'] as $value_8) { + $values_8[] = $value_8; } - $object->setWorkspace($values_7); - } elseif (\array_key_exists('workspace', $data) && null === $data['workspace']) { + $object->setWorkspace($values_8); + unset($data['workspace']); + } elseif (\array_key_exists('workspace', $data) && $data['workspace'] === null) { $object->setWorkspace(null); } + foreach ($data as $key => $value_9) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_9; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -197,16 +232,16 @@ public function normalize($object, $format = null, array $context = []) $data['firstName'] = $object->getFirstName(); $data['lastName'] = $object->getLastName(); $data['username'] = $object->getUsername(); - if (null !== $object->getEmail()) { + if ($object->isInitialized('email') && null !== $object->getEmail()) { $data['email'] = $object->getEmail(); } - if (null !== $object->getPassword()) { + if ($object->isInitialized('password') && null !== $object->getPassword()) { $data['password'] = $object->getPassword(); } - if (null !== $object->getEnabled()) { + if ($object->isInitialized('enabled') && null !== $object->getEnabled()) { $data['enabled'] = $object->getEnabled(); } - if (null !== $object->getRoles()) { + if ($object->isInitialized('roles') && null !== $object->getRoles()) { $values = []; foreach ($object->getRoles() as $value) { $values_1 = []; @@ -217,42 +252,54 @@ public function normalize($object, $format = null, array $context = []) } $data['roles'] = $values; } - if (null !== $object->getAuthorizations()) { + if ($object->isInitialized('authorizations') && null !== $object->getAuthorizations()) { $values_2 = []; foreach ($object->getAuthorizations() as $value_2) { $values_2[] = $value_2; } $data['authorizations'] = $values_2; } - if (null !== $object->getOrganization()) { + if ($object->isInitialized('organization') && null !== $object->getOrganization()) { $data['organization'] = $object->getOrganization(); } - if (null !== $object->getAdditionalOrganizations()) { + if ($object->isInitialized('additionalOrganizations') && null !== $object->getAdditionalOrganizations()) { $values_3 = []; foreach ($object->getAdditionalOrganizations() as $value_3) { $values_3[] = $value_3; } $data['additionalOrganizations'] = $values_3; } - if (null !== $object->getWorkspaces()) { + if ($object->isInitialized('workspaces') && null !== $object->getWorkspaces()) { $values_4 = []; foreach ($object->getWorkspaces() as $value_4) { $values_4[] = $value_4; } $data['workspaces'] = $values_4; } - if (null !== $object->getCurrentWorkspace()) { + if ($object->isInitialized('currentWorkspace') && null !== $object->getCurrentWorkspace()) { $data['currentWorkspace'] = $object->getCurrentWorkspace(); } - if (null !== $object->getCurrentOrganization()) { + if ($object->isInitialized('currentOrganization') && null !== $object->getCurrentOrganization()) { $data['currentOrganization'] = $object->getCurrentOrganization(); } - if (null !== $object->getWorkspace()) { + if ($object->isInitialized('akeneoLinkedAccounts') && null !== $object->getAkeneoLinkedAccounts()) { $values_5 = []; - foreach ($object->getWorkspace() as $value_5) { + foreach ($object->getAkeneoLinkedAccounts() as $value_5) { $values_5[] = $value_5; } - $data['workspace'] = $values_5; + $data['akeneoLinkedAccounts'] = $values_5; + } + if ($object->isInitialized('workspace') && null !== $object->getWorkspace()) { + $values_6 = []; + foreach ($object->getWorkspace() as $value_6) { + $values_6[] = $value_6; + } + $data['workspace'] = $values_6; + } + foreach ($object as $key => $value_7) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_7; + } } return $data; diff --git a/src/Normalizer/UserUserChangePasswordInputNormalizer.php b/src/Normalizer/UserUserChangePasswordInputNormalizer.php index ec4084c4..0ffa31eb 100644 --- a/src/Normalizer/UserUserChangePasswordInputNormalizer.php +++ b/src/Normalizer/UserUserChangePasswordInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class UserUserChangePasswordInputNormalizer implements DenormalizerInterface, No use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\UserUserChangePasswordInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\UserUserChangePasswordInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\UserUserChangePasswordInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\UserUserChangePasswordInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,43 +52,53 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('currentPassword', $data) && null !== $data['currentPassword']) { + if (\array_key_exists('currentPassword', $data) && $data['currentPassword'] !== null) { $object->setCurrentPassword($data['currentPassword']); - } elseif (\array_key_exists('currentPassword', $data) && null === $data['currentPassword']) { + unset($data['currentPassword']); + } elseif (\array_key_exists('currentPassword', $data) && $data['currentPassword'] === null) { $object->setCurrentPassword(null); } - if (\array_key_exists('newPassword', $data) && null !== $data['newPassword']) { + if (\array_key_exists('newPassword', $data) && $data['newPassword'] !== null) { $object->setNewPassword($data['newPassword']); - } elseif (\array_key_exists('newPassword', $data) && null === $data['newPassword']) { + unset($data['newPassword']); + } elseif (\array_key_exists('newPassword', $data) && $data['newPassword'] === null) { $object->setNewPassword(null); } - if (\array_key_exists('confirmPassword', $data) && null !== $data['confirmPassword']) { + if (\array_key_exists('confirmPassword', $data) && $data['confirmPassword'] !== null) { $object->setConfirmPassword($data['confirmPassword']); - } elseif (\array_key_exists('confirmPassword', $data) && null === $data['confirmPassword']) { + unset($data['confirmPassword']); + } elseif (\array_key_exists('confirmPassword', $data) && $data['confirmPassword'] === null) { $object->setConfirmPassword(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getCurrentPassword()) { + if ($object->isInitialized('currentPassword') && null !== $object->getCurrentPassword()) { $data['currentPassword'] = $object->getCurrentPassword(); } - if (null !== $object->getNewPassword()) { + if ($object->isInitialized('newPassword') && null !== $object->getNewPassword()) { $data['newPassword'] = $object->getNewPassword(); } - if (null !== $object->getConfirmPassword()) { + if ($object->isInitialized('confirmPassword') && null !== $object->getConfirmPassword()) { $data['confirmPassword'] = $object->getConfirmPassword(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/VariableFromConfigurationInputJsonldNormalizer.php b/src/Normalizer/VariableFromConfigurationInputJsonldNormalizer.php index b54b2f45..0b0de92f 100644 --- a/src/Normalizer/VariableFromConfigurationInputJsonldNormalizer.php +++ b/src/Normalizer/VariableFromConfigurationInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class VariableFromConfigurationInputJsonldNormalizer implements DenormalizerInte use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\VariableFromConfigurationInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\VariableFromConfigurationInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\VariableFromConfigurationInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\VariableFromConfigurationInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,50 +52,62 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('from', $data) && null !== $data['from']) { + if (\array_key_exists('from', $data) && $data['from'] !== null) { $object->setFrom($data['from']); - } elseif (\array_key_exists('from', $data) && null === $data['from']) { + unset($data['from']); + } elseif (\array_key_exists('from', $data) && $data['from'] === null) { $object->setFrom(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getFrom()) { + if ($object->isInitialized('from') && null !== $object->getFrom()) { $data['from'] = $object->getFrom(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/VariableFromConfigurationInputNormalizer.php b/src/Normalizer/VariableFromConfigurationInputNormalizer.php index 972ea920..2b28028d 100644 --- a/src/Normalizer/VariableFromConfigurationInputNormalizer.php +++ b/src/Normalizer/VariableFromConfigurationInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class VariableFromConfigurationInputNormalizer implements DenormalizerInterface, use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\VariableFromConfigurationInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\VariableFromConfigurationInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\VariableFromConfigurationInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\VariableFromConfigurationInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,35 +52,44 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('from', $data) && null !== $data['from']) { + if (\array_key_exists('from', $data) && $data['from'] !== null) { $object->setFrom($data['from']); - } elseif (\array_key_exists('from', $data) && null === $data['from']) { + unset($data['from']); + } elseif (\array_key_exists('from', $data) && $data['from'] === null) { $object->setFrom(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getFrom()) { + if ($object->isInitialized('from') && null !== $object->getFrom()) { $data['from'] = $object->getFrom(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/VariableFromConfigurationJsonldReadNormalizer.php b/src/Normalizer/VariableFromConfigurationJsonldReadNormalizer.php index 15931bec..19cc0021 100644 --- a/src/Normalizer/VariableFromConfigurationJsonldReadNormalizer.php +++ b/src/Normalizer/VariableFromConfigurationJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class VariableFromConfigurationJsonldReadNormalizer implements DenormalizerInter use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\VariableFromConfigurationJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\VariableFromConfigurationJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\VariableFromConfigurationJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\VariableFromConfigurationJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,66 +52,96 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('configuration', $data) && null !== $data['configuration']) { - $object->setConfiguration($data['configuration']); - } elseif (\array_key_exists('configuration', $data) && null === $data['configuration']) { + if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { + $value = $data['configuration']; + if (is_array($data['configuration'])) { + $value = $this->denormalizer->denormalize($data['configuration'], 'Gyroscops\\Api\\Model\\ConfigurationJsonldRead', 'json', $context); + } + $object->setConfiguration($value); + unset($data['configuration']); + } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { $object->setConfiguration(null); } - if (\array_key_exists('item', $data) && null !== $data['item']) { + if (\array_key_exists('item', $data) && $data['item'] !== null) { $object->setItem($data['item']); - } elseif (\array_key_exists('item', $data) && null === $data['item']) { + unset($data['item']); + } elseif (\array_key_exists('item', $data) && $data['item'] === null) { $object->setItem(null); } - if (\array_key_exists('environment', $data) && null !== $data['environment']) { - $object->setEnvironment($data['environment']); - } elseif (\array_key_exists('environment', $data) && null === $data['environment']) { + if (\array_key_exists('environment', $data) && $data['environment'] !== null) { + $value_1 = $data['environment']; + if (is_array($data['environment'])) { + $value_1 = $this->denormalizer->denormalize($data['environment'], 'Gyroscops\\Api\\Model\\EnvironmentJsonldRead', 'json', $context); + } + $object->setEnvironment($value_1); + unset($data['environment']); + } elseif (\array_key_exists('environment', $data) && $data['environment'] === null) { $object->setEnvironment(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getConfiguration()) { - $data['configuration'] = $object->getConfiguration(); + if ($object->isInitialized('configuration') && null !== $object->getConfiguration()) { + $value = $object->getConfiguration(); + if (is_object($object->getConfiguration())) { + $value = $this->normalizer->normalize($object->getConfiguration(), 'json', $context); + } + $data['configuration'] = $value; } - if (null !== $object->getItem()) { + if ($object->isInitialized('item') && null !== $object->getItem()) { $data['item'] = $object->getItem(); } - if (null !== $object->getEnvironment()) { - $data['environment'] = $object->getEnvironment(); + if ($object->isInitialized('environment') && null !== $object->getEnvironment()) { + $value_1 = $object->getEnvironment(); + if (is_object($object->getEnvironment())) { + $value_1 = $this->normalizer->normalize($object->getEnvironment(), 'json', $context); + } + $data['environment'] = $value_1; } - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; + } + } return $data; } diff --git a/src/Normalizer/VariableFromConfigurationJsonldWriteNormalizer.php b/src/Normalizer/VariableFromConfigurationJsonldWriteNormalizer.php index 4cc29275..f93e103d 100644 --- a/src/Normalizer/VariableFromConfigurationJsonldWriteNormalizer.php +++ b/src/Normalizer/VariableFromConfigurationJsonldWriteNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class VariableFromConfigurationJsonldWriteNormalizer implements DenormalizerInte use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\VariableFromConfigurationJsonldWrite::class === $type; + return $type === 'Gyroscops\\Api\\Model\\VariableFromConfigurationJsonldWrite'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\VariableFromConfigurationJsonldWrite::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\VariableFromConfigurationJsonldWrite'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/VariableFromConfigurationReadNormalizer.php b/src/Normalizer/VariableFromConfigurationReadNormalizer.php index 1165201b..ce2e2d34 100644 --- a/src/Normalizer/VariableFromConfigurationReadNormalizer.php +++ b/src/Normalizer/VariableFromConfigurationReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class VariableFromConfigurationReadNormalizer implements DenormalizerInterface, use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\VariableFromConfigurationRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\VariableFromConfigurationRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\VariableFromConfigurationRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\VariableFromConfigurationRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,51 +52,78 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('configuration', $data) && null !== $data['configuration']) { - $object->setConfiguration($data['configuration']); - } elseif (\array_key_exists('configuration', $data) && null === $data['configuration']) { + if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { + $value = $data['configuration']; + if (is_array($data['configuration'])) { + $value = $this->denormalizer->denormalize($data['configuration'], 'Gyroscops\\Api\\Model\\ConfigurationRead', 'json', $context); + } + $object->setConfiguration($value); + unset($data['configuration']); + } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { $object->setConfiguration(null); } - if (\array_key_exists('item', $data) && null !== $data['item']) { + if (\array_key_exists('item', $data) && $data['item'] !== null) { $object->setItem($data['item']); - } elseif (\array_key_exists('item', $data) && null === $data['item']) { + unset($data['item']); + } elseif (\array_key_exists('item', $data) && $data['item'] === null) { $object->setItem(null); } - if (\array_key_exists('environment', $data) && null !== $data['environment']) { - $object->setEnvironment($data['environment']); - } elseif (\array_key_exists('environment', $data) && null === $data['environment']) { + if (\array_key_exists('environment', $data) && $data['environment'] !== null) { + $value_1 = $data['environment']; + if (is_array($data['environment'])) { + $value_1 = $this->denormalizer->denormalize($data['environment'], 'Gyroscops\\Api\\Model\\EnvironmentRead', 'json', $context); + } + $object->setEnvironment($value_1); + unset($data['environment']); + } elseif (\array_key_exists('environment', $data) && $data['environment'] === null) { $object->setEnvironment(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getConfiguration()) { - $data['configuration'] = $object->getConfiguration(); + if ($object->isInitialized('configuration') && null !== $object->getConfiguration()) { + $value = $object->getConfiguration(); + if (is_object($object->getConfiguration())) { + $value = $this->normalizer->normalize($object->getConfiguration(), 'json', $context); + } + $data['configuration'] = $value; } - if (null !== $object->getItem()) { + if ($object->isInitialized('item') && null !== $object->getItem()) { $data['item'] = $object->getItem(); } - if (null !== $object->getEnvironment()) { - $data['environment'] = $object->getEnvironment(); + if ($object->isInitialized('environment') && null !== $object->getEnvironment()) { + $value_1 = $object->getEnvironment(); + if (is_object($object->getEnvironment())) { + $value_1 = $this->normalizer->normalize($object->getEnvironment(), 'json', $context); + } + $data['environment'] = $value_1; } - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; + } + } return $data; } diff --git a/src/Normalizer/VariableFromConstantInputJsonldNormalizer.php b/src/Normalizer/VariableFromConstantInputJsonldNormalizer.php index eb68a0b7..9ce932dc 100644 --- a/src/Normalizer/VariableFromConstantInputJsonldNormalizer.php +++ b/src/Normalizer/VariableFromConstantInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class VariableFromConstantInputJsonldNormalizer implements DenormalizerInterface use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\VariableFromConstantInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\VariableFromConstantInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\VariableFromConstantInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\VariableFromConstantInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,50 +52,62 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('value', $data) && null !== $data['value']) { + if (\array_key_exists('value', $data) && $data['value'] !== null) { $object->setValue($data['value']); - } elseif (\array_key_exists('value', $data) && null === $data['value']) { + unset($data['value']); + } elseif (\array_key_exists('value', $data) && $data['value'] === null) { $object->setValue(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getValue()) { + if ($object->isInitialized('value') && null !== $object->getValue()) { $data['value'] = $object->getValue(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/VariableFromConstantInputNormalizer.php b/src/Normalizer/VariableFromConstantInputNormalizer.php index 3434652e..a0809328 100644 --- a/src/Normalizer/VariableFromConstantInputNormalizer.php +++ b/src/Normalizer/VariableFromConstantInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class VariableFromConstantInputNormalizer implements DenormalizerInterface, Norm use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\VariableFromConstantInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\VariableFromConstantInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\VariableFromConstantInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\VariableFromConstantInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,35 +52,44 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('value', $data) && null !== $data['value']) { + if (\array_key_exists('value', $data) && $data['value'] !== null) { $object->setValue($data['value']); - } elseif (\array_key_exists('value', $data) && null === $data['value']) { + unset($data['value']); + } elseif (\array_key_exists('value', $data) && $data['value'] === null) { $object->setValue(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getValue()) { + if ($object->isInitialized('value') && null !== $object->getValue()) { $data['value'] = $object->getValue(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/VariableFromConstantJsonldReadNormalizer.php b/src/Normalizer/VariableFromConstantJsonldReadNormalizer.php index 0d7e5859..24f71dba 100644 --- a/src/Normalizer/VariableFromConstantJsonldReadNormalizer.php +++ b/src/Normalizer/VariableFromConstantJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class VariableFromConstantJsonldReadNormalizer implements DenormalizerInterface, use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\VariableFromConstantJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\VariableFromConstantJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\VariableFromConstantJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\VariableFromConstantJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,58 +52,79 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('value', $data) && null !== $data['value']) { + if (\array_key_exists('value', $data) && $data['value'] !== null) { $object->setValue($data['value']); - } elseif (\array_key_exists('value', $data) && null === $data['value']) { + unset($data['value']); + } elseif (\array_key_exists('value', $data) && $data['value'] === null) { $object->setValue(null); } - if (\array_key_exists('environment', $data) && null !== $data['environment']) { - $object->setEnvironment($data['environment']); - } elseif (\array_key_exists('environment', $data) && null === $data['environment']) { + if (\array_key_exists('environment', $data) && $data['environment'] !== null) { + $value = $data['environment']; + if (is_array($data['environment'])) { + $value = $this->denormalizer->denormalize($data['environment'], 'Gyroscops\\Api\\Model\\EnvironmentJsonldRead', 'json', $context); + } + $object->setEnvironment($value); + unset($data['environment']); + } elseif (\array_key_exists('environment', $data) && $data['environment'] === null) { $object->setEnvironment(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getValue()) { + if ($object->isInitialized('value') && null !== $object->getValue()) { $data['value'] = $object->getValue(); } - if (null !== $object->getEnvironment()) { - $data['environment'] = $object->getEnvironment(); + if ($object->isInitialized('environment') && null !== $object->getEnvironment()) { + $value = $object->getEnvironment(); + if (is_object($object->getEnvironment())) { + $value = $this->normalizer->normalize($object->getEnvironment(), 'json', $context); + } + $data['environment'] = $value; } - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/VariableFromConstantJsonldWriteNormalizer.php b/src/Normalizer/VariableFromConstantJsonldWriteNormalizer.php index 80516af4..a4a9def6 100644 --- a/src/Normalizer/VariableFromConstantJsonldWriteNormalizer.php +++ b/src/Normalizer/VariableFromConstantJsonldWriteNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class VariableFromConstantJsonldWriteNormalizer implements DenormalizerInterface use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\VariableFromConstantJsonldWrite::class === $type; + return $type === 'Gyroscops\\Api\\Model\\VariableFromConstantJsonldWrite'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\VariableFromConstantJsonldWrite::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\VariableFromConstantJsonldWrite'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/VariableFromConstantReadNormalizer.php b/src/Normalizer/VariableFromConstantReadNormalizer.php index be66a3a8..a95c48e0 100644 --- a/src/Normalizer/VariableFromConstantReadNormalizer.php +++ b/src/Normalizer/VariableFromConstantReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class VariableFromConstantReadNormalizer implements DenormalizerInterface, Norma use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\VariableFromConstantRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\VariableFromConstantRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\VariableFromConstantRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\VariableFromConstantRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,43 +52,61 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('value', $data) && null !== $data['value']) { + if (\array_key_exists('value', $data) && $data['value'] !== null) { $object->setValue($data['value']); - } elseif (\array_key_exists('value', $data) && null === $data['value']) { + unset($data['value']); + } elseif (\array_key_exists('value', $data) && $data['value'] === null) { $object->setValue(null); } - if (\array_key_exists('environment', $data) && null !== $data['environment']) { - $object->setEnvironment($data['environment']); - } elseif (\array_key_exists('environment', $data) && null === $data['environment']) { + if (\array_key_exists('environment', $data) && $data['environment'] !== null) { + $value = $data['environment']; + if (is_array($data['environment'])) { + $value = $this->denormalizer->denormalize($data['environment'], 'Gyroscops\\Api\\Model\\EnvironmentRead', 'json', $context); + } + $object->setEnvironment($value); + unset($data['environment']); + } elseif (\array_key_exists('environment', $data) && $data['environment'] === null) { $object->setEnvironment(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getValue()) { + if ($object->isInitialized('value') && null !== $object->getValue()) { $data['value'] = $object->getValue(); } - if (null !== $object->getEnvironment()) { - $data['environment'] = $object->getEnvironment(); + if ($object->isInitialized('environment') && null !== $object->getEnvironment()) { + $value = $object->getEnvironment(); + if (is_object($object->getEnvironment())) { + $value = $this->normalizer->normalize($object->getEnvironment(), 'json', $context); + } + $data['environment'] = $value; } - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/VariableFromSecretInputJsonldNormalizer.php b/src/Normalizer/VariableFromSecretInputJsonldNormalizer.php index c12f5795..570a0593 100644 --- a/src/Normalizer/VariableFromSecretInputJsonldNormalizer.php +++ b/src/Normalizer/VariableFromSecretInputJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class VariableFromSecretInputJsonldNormalizer implements DenormalizerInterface, use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\VariableFromSecretInputJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\VariableFromSecretInputJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\VariableFromSecretInputJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\VariableFromSecretInputJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,50 +52,62 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('from', $data) && null !== $data['from']) { + if (\array_key_exists('from', $data) && $data['from'] !== null) { $object->setFrom($data['from']); - } elseif (\array_key_exists('from', $data) && null === $data['from']) { + unset($data['from']); + } elseif (\array_key_exists('from', $data) && $data['from'] === null) { $object->setFrom(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getFrom()) { + if ($object->isInitialized('from') && null !== $object->getFrom()) { $data['from'] = $object->getFrom(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/VariableFromSecretInputNormalizer.php b/src/Normalizer/VariableFromSecretInputNormalizer.php index 0695bc46..ea173162 100644 --- a/src/Normalizer/VariableFromSecretInputNormalizer.php +++ b/src/Normalizer/VariableFromSecretInputNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class VariableFromSecretInputNormalizer implements DenormalizerInterface, Normal use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\VariableFromSecretInput::class === $type; + return $type === 'Gyroscops\\Api\\Model\\VariableFromSecretInput'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\VariableFromSecretInput::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\VariableFromSecretInput'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,35 +52,44 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('from', $data) && null !== $data['from']) { + if (\array_key_exists('from', $data) && $data['from'] !== null) { $object->setFrom($data['from']); - } elseif (\array_key_exists('from', $data) && null === $data['from']) { + unset($data['from']); + } elseif (\array_key_exists('from', $data) && $data['from'] === null) { $object->setFrom(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } - if (null !== $object->getFrom()) { + if ($object->isInitialized('from') && null !== $object->getFrom()) { $data['from'] = $object->getFrom(); } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } return $data; } diff --git a/src/Normalizer/VariableFromSecretJsonldReadNormalizer.php b/src/Normalizer/VariableFromSecretJsonldReadNormalizer.php index fc8f736c..efb3feea 100644 --- a/src/Normalizer/VariableFromSecretJsonldReadNormalizer.php +++ b/src/Normalizer/VariableFromSecretJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class VariableFromSecretJsonldReadNormalizer implements DenormalizerInterface, N use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\VariableFromSecretJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\VariableFromSecretJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\VariableFromSecretJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\VariableFromSecretJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,66 +52,96 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('secret', $data) && null !== $data['secret']) { - $object->setSecret($data['secret']); - } elseif (\array_key_exists('secret', $data) && null === $data['secret']) { + if (\array_key_exists('secret', $data) && $data['secret'] !== null) { + $value = $data['secret']; + if (is_array($data['secret'])) { + $value = $this->denormalizer->denormalize($data['secret'], 'Gyroscops\\Api\\Model\\SecretJsonldRead', 'json', $context); + } + $object->setSecret($value); + unset($data['secret']); + } elseif (\array_key_exists('secret', $data) && $data['secret'] === null) { $object->setSecret(null); } - if (\array_key_exists('item', $data) && null !== $data['item']) { + if (\array_key_exists('item', $data) && $data['item'] !== null) { $object->setItem($data['item']); - } elseif (\array_key_exists('item', $data) && null === $data['item']) { + unset($data['item']); + } elseif (\array_key_exists('item', $data) && $data['item'] === null) { $object->setItem(null); } - if (\array_key_exists('environment', $data) && null !== $data['environment']) { - $object->setEnvironment($data['environment']); - } elseif (\array_key_exists('environment', $data) && null === $data['environment']) { + if (\array_key_exists('environment', $data) && $data['environment'] !== null) { + $value_1 = $data['environment']; + if (is_array($data['environment'])) { + $value_1 = $this->denormalizer->denormalize($data['environment'], 'Gyroscops\\Api\\Model\\EnvironmentJsonldRead', 'json', $context); + } + $object->setEnvironment($value_1); + unset($data['environment']); + } elseif (\array_key_exists('environment', $data) && $data['environment'] === null) { $object->setEnvironment(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getSecret()) { - $data['secret'] = $object->getSecret(); + if ($object->isInitialized('secret') && null !== $object->getSecret()) { + $value = $object->getSecret(); + if (is_object($object->getSecret())) { + $value = $this->normalizer->normalize($object->getSecret(), 'json', $context); + } + $data['secret'] = $value; } - if (null !== $object->getItem()) { + if ($object->isInitialized('item') && null !== $object->getItem()) { $data['item'] = $object->getItem(); } - if (null !== $object->getEnvironment()) { - $data['environment'] = $object->getEnvironment(); + if ($object->isInitialized('environment') && null !== $object->getEnvironment()) { + $value_1 = $object->getEnvironment(); + if (is_object($object->getEnvironment())) { + $value_1 = $this->normalizer->normalize($object->getEnvironment(), 'json', $context); + } + $data['environment'] = $value_1; } - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; + } + } return $data; } diff --git a/src/Normalizer/VariableFromSecretJsonldWriteNormalizer.php b/src/Normalizer/VariableFromSecretJsonldWriteNormalizer.php index 5935f23d..753d4f1b 100644 --- a/src/Normalizer/VariableFromSecretJsonldWriteNormalizer.php +++ b/src/Normalizer/VariableFromSecretJsonldWriteNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class VariableFromSecretJsonldWriteNormalizer implements DenormalizerInterface, use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\VariableFromSecretJsonldWrite::class === $type; + return $type === 'Gyroscops\\Api\\Model\\VariableFromSecretJsonldWrite'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\VariableFromSecretJsonldWrite::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\VariableFromSecretJsonldWrite'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,33 +52,45 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { - return []; + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; } } diff --git a/src/Normalizer/VariableFromSecretReadNormalizer.php b/src/Normalizer/VariableFromSecretReadNormalizer.php index f2a95ae1..897d1dbf 100644 --- a/src/Normalizer/VariableFromSecretReadNormalizer.php +++ b/src/Normalizer/VariableFromSecretReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class VariableFromSecretReadNormalizer implements DenormalizerInterface, Normali use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\VariableFromSecretRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\VariableFromSecretRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\VariableFromSecretRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\VariableFromSecretRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,51 +52,78 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('secret', $data) && null !== $data['secret']) { - $object->setSecret($data['secret']); - } elseif (\array_key_exists('secret', $data) && null === $data['secret']) { + if (\array_key_exists('secret', $data) && $data['secret'] !== null) { + $value = $data['secret']; + if (is_array($data['secret'])) { + $value = $this->denormalizer->denormalize($data['secret'], 'Gyroscops\\Api\\Model\\SecretRead', 'json', $context); + } + $object->setSecret($value); + unset($data['secret']); + } elseif (\array_key_exists('secret', $data) && $data['secret'] === null) { $object->setSecret(null); } - if (\array_key_exists('item', $data) && null !== $data['item']) { + if (\array_key_exists('item', $data) && $data['item'] !== null) { $object->setItem($data['item']); - } elseif (\array_key_exists('item', $data) && null === $data['item']) { + unset($data['item']); + } elseif (\array_key_exists('item', $data) && $data['item'] === null) { $object->setItem(null); } - if (\array_key_exists('environment', $data) && null !== $data['environment']) { - $object->setEnvironment($data['environment']); - } elseif (\array_key_exists('environment', $data) && null === $data['environment']) { + if (\array_key_exists('environment', $data) && $data['environment'] !== null) { + $value_1 = $data['environment']; + if (is_array($data['environment'])) { + $value_1 = $this->denormalizer->denormalize($data['environment'], 'Gyroscops\\Api\\Model\\EnvironmentRead', 'json', $context); + } + $object->setEnvironment($value_1); + unset($data['environment']); + } elseif (\array_key_exists('environment', $data) && $data['environment'] === null) { $object->setEnvironment(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getSecret()) { - $data['secret'] = $object->getSecret(); + if ($object->isInitialized('secret') && null !== $object->getSecret()) { + $value = $object->getSecret(); + if (is_object($object->getSecret())) { + $value = $this->normalizer->normalize($object->getSecret(), 'json', $context); + } + $data['secret'] = $value; } - if (null !== $object->getItem()) { + if ($object->isInitialized('item') && null !== $object->getItem()) { $data['item'] = $object->getItem(); } - if (null !== $object->getEnvironment()) { - $data['environment'] = $object->getEnvironment(); + if ($object->isInitialized('environment') && null !== $object->getEnvironment()) { + $value_1 = $object->getEnvironment(); + if (is_object($object->getEnvironment())) { + $value_1 = $this->normalizer->normalize($object->getEnvironment(), 'json', $context); + } + $data['environment'] = $value_1; } - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; + } + } return $data; } diff --git a/src/Normalizer/VariableJsonldReadNormalizer.php b/src/Normalizer/VariableJsonldReadNormalizer.php index 187a7da5..a0defdef 100644 --- a/src/Normalizer/VariableJsonldReadNormalizer.php +++ b/src/Normalizer/VariableJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class VariableJsonldReadNormalizer implements DenormalizerInterface, NormalizerI use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\VariableJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\VariableJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\VariableJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\VariableJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,45 +52,64 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('environment', $data) && null !== $data['environment']) { - $object->setEnvironment($data['environment']); - } elseif (\array_key_exists('environment', $data) && null === $data['environment']) { + if (\array_key_exists('environment', $data) && $data['environment'] !== null) { + $value = $data['environment']; + if (is_array($data['environment'])) { + $value = $this->denormalizer->denormalize($data['environment'], 'Gyroscops\\Api\\Model\\EnvironmentJsonldRead', 'json', $context); + } + $object->setEnvironment($value); + unset($data['environment']); + } elseif (\array_key_exists('environment', $data) && $data['environment'] === null) { $object->setEnvironment(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getEnvironment()) { - $data['environment'] = $object->getEnvironment(); + if ($object->isInitialized('environment') && null !== $object->getEnvironment()) { + $value = $object->getEnvironment(); + if (is_object($object->getEnvironment())) { + $value = $this->normalizer->normalize($object->getEnvironment(), 'json', $context); + } + $data['environment'] = $value; } - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/VariableReadNormalizer.php b/src/Normalizer/VariableReadNormalizer.php index 56e63acc..bd6fb01b 100644 --- a/src/Normalizer/VariableReadNormalizer.php +++ b/src/Normalizer/VariableReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class VariableReadNormalizer implements DenormalizerInterface, NormalizerInterfa use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\VariableRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\VariableRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\VariableRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\VariableRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,35 +52,52 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('environment', $data) && null !== $data['environment']) { - $object->setEnvironment($data['environment']); - } elseif (\array_key_exists('environment', $data) && null === $data['environment']) { + if (\array_key_exists('environment', $data) && $data['environment'] !== null) { + $value = $data['environment']; + if (is_array($data['environment'])) { + $value = $this->denormalizer->denormalize($data['environment'], 'Gyroscops\\Api\\Model\\EnvironmentRead', 'json', $context); + } + $object->setEnvironment($value); + unset($data['environment']); + } elseif (\array_key_exists('environment', $data) && $data['environment'] === null) { $object->setEnvironment(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - if (null !== $object->getEnvironment()) { - $data['environment'] = $object->getEnvironment(); + if ($object->isInitialized('environment') && null !== $object->getEnvironment()) { + $value = $object->getEnvironment(); + if (is_object($object->getEnvironment())) { + $value = $this->normalizer->normalize($object->getEnvironment(), 'json', $context); + } + $data['environment'] = $value; } - if (null !== $object->getName()) { + if ($object->isInitialized('name') && null !== $object->getName()) { $data['name'] = $object->getName(); } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/WorkflowCompileWorkflowCommandInputJsonldNormalizer.php b/src/Normalizer/WorkflowCompileWorkflowCommandInputJsonldNormalizer.php new file mode 100644 index 00000000..df5b89c7 --- /dev/null +++ b/src/Normalizer/WorkflowCompileWorkflowCommandInputJsonldNormalizer.php @@ -0,0 +1,96 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/WorkflowCompileWorkflowCommandJsonldReadNormalizer.php b/src/Normalizer/WorkflowCompileWorkflowCommandJsonldReadNormalizer.php new file mode 100644 index 00000000..8169b499 --- /dev/null +++ b/src/Normalizer/WorkflowCompileWorkflowCommandJsonldReadNormalizer.php @@ -0,0 +1,96 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/WorkflowDeclareWorkflowCommandInputJsonldNormalizer.php b/src/Normalizer/WorkflowDeclareWorkflowCommandInputJsonldNormalizer.php new file mode 100644 index 00000000..2b5cc281 --- /dev/null +++ b/src/Normalizer/WorkflowDeclareWorkflowCommandInputJsonldNormalizer.php @@ -0,0 +1,132 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('jobs', $data) && $data['jobs'] !== null) { + $values = []; + foreach ($data['jobs'] as $value) { + $values[] = $this->denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\JobJsonld', 'json', $context); + } + $object->setJobs($values); + unset($data['jobs']); + } elseif (\array_key_exists('jobs', $data) && $data['jobs'] === null) { + $object->setJobs(null); + } + if (\array_key_exists('composer', $data) && $data['composer'] !== null) { + $object->setComposer($this->denormalizer->denormalize($data['composer'], 'Gyroscops\\Api\\Model\\ComposerJsonld', 'json', $context)); + unset($data['composer']); + } elseif (\array_key_exists('composer', $data) && $data['composer'] === null) { + $object->setComposer(null); + } + if (\array_key_exists('code', $data) && $data['code'] !== null) { + $object->setCode($data['code']); + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + $object->setCode(null); + } + if (\array_key_exists('label', $data) && $data['label'] !== null) { + $object->setLabel($data['label']); + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + $object->setLabel(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getJobs() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['jobs'] = $values; + $data['composer'] = $this->normalizer->normalize($object->getComposer(), 'json', $context); + $data['code'] = $object->getCode(); + $data['label'] = $object->getLabel(); + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/WorkflowDeclareWorkflowCommandInputNormalizer.php b/src/Normalizer/WorkflowDeclareWorkflowCommandInputNormalizer.php new file mode 100644 index 00000000..47f94744 --- /dev/null +++ b/src/Normalizer/WorkflowDeclareWorkflowCommandInputNormalizer.php @@ -0,0 +1,114 @@ +denormalizer->denormalize($value, 'Gyroscops\\Api\\Model\\Job', 'json', $context); + } + $object->setJobs($values); + unset($data['jobs']); + } elseif (\array_key_exists('jobs', $data) && $data['jobs'] === null) { + $object->setJobs(null); + } + if (\array_key_exists('composer', $data) && $data['composer'] !== null) { + $object->setComposer($this->denormalizer->denormalize($data['composer'], 'Gyroscops\\Api\\Model\\Composer', 'json', $context)); + unset($data['composer']); + } elseif (\array_key_exists('composer', $data) && $data['composer'] === null) { + $object->setComposer(null); + } + if (\array_key_exists('code', $data) && $data['code'] !== null) { + $object->setCode($data['code']); + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + $object->setCode(null); + } + if (\array_key_exists('label', $data) && $data['label'] !== null) { + $object->setLabel($data['label']); + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + $object->setLabel(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $values = []; + foreach ($object->getJobs() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['jobs'] = $values; + $data['composer'] = $this->normalizer->normalize($object->getComposer(), 'json', $context); + $data['code'] = $object->getCode(); + $data['label'] = $object->getLabel(); + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } +} diff --git a/src/Normalizer/WorkflowDeclareWorkflowCommandJsonldReadNormalizer.php b/src/Normalizer/WorkflowDeclareWorkflowCommandJsonldReadNormalizer.php new file mode 100644 index 00000000..1c4ff2bb --- /dev/null +++ b/src/Normalizer/WorkflowDeclareWorkflowCommandJsonldReadNormalizer.php @@ -0,0 +1,96 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/WorkflowDeclareWorkflowScheduleCrontabCommandInputJsonldNormalizer.php b/src/Normalizer/WorkflowDeclareWorkflowScheduleCrontabCommandInputJsonldNormalizer.php new file mode 100644 index 00000000..882e127a --- /dev/null +++ b/src/Normalizer/WorkflowDeclareWorkflowScheduleCrontabCommandInputJsonldNormalizer.php @@ -0,0 +1,114 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('crontab', $data) && $data['crontab'] !== null) { + $object->setCrontab($data['crontab']); + unset($data['crontab']); + } elseif (\array_key_exists('crontab', $data) && $data['crontab'] === null) { + $object->setCrontab(null); + } + if (\array_key_exists('environment', $data) && $data['environment'] !== null) { + $object->setEnvironment($data['environment']); + unset($data['environment']); + } elseif (\array_key_exists('environment', $data) && $data['environment'] === null) { + $object->setEnvironment(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('crontab') && null !== $object->getCrontab()) { + $data['crontab'] = $object->getCrontab(); + } + if ($object->isInitialized('environment') && null !== $object->getEnvironment()) { + $data['environment'] = $object->getEnvironment(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/WorkflowDeclareWorkflowScheduleCrontabCommandInputNormalizer.php b/src/Normalizer/WorkflowDeclareWorkflowScheduleCrontabCommandInputNormalizer.php new file mode 100644 index 00000000..d4649947 --- /dev/null +++ b/src/Normalizer/WorkflowDeclareWorkflowScheduleCrontabCommandInputNormalizer.php @@ -0,0 +1,96 @@ +setCrontab($data['crontab']); + unset($data['crontab']); + } elseif (\array_key_exists('crontab', $data) && $data['crontab'] === null) { + $object->setCrontab(null); + } + if (\array_key_exists('environment', $data) && $data['environment'] !== null) { + $object->setEnvironment($data['environment']); + unset($data['environment']); + } elseif (\array_key_exists('environment', $data) && $data['environment'] === null) { + $object->setEnvironment(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('crontab') && null !== $object->getCrontab()) { + $data['crontab'] = $object->getCrontab(); + } + if ($object->isInitialized('environment') && null !== $object->getEnvironment()) { + $data['environment'] = $object->getEnvironment(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/WorkflowDeclareWorkflowScheduleCrontabCommandJsonldReadNormalizer.php b/src/Normalizer/WorkflowDeclareWorkflowScheduleCrontabCommandJsonldReadNormalizer.php new file mode 100644 index 00000000..ca57a960 --- /dev/null +++ b/src/Normalizer/WorkflowDeclareWorkflowScheduleCrontabCommandJsonldReadNormalizer.php @@ -0,0 +1,96 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/WorkflowDeclareWorkflowScheduleImmediateCommandInputJsonldNormalizer.php b/src/Normalizer/WorkflowDeclareWorkflowScheduleImmediateCommandInputJsonldNormalizer.php new file mode 100644 index 00000000..96e497f7 --- /dev/null +++ b/src/Normalizer/WorkflowDeclareWorkflowScheduleImmediateCommandInputJsonldNormalizer.php @@ -0,0 +1,105 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + if (\array_key_exists('environment', $data) && $data['environment'] !== null) { + $object->setEnvironment($data['environment']); + unset($data['environment']); + } elseif (\array_key_exists('environment', $data) && $data['environment'] === null) { + $object->setEnvironment(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('environment') && null !== $object->getEnvironment()) { + $data['environment'] = $object->getEnvironment(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/WorkflowDeclareWorkflowScheduleImmediateCommandInputNormalizer.php b/src/Normalizer/WorkflowDeclareWorkflowScheduleImmediateCommandInputNormalizer.php new file mode 100644 index 00000000..e5823de3 --- /dev/null +++ b/src/Normalizer/WorkflowDeclareWorkflowScheduleImmediateCommandInputNormalizer.php @@ -0,0 +1,87 @@ +setEnvironment($data['environment']); + unset($data['environment']); + } elseif (\array_key_exists('environment', $data) && $data['environment'] === null) { + $object->setEnvironment(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('environment') && null !== $object->getEnvironment()) { + $data['environment'] = $object->getEnvironment(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/WorkflowDeclareWorkflowScheduleImmediateCommandJsonldReadNormalizer.php b/src/Normalizer/WorkflowDeclareWorkflowScheduleImmediateCommandJsonldReadNormalizer.php new file mode 100644 index 00000000..79381418 --- /dev/null +++ b/src/Normalizer/WorkflowDeclareWorkflowScheduleImmediateCommandJsonldReadNormalizer.php @@ -0,0 +1,96 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/WorkflowJobActionJsonldNormalizer.php b/src/Normalizer/WorkflowJobActionJsonldNormalizer.php index d4e9d2ce..acd74e10 100644 --- a/src/Normalizer/WorkflowJobActionJsonldNormalizer.php +++ b/src/Normalizer/WorkflowJobActionJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class WorkflowJobActionJsonldNormalizer implements DenormalizerInterface, Normal use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\WorkflowJobActionJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\WorkflowJobActionJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\WorkflowJobActionJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\WorkflowJobActionJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,46 +52,86 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('job', $data) && null !== $data['job']) { + if (\array_key_exists('job', $data) && $data['job'] !== null) { $object->setJob($data['job']); - } elseif (\array_key_exists('job', $data) && null === $data['job']) { + unset($data['job']); + } elseif (\array_key_exists('job', $data) && $data['job'] === null) { $object->setJob(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } + if (\array_key_exists('code', $data) && $data['code'] !== null) { + $object->setCode($data['code']); + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + $object->setCode(null); + } + if (\array_key_exists('label', $data) && $data['label'] !== null) { + $object->setLabel($data['label']); + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + $object->setLabel(null); + } + if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { + $values = []; + foreach ($data['configuration'] as $value) { + $values[] = $value; + } + $object->setConfiguration($values); + unset($data['configuration']); + } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { + $object->setConfiguration(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; $data['job'] = $object->getJob(); - $data['id'] = $object->getId2(); + $data['code'] = $object->getCode(); + $data['label'] = $object->getLabel(); + $values = []; + foreach ($object->getConfiguration() as $value) { + $values[] = $value; + } + $data['configuration'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/WorkflowJobActionJsonldReadNormalizer.php b/src/Normalizer/WorkflowJobActionJsonldReadNormalizer.php index 50e6dad7..057b57f0 100644 --- a/src/Normalizer/WorkflowJobActionJsonldReadNormalizer.php +++ b/src/Normalizer/WorkflowJobActionJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class WorkflowJobActionJsonldReadNormalizer implements DenormalizerInterface, No use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\WorkflowJobActionJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\WorkflowJobActionJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\WorkflowJobActionJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\WorkflowJobActionJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,40 +52,79 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } + if (\array_key_exists('code', $data) && $data['code'] !== null) { + $object->setCode($data['code']); + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + $object->setCode(null); + } + if (\array_key_exists('label', $data) && $data['label'] !== null) { + $object->setLabel($data['label']); + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + $object->setLabel(null); + } + if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { + $values = []; + foreach ($data['configuration'] as $value) { + $values[] = $value; + } + $object->setConfiguration($values); + unset($data['configuration']); + } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { + $object->setConfiguration(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - $data['id'] = $object->getId2(); + $data['code'] = $object->getCode(); + $data['label'] = $object->getLabel(); + $values = []; + foreach ($object->getConfiguration() as $value) { + $values[] = $value; + } + $data['configuration'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/WorkflowJobActionNormalizer.php b/src/Normalizer/WorkflowJobActionNormalizer.php index ef8232c7..9a72a47a 100644 --- a/src/Normalizer/WorkflowJobActionNormalizer.php +++ b/src/Normalizer/WorkflowJobActionNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class WorkflowJobActionNormalizer implements DenormalizerInterface, NormalizerIn use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\WorkflowJobAction::class === $type; + return $type === 'Gyroscops\\Api\\Model\\WorkflowJobAction'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\WorkflowJobAction::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\WorkflowJobAction'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,31 +52,68 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('job', $data) && null !== $data['job']) { + if (\array_key_exists('job', $data) && $data['job'] !== null) { $object->setJob($data['job']); - } elseif (\array_key_exists('job', $data) && null === $data['job']) { + unset($data['job']); + } elseif (\array_key_exists('job', $data) && $data['job'] === null) { $object->setJob(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } + if (\array_key_exists('code', $data) && $data['code'] !== null) { + $object->setCode($data['code']); + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + $object->setCode(null); + } + if (\array_key_exists('label', $data) && $data['label'] !== null) { + $object->setLabel($data['label']); + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + $object->setLabel(null); + } + if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { + $values = []; + foreach ($data['configuration'] as $value) { + $values[] = $value; + } + $object->setConfiguration($values); + unset($data['configuration']); + } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { + $object->setConfiguration(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; $data['job'] = $object->getJob(); - $data['id'] = $object->getId(); + $data['code'] = $object->getCode(); + $data['label'] = $object->getLabel(); + $values = []; + foreach ($object->getConfiguration() as $value) { + $values[] = $value; + } + $data['configuration'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/WorkflowJobActionReadNormalizer.php b/src/Normalizer/WorkflowJobActionReadNormalizer.php index 6d38fd98..9cba712f 100644 --- a/src/Normalizer/WorkflowJobActionReadNormalizer.php +++ b/src/Normalizer/WorkflowJobActionReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class WorkflowJobActionReadNormalizer implements DenormalizerInterface, Normaliz use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\WorkflowJobActionRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\WorkflowJobActionRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\WorkflowJobActionRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\WorkflowJobActionRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,25 +52,61 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } + if (\array_key_exists('code', $data) && $data['code'] !== null) { + $object->setCode($data['code']); + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { + $object->setCode(null); + } + if (\array_key_exists('label', $data) && $data['label'] !== null) { + $object->setLabel($data['label']); + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { + $object->setLabel(null); + } + if (\array_key_exists('configuration', $data) && $data['configuration'] !== null) { + $values = []; + foreach ($data['configuration'] as $value) { + $values[] = $value; + } + $object->setConfiguration($values); + unset($data['configuration']); + } elseif (\array_key_exists('configuration', $data) && $data['configuration'] === null) { + $object->setConfiguration(null); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - $data['id'] = $object->getId(); + $data['code'] = $object->getCode(); + $data['label'] = $object->getLabel(); + $values = []; + foreach ($object->getConfiguration() as $value) { + $values[] = $value; + } + $data['configuration'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } return $data; } diff --git a/src/Normalizer/WorkflowJobJsonldReadNormalizer.php b/src/Normalizer/WorkflowJobJsonldReadNormalizer.php index f0336d69..53b6c221 100644 --- a/src/Normalizer/WorkflowJobJsonldReadNormalizer.php +++ b/src/Normalizer/WorkflowJobJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class WorkflowJobJsonldReadNormalizer implements DenormalizerInterface, Normaliz use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\WorkflowJobJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\WorkflowJobJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\WorkflowJobJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\WorkflowJobJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,55 +52,98 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { + $object->setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { - $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { - $object->setContext(null); + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId2($data['id']); + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId2(null); } - if (\array_key_exists('workflow', $data) && null !== $data['workflow']) { - $object->setWorkflow($data['workflow']); - } elseif (\array_key_exists('workflow', $data) && null === $data['workflow']) { + if (\array_key_exists('workflow', $data) && $data['workflow'] !== null) { + $value = $data['workflow']; + if (is_array($data['workflow']) and isset($data['workflow']['id']) and isset($data['workflow']['code']) and isset($data['workflow']['label']) and isset($data['workflow']['repositories']) and isset($data['workflow']['auths'])) { + $value = $this->denormalizer->denormalize($data['workflow'], 'Gyroscops\\Api\\Model\\WorkflowJsonldRead', 'json', $context); + } + $object->setWorkflow($value); + unset($data['workflow']); + } elseif (\array_key_exists('workflow', $data) && $data['workflow'] === null) { $object->setWorkflow(null); } - if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { - $object->setPipeline($data['pipeline']); - } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { + if (\array_key_exists('pipeline', $data) && $data['pipeline'] !== null) { + $value_1 = $data['pipeline']; + if (is_array($data['pipeline']) and isset($data['pipeline']['id']) and isset($data['pipeline']['code']) and isset($data['pipeline']['label'])) { + $value_1 = $this->denormalizer->denormalize($data['pipeline'], 'Gyroscops\\Api\\Model\\WorkflowJobPipelineJsonldRead', 'json', $context); + } + $object->setPipeline($value_1); + unset($data['pipeline']); + } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { $object->setPipeline(null); } - if (\array_key_exists('action', $data) && null !== $data['action']) { - $object->setAction($data['action']); - } elseif (\array_key_exists('action', $data) && null === $data['action']) { + if (\array_key_exists('action', $data) && $data['action'] !== null) { + $value_2 = $data['action']; + if (is_array($data['action']) and isset($data['action']['code']) and isset($data['action']['label']) and isset($data['action']['configuration'])) { + $value_2 = $this->denormalizer->denormalize($data['action'], 'Gyroscops\\Api\\Model\\WorkflowJobActionJsonldRead', 'json', $context); + } + $object->setAction($value_2); + unset($data['action']); + } elseif (\array_key_exists('action', $data) && $data['action'] === null) { $object->setAction(null); } + foreach ($data as $key => $value_3) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_3; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - $data['workflow'] = $object->getWorkflow(); - if (null !== $object->getPipeline()) { - $data['pipeline'] = $object->getPipeline(); + $value = $object->getWorkflow(); + if (is_object($object->getWorkflow())) { + $value = $this->normalizer->normalize($object->getWorkflow(), 'json', $context); + } + $data['workflow'] = $value; + if ($object->isInitialized('pipeline') && null !== $object->getPipeline()) { + $value_1 = $object->getPipeline(); + if (is_object($object->getPipeline())) { + $value_1 = $this->normalizer->normalize($object->getPipeline(), 'json', $context); + } + $data['pipeline'] = $value_1; + } + if ($object->isInitialized('action') && null !== $object->getAction()) { + $value_2 = $object->getAction(); + if (is_object($object->getAction())) { + $value_2 = $this->normalizer->normalize($object->getAction(), 'json', $context); + } + $data['action'] = $value_2; } - if (null !== $object->getAction()) { - $data['action'] = $object->getAction(); + foreach ($object as $key => $value_3) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_3; + } } return $data; diff --git a/src/Normalizer/WorkflowJobPipelineJsonldNormalizer.php b/src/Normalizer/WorkflowJobPipelineJsonldNormalizer.php index 74a2dcab..c0537a87 100644 --- a/src/Normalizer/WorkflowJobPipelineJsonldNormalizer.php +++ b/src/Normalizer/WorkflowJobPipelineJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class WorkflowJobPipelineJsonldNormalizer implements DenormalizerInterface, Norm use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\WorkflowJobPipelineJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\WorkflowJobPipelineJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\WorkflowJobPipelineJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\WorkflowJobPipelineJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,108 +52,78 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('job', $data) && null !== $data['job']) { + if (\array_key_exists('job', $data) && $data['job'] !== null) { $object->setJob($data['job']); - } elseif (\array_key_exists('job', $data) && null === $data['job']) { + unset($data['job']); + } elseif (\array_key_exists('job', $data) && $data['job'] === null) { $object->setJob(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('code', $data) && null !== $data['code']) { + if (\array_key_exists('code', $data) && $data['code'] !== null) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { $object->setCode(null); } - if (\array_key_exists('label', $data) && null !== $data['label']) { + if (\array_key_exists('label', $data) && $data['label'] !== null) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && null === $data['label']) { + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { $object->setLabel(null); } - if (\array_key_exists('runtimeType', $data) && null !== $data['runtimeType']) { - $object->setRuntimeType($data['runtimeType']); - } elseif (\array_key_exists('runtimeType', $data) && null === $data['runtimeType']) { - $object->setRuntimeType(null); - } - if (\array_key_exists('runtime', $data) && null !== $data['runtime']) { + if (\array_key_exists('runtime', $data) && $data['runtime'] !== null) { $values = []; foreach ($data['runtime'] as $value) { $values[] = $value; } $object->setRuntime($values); - } elseif (\array_key_exists('runtime', $data) && null === $data['runtime']) { + unset($data['runtime']); + } elseif (\array_key_exists('runtime', $data) && $data['runtime'] === null) { $object->setRuntime(null); } - if (\array_key_exists('autoload', $data) && null !== $data['autoload']) { + if (\array_key_exists('steps', $data) && $data['steps'] !== null) { $values_1 = []; - foreach ($data['autoload'] as $value_1) { + foreach ($data['steps'] as $value_1) { $values_1[] = $value_1; } - $object->setAutoload($values_1); - } elseif (\array_key_exists('autoload', $data) && null === $data['autoload']) { - $object->setAutoload(null); - } - if (\array_key_exists('packages', $data) && null !== $data['packages']) { - $values_2 = []; - foreach ($data['packages'] as $value_2) { - $values_2[] = $value_2; - } - $object->setPackages($values_2); - } elseif (\array_key_exists('packages', $data) && null === $data['packages']) { - $object->setPackages(null); - } - if (\array_key_exists('repositories', $data) && null !== $data['repositories']) { - $values_3 = []; - foreach ($data['repositories'] as $value_3) { - $values_3[] = $value_3; - } - $object->setRepositories($values_3); - } elseif (\array_key_exists('repositories', $data) && null === $data['repositories']) { - $object->setRepositories(null); - } - if (\array_key_exists('auths', $data) && null !== $data['auths']) { - $values_4 = []; - foreach ($data['auths'] as $value_4) { - $values_4[] = $value_4; - } - $object->setAuths($values_4); - } elseif (\array_key_exists('auths', $data) && null === $data['auths']) { - $object->setAuths(null); - } - if (\array_key_exists('steps', $data) && null !== $data['steps']) { - $values_5 = []; - foreach ($data['steps'] as $value_5) { - $values_5[] = $value_5; - } - $object->setSteps($values_5); - } elseif (\array_key_exists('steps', $data) && null === $data['steps']) { + $object->setSteps($values_1); + unset($data['steps']); + } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { $object->setSteps(null); } + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -165,37 +133,24 @@ public function normalize($object, $format = null, array $context = []) $data['id'] = $object->getId2(); $data['code'] = $object->getCode(); $data['label'] = $object->getLabel(); - $data['runtimeType'] = $object->getRuntimeType(); - if (null !== $object->getRuntime()) { + if ($object->isInitialized('runtime') && null !== $object->getRuntime()) { $values = []; foreach ($object->getRuntime() as $value) { $values[] = $value; } $data['runtime'] = $values; } - if (null !== $object->getPackages()) { + if ($object->isInitialized('steps') && null !== $object->getSteps()) { $values_1 = []; - foreach ($object->getPackages() as $value_1) { + foreach ($object->getSteps() as $value_1) { $values_1[] = $value_1; } - $data['packages'] = $values_1; - } - $values_2 = []; - foreach ($object->getRepositories() as $value_2) { - $values_2[] = $value_2; - } - $data['repositories'] = $values_2; - $values_3 = []; - foreach ($object->getAuths() as $value_3) { - $values_3[] = $value_3; - } - $data['auths'] = $values_3; - if (null !== $object->getSteps()) { - $values_4 = []; - foreach ($object->getSteps() as $value_4) { - $values_4[] = $value_4; + $data['steps'] = $values_1; + } + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; } - $data['steps'] = $values_4; } return $data; diff --git a/src/Normalizer/WorkflowJobPipelineJsonldReadNormalizer.php b/src/Normalizer/WorkflowJobPipelineJsonldReadNormalizer.php index 69b81dad..1c3486f0 100644 --- a/src/Normalizer/WorkflowJobPipelineJsonldReadNormalizer.php +++ b/src/Normalizer/WorkflowJobPipelineJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class WorkflowJobPipelineJsonldReadNormalizer implements DenormalizerInterface, use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\WorkflowJobPipelineJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\WorkflowJobPipelineJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\WorkflowJobPipelineJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\WorkflowJobPipelineJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,103 +52,72 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('code', $data) && null !== $data['code']) { + if (\array_key_exists('code', $data) && $data['code'] !== null) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { $object->setCode(null); } - if (\array_key_exists('label', $data) && null !== $data['label']) { + if (\array_key_exists('label', $data) && $data['label'] !== null) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && null === $data['label']) { + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { $object->setLabel(null); } - if (\array_key_exists('runtimeType', $data) && null !== $data['runtimeType']) { - $object->setRuntimeType($data['runtimeType']); - } elseif (\array_key_exists('runtimeType', $data) && null === $data['runtimeType']) { - $object->setRuntimeType(null); - } - if (\array_key_exists('runtime', $data) && null !== $data['runtime']) { + if (\array_key_exists('runtime', $data) && $data['runtime'] !== null) { $values = []; foreach ($data['runtime'] as $value) { $values[] = $value; } $object->setRuntime($values); - } elseif (\array_key_exists('runtime', $data) && null === $data['runtime']) { + unset($data['runtime']); + } elseif (\array_key_exists('runtime', $data) && $data['runtime'] === null) { $object->setRuntime(null); } - if (\array_key_exists('autoload', $data) && null !== $data['autoload']) { + if (\array_key_exists('steps', $data) && $data['steps'] !== null) { $values_1 = []; - foreach ($data['autoload'] as $value_1) { - $values_1[] = $value_1; - } - $object->setAutoload($values_1); - } elseif (\array_key_exists('autoload', $data) && null === $data['autoload']) { - $object->setAutoload(null); - } - if (\array_key_exists('packages', $data) && null !== $data['packages']) { - $values_2 = []; - foreach ($data['packages'] as $value_2) { - $values_2[] = $value_2; + foreach ($data['steps'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'Gyroscops\\Api\\Model\\PipelineStepJsonldRead', 'json', $context); } - $object->setPackages($values_2); - } elseif (\array_key_exists('packages', $data) && null === $data['packages']) { - $object->setPackages(null); - } - if (\array_key_exists('repositories', $data) && null !== $data['repositories']) { - $values_3 = []; - foreach ($data['repositories'] as $value_3) { - $values_3[] = $value_3; - } - $object->setRepositories($values_3); - } elseif (\array_key_exists('repositories', $data) && null === $data['repositories']) { - $object->setRepositories(null); - } - if (\array_key_exists('auths', $data) && null !== $data['auths']) { - $values_4 = []; - foreach ($data['auths'] as $value_4) { - $values_4[] = $value_4; - } - $object->setAuths($values_4); - } elseif (\array_key_exists('auths', $data) && null === $data['auths']) { - $object->setAuths(null); + $object->setSteps($values_1); + unset($data['steps']); + } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { + $object->setSteps(null); } - if (\array_key_exists('steps', $data) && null !== $data['steps']) { - $values_5 = []; - foreach ($data['steps'] as $value_5) { - $values_5[] = $value_5; + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; } - $object->setSteps($values_5); - } elseif (\array_key_exists('steps', $data) && null === $data['steps']) { - $object->setSteps(null); } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -159,37 +126,24 @@ public function normalize($object, $format = null, array $context = []) $data['id'] = $object->getId2(); $data['code'] = $object->getCode(); $data['label'] = $object->getLabel(); - $data['runtimeType'] = $object->getRuntimeType(); - if (null !== $object->getRuntime()) { + if ($object->isInitialized('runtime') && null !== $object->getRuntime()) { $values = []; foreach ($object->getRuntime() as $value) { $values[] = $value; } $data['runtime'] = $values; } - if (null !== $object->getPackages()) { + if ($object->isInitialized('steps') && null !== $object->getSteps()) { $values_1 = []; - foreach ($object->getPackages() as $value_1) { - $values_1[] = $value_1; + foreach ($object->getSteps() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); } - $data['packages'] = $values_1; - } - $values_2 = []; - foreach ($object->getRepositories() as $value_2) { - $values_2[] = $value_2; - } - $data['repositories'] = $values_2; - $values_3 = []; - foreach ($object->getAuths() as $value_3) { - $values_3[] = $value_3; + $data['steps'] = $values_1; } - $data['auths'] = $values_3; - if (null !== $object->getSteps()) { - $values_4 = []; - foreach ($object->getSteps() as $value_4) { - $values_4[] = $value_4; + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; } - $data['steps'] = $values_4; } return $data; diff --git a/src/Normalizer/WorkflowJobPipelineNormalizer.php b/src/Normalizer/WorkflowJobPipelineNormalizer.php index 78ce6fb9..7f5c0486 100644 --- a/src/Normalizer/WorkflowJobPipelineNormalizer.php +++ b/src/Normalizer/WorkflowJobPipelineNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class WorkflowJobPipelineNormalizer implements DenormalizerInterface, Normalizer use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\WorkflowJobPipeline::class === $type; + return $type === 'Gyroscops\\Api\\Model\\WorkflowJobPipeline'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\WorkflowJobPipeline::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\WorkflowJobPipeline'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,93 +52,60 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('job', $data) && null !== $data['job']) { + if (\array_key_exists('job', $data) && $data['job'] !== null) { $object->setJob($data['job']); - } elseif (\array_key_exists('job', $data) && null === $data['job']) { + unset($data['job']); + } elseif (\array_key_exists('job', $data) && $data['job'] === null) { $object->setJob(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('code', $data) && null !== $data['code']) { + if (\array_key_exists('code', $data) && $data['code'] !== null) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { $object->setCode(null); } - if (\array_key_exists('label', $data) && null !== $data['label']) { + if (\array_key_exists('label', $data) && $data['label'] !== null) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && null === $data['label']) { + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { $object->setLabel(null); } - if (\array_key_exists('runtimeType', $data) && null !== $data['runtimeType']) { - $object->setRuntimeType($data['runtimeType']); - } elseif (\array_key_exists('runtimeType', $data) && null === $data['runtimeType']) { - $object->setRuntimeType(null); - } - if (\array_key_exists('runtime', $data) && null !== $data['runtime']) { + if (\array_key_exists('runtime', $data) && $data['runtime'] !== null) { $values = []; foreach ($data['runtime'] as $value) { $values[] = $value; } $object->setRuntime($values); - } elseif (\array_key_exists('runtime', $data) && null === $data['runtime']) { + unset($data['runtime']); + } elseif (\array_key_exists('runtime', $data) && $data['runtime'] === null) { $object->setRuntime(null); } - if (\array_key_exists('autoload', $data) && null !== $data['autoload']) { + if (\array_key_exists('steps', $data) && $data['steps'] !== null) { $values_1 = []; - foreach ($data['autoload'] as $value_1) { + foreach ($data['steps'] as $value_1) { $values_1[] = $value_1; } - $object->setAutoload($values_1); - } elseif (\array_key_exists('autoload', $data) && null === $data['autoload']) { - $object->setAutoload(null); - } - if (\array_key_exists('packages', $data) && null !== $data['packages']) { - $values_2 = []; - foreach ($data['packages'] as $value_2) { - $values_2[] = $value_2; - } - $object->setPackages($values_2); - } elseif (\array_key_exists('packages', $data) && null === $data['packages']) { - $object->setPackages(null); - } - if (\array_key_exists('repositories', $data) && null !== $data['repositories']) { - $values_3 = []; - foreach ($data['repositories'] as $value_3) { - $values_3[] = $value_3; - } - $object->setRepositories($values_3); - } elseif (\array_key_exists('repositories', $data) && null === $data['repositories']) { - $object->setRepositories(null); - } - if (\array_key_exists('auths', $data) && null !== $data['auths']) { - $values_4 = []; - foreach ($data['auths'] as $value_4) { - $values_4[] = $value_4; - } - $object->setAuths($values_4); - } elseif (\array_key_exists('auths', $data) && null === $data['auths']) { - $object->setAuths(null); + $object->setSteps($values_1); + unset($data['steps']); + } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { + $object->setSteps(null); } - if (\array_key_exists('steps', $data) && null !== $data['steps']) { - $values_5 = []; - foreach ($data['steps'] as $value_5) { - $values_5[] = $value_5; + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; } - $object->setSteps($values_5); - } elseif (\array_key_exists('steps', $data) && null === $data['steps']) { - $object->setSteps(null); } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -150,37 +115,24 @@ public function normalize($object, $format = null, array $context = []) $data['id'] = $object->getId(); $data['code'] = $object->getCode(); $data['label'] = $object->getLabel(); - $data['runtimeType'] = $object->getRuntimeType(); - if (null !== $object->getRuntime()) { + if ($object->isInitialized('runtime') && null !== $object->getRuntime()) { $values = []; foreach ($object->getRuntime() as $value) { $values[] = $value; } $data['runtime'] = $values; } - if (null !== $object->getPackages()) { + if ($object->isInitialized('steps') && null !== $object->getSteps()) { $values_1 = []; - foreach ($object->getPackages() as $value_1) { + foreach ($object->getSteps() as $value_1) { $values_1[] = $value_1; } - $data['packages'] = $values_1; - } - $values_2 = []; - foreach ($object->getRepositories() as $value_2) { - $values_2[] = $value_2; - } - $data['repositories'] = $values_2; - $values_3 = []; - foreach ($object->getAuths() as $value_3) { - $values_3[] = $value_3; + $data['steps'] = $values_1; } - $data['auths'] = $values_3; - if (null !== $object->getSteps()) { - $values_4 = []; - foreach ($object->getSteps() as $value_4) { - $values_4[] = $value_4; + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; } - $data['steps'] = $values_4; } return $data; diff --git a/src/Normalizer/WorkflowJobPipelineReadNormalizer.php b/src/Normalizer/WorkflowJobPipelineReadNormalizer.php index 9f3ad2bf..60aced82 100644 --- a/src/Normalizer/WorkflowJobPipelineReadNormalizer.php +++ b/src/Normalizer/WorkflowJobPipelineReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class WorkflowJobPipelineReadNormalizer implements DenormalizerInterface, Normal use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\WorkflowJobPipelineRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\WorkflowJobPipelineRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\WorkflowJobPipelineRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\WorkflowJobPipelineRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,88 +52,54 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('code', $data) && null !== $data['code']) { + if (\array_key_exists('code', $data) && $data['code'] !== null) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { $object->setCode(null); } - if (\array_key_exists('label', $data) && null !== $data['label']) { + if (\array_key_exists('label', $data) && $data['label'] !== null) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && null === $data['label']) { + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { $object->setLabel(null); } - if (\array_key_exists('runtimeType', $data) && null !== $data['runtimeType']) { - $object->setRuntimeType($data['runtimeType']); - } elseif (\array_key_exists('runtimeType', $data) && null === $data['runtimeType']) { - $object->setRuntimeType(null); - } - if (\array_key_exists('runtime', $data) && null !== $data['runtime']) { + if (\array_key_exists('runtime', $data) && $data['runtime'] !== null) { $values = []; foreach ($data['runtime'] as $value) { $values[] = $value; } $object->setRuntime($values); - } elseif (\array_key_exists('runtime', $data) && null === $data['runtime']) { + unset($data['runtime']); + } elseif (\array_key_exists('runtime', $data) && $data['runtime'] === null) { $object->setRuntime(null); } - if (\array_key_exists('autoload', $data) && null !== $data['autoload']) { + if (\array_key_exists('steps', $data) && $data['steps'] !== null) { $values_1 = []; - foreach ($data['autoload'] as $value_1) { - $values_1[] = $value_1; - } - $object->setAutoload($values_1); - } elseif (\array_key_exists('autoload', $data) && null === $data['autoload']) { - $object->setAutoload(null); - } - if (\array_key_exists('packages', $data) && null !== $data['packages']) { - $values_2 = []; - foreach ($data['packages'] as $value_2) { - $values_2[] = $value_2; + foreach ($data['steps'] as $value_1) { + $values_1[] = $this->denormalizer->denormalize($value_1, 'Gyroscops\\Api\\Model\\PipelineStepRead', 'json', $context); } - $object->setPackages($values_2); - } elseif (\array_key_exists('packages', $data) && null === $data['packages']) { - $object->setPackages(null); - } - if (\array_key_exists('repositories', $data) && null !== $data['repositories']) { - $values_3 = []; - foreach ($data['repositories'] as $value_3) { - $values_3[] = $value_3; - } - $object->setRepositories($values_3); - } elseif (\array_key_exists('repositories', $data) && null === $data['repositories']) { - $object->setRepositories(null); - } - if (\array_key_exists('auths', $data) && null !== $data['auths']) { - $values_4 = []; - foreach ($data['auths'] as $value_4) { - $values_4[] = $value_4; - } - $object->setAuths($values_4); - } elseif (\array_key_exists('auths', $data) && null === $data['auths']) { - $object->setAuths(null); + $object->setSteps($values_1); + unset($data['steps']); + } elseif (\array_key_exists('steps', $data) && $data['steps'] === null) { + $object->setSteps(null); } - if (\array_key_exists('steps', $data) && null !== $data['steps']) { - $values_5 = []; - foreach ($data['steps'] as $value_5) { - $values_5[] = $value_5; + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; } - $object->setSteps($values_5); - } elseif (\array_key_exists('steps', $data) && null === $data['steps']) { - $object->setSteps(null); } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -144,37 +108,24 @@ public function normalize($object, $format = null, array $context = []) $data['id'] = $object->getId(); $data['code'] = $object->getCode(); $data['label'] = $object->getLabel(); - $data['runtimeType'] = $object->getRuntimeType(); - if (null !== $object->getRuntime()) { + if ($object->isInitialized('runtime') && null !== $object->getRuntime()) { $values = []; foreach ($object->getRuntime() as $value) { $values[] = $value; } $data['runtime'] = $values; } - if (null !== $object->getPackages()) { + if ($object->isInitialized('steps') && null !== $object->getSteps()) { $values_1 = []; - foreach ($object->getPackages() as $value_1) { - $values_1[] = $value_1; + foreach ($object->getSteps() as $value_1) { + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); } - $data['packages'] = $values_1; - } - $values_2 = []; - foreach ($object->getRepositories() as $value_2) { - $values_2[] = $value_2; - } - $data['repositories'] = $values_2; - $values_3 = []; - foreach ($object->getAuths() as $value_3) { - $values_3[] = $value_3; + $data['steps'] = $values_1; } - $data['auths'] = $values_3; - if (null !== $object->getSteps()) { - $values_4 = []; - foreach ($object->getSteps() as $value_4) { - $values_4[] = $value_4; + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; } - $data['steps'] = $values_4; } return $data; diff --git a/src/Normalizer/WorkflowJobReadNormalizer.php b/src/Normalizer/WorkflowJobReadNormalizer.php index 9f0784ef..7f912fe4 100644 --- a/src/Normalizer/WorkflowJobReadNormalizer.php +++ b/src/Normalizer/WorkflowJobReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class WorkflowJobReadNormalizer implements DenormalizerInterface, NormalizerInte use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\WorkflowJobRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\WorkflowJobRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\WorkflowJobRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\WorkflowJobRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,40 +52,80 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('workflow', $data) && null !== $data['workflow']) { - $object->setWorkflow($data['workflow']); - } elseif (\array_key_exists('workflow', $data) && null === $data['workflow']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { + $object->setId($data['id']); + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { + $object->setId(null); + } + if (\array_key_exists('workflow', $data) && $data['workflow'] !== null) { + $value = $data['workflow']; + if (is_array($data['workflow']) and isset($data['workflow']['id']) and isset($data['workflow']['code']) and isset($data['workflow']['label']) and isset($data['workflow']['repositories']) and isset($data['workflow']['auths'])) { + $value = $this->denormalizer->denormalize($data['workflow'], 'Gyroscops\\Api\\Model\\WorkflowRead', 'json', $context); + } + $object->setWorkflow($value); + unset($data['workflow']); + } elseif (\array_key_exists('workflow', $data) && $data['workflow'] === null) { $object->setWorkflow(null); } - if (\array_key_exists('pipeline', $data) && null !== $data['pipeline']) { - $object->setPipeline($data['pipeline']); - } elseif (\array_key_exists('pipeline', $data) && null === $data['pipeline']) { + if (\array_key_exists('pipeline', $data) && $data['pipeline'] !== null) { + $value_1 = $data['pipeline']; + if (is_array($data['pipeline']) and isset($data['pipeline']['id']) and isset($data['pipeline']['code']) and isset($data['pipeline']['label'])) { + $value_1 = $this->denormalizer->denormalize($data['pipeline'], 'Gyroscops\\Api\\Model\\WorkflowJobPipelineRead', 'json', $context); + } + $object->setPipeline($value_1); + unset($data['pipeline']); + } elseif (\array_key_exists('pipeline', $data) && $data['pipeline'] === null) { $object->setPipeline(null); } - if (\array_key_exists('action', $data) && null !== $data['action']) { - $object->setAction($data['action']); - } elseif (\array_key_exists('action', $data) && null === $data['action']) { + if (\array_key_exists('action', $data) && $data['action'] !== null) { + $value_2 = $data['action']; + if (is_array($data['action']) and isset($data['action']['code']) and isset($data['action']['label']) and isset($data['action']['configuration'])) { + $value_2 = $this->denormalizer->denormalize($data['action'], 'Gyroscops\\Api\\Model\\WorkflowJobActionRead', 'json', $context); + } + $object->setAction($value_2); + unset($data['action']); + } elseif (\array_key_exists('action', $data) && $data['action'] === null) { $object->setAction(null); } + foreach ($data as $key => $value_3) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_3; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; - $data['workflow'] = $object->getWorkflow(); - if (null !== $object->getPipeline()) { - $data['pipeline'] = $object->getPipeline(); + $value = $object->getWorkflow(); + if (is_object($object->getWorkflow())) { + $value = $this->normalizer->normalize($object->getWorkflow(), 'json', $context); + } + $data['workflow'] = $value; + if ($object->isInitialized('pipeline') && null !== $object->getPipeline()) { + $value_1 = $object->getPipeline(); + if (is_object($object->getPipeline())) { + $value_1 = $this->normalizer->normalize($object->getPipeline(), 'json', $context); + } + $data['pipeline'] = $value_1; + } + if ($object->isInitialized('action') && null !== $object->getAction()) { + $value_2 = $object->getAction(); + if (is_object($object->getAction())) { + $value_2 = $this->normalizer->normalize($object->getAction(), 'json', $context); + } + $data['action'] = $value_2; } - if (null !== $object->getAction()) { - $data['action'] = $object->getAction(); + foreach ($object as $key => $value_3) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_3; + } } return $data; diff --git a/src/Normalizer/WorkflowJsonldReadNormalizer.php b/src/Normalizer/WorkflowJsonldReadNormalizer.php index 0cbfee16..f1fa10c0 100644 --- a/src/Normalizer/WorkflowJsonldReadNormalizer.php +++ b/src/Normalizer/WorkflowJsonldReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class WorkflowJsonldReadNormalizer implements DenormalizerInterface, NormalizerI use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\WorkflowJsonldRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\WorkflowJsonldRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\WorkflowJsonldRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\WorkflowJsonldRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,67 +52,165 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('code', $data) && null !== $data['code']) { + if (\array_key_exists('isSoftDeleted', $data) && $data['isSoftDeleted'] !== null) { + $object->setIsSoftDeleted($data['isSoftDeleted']); + unset($data['isSoftDeleted']); + } elseif (\array_key_exists('isSoftDeleted', $data) && $data['isSoftDeleted'] === null) { + $object->setIsSoftDeleted(null); + } + if (\array_key_exists('code', $data) && $data['code'] !== null) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { $object->setCode(null); } - if (\array_key_exists('label', $data) && null !== $data['label']) { + if (\array_key_exists('label', $data) && $data['label'] !== null) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && null === $data['label']) { + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { $object->setLabel(null); } - if (\array_key_exists('jobs', $data) && null !== $data['jobs']) { + if (\array_key_exists('autoload', $data) && $data['autoload'] !== null) { $values = []; - foreach ($data['jobs'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\WorkflowJobJsonldRead::class, 'json', $context); + foreach ($data['autoload'] as $value) { + $values[] = $value; + } + $object->setAutoload($values); + unset($data['autoload']); + } elseif (\array_key_exists('autoload', $data) && $data['autoload'] === null) { + $object->setAutoload(null); + } + if (\array_key_exists('packages', $data) && $data['packages'] !== null) { + $values_1 = []; + foreach ($data['packages'] as $value_1) { + $values_1[] = $value_1; + } + $object->setPackages($values_1); + unset($data['packages']); + } elseif (\array_key_exists('packages', $data) && $data['packages'] === null) { + $object->setPackages(null); + } + if (\array_key_exists('repositories', $data) && $data['repositories'] !== null) { + $values_2 = []; + foreach ($data['repositories'] as $value_2) { + $values_2[] = $value_2; + } + $object->setRepositories($values_2); + unset($data['repositories']); + } elseif (\array_key_exists('repositories', $data) && $data['repositories'] === null) { + $object->setRepositories(null); + } + if (\array_key_exists('auths', $data) && $data['auths'] !== null) { + $values_3 = []; + foreach ($data['auths'] as $value_3) { + $values_3[] = $value_3; + } + $object->setAuths($values_3); + unset($data['auths']); + } elseif (\array_key_exists('auths', $data) && $data['auths'] === null) { + $object->setAuths(null); + } + if (\array_key_exists('compiledAt', $data) && $data['compiledAt'] !== null) { + $object->setCompiledAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['compiledAt'])); + unset($data['compiledAt']); + } elseif (\array_key_exists('compiledAt', $data) && $data['compiledAt'] === null) { + $object->setCompiledAt(null); + } + if (\array_key_exists('currentVersion', $data) && $data['currentVersion'] !== null) { + $object->setCurrentVersion($data['currentVersion']); + unset($data['currentVersion']); + } elseif (\array_key_exists('currentVersion', $data) && $data['currentVersion'] === null) { + $object->setCurrentVersion(null); + } + if (\array_key_exists('jobs', $data) && $data['jobs'] !== null) { + $values_4 = []; + foreach ($data['jobs'] as $value_4) { + $values_4[] = $this->denormalizer->denormalize($value_4, 'Gyroscops\\Api\\Model\\WorkflowJobJsonldRead', 'json', $context); } - $object->setJobs($values); - } elseif (\array_key_exists('jobs', $data) && null === $data['jobs']) { + $object->setJobs($values_4); + unset($data['jobs']); + } elseif (\array_key_exists('jobs', $data) && $data['jobs'] === null) { $object->setJobs(null); } + foreach ($data as $key => $value_5) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_5; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; $data['id'] = $object->getId2(); + if ($object->isInitialized('isSoftDeleted') && null !== $object->getIsSoftDeleted()) { + $data['isSoftDeleted'] = $object->getIsSoftDeleted(); + } $data['code'] = $object->getCode(); $data['label'] = $object->getLabel(); - if (null !== $object->getJobs()) { + if ($object->isInitialized('packages') && null !== $object->getPackages()) { $values = []; - foreach ($object->getJobs() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); + foreach ($object->getPackages() as $value) { + $values[] = $value; + } + $data['packages'] = $values; + } + $values_1 = []; + foreach ($object->getRepositories() as $value_1) { + $values_1[] = $value_1; + } + $data['repositories'] = $values_1; + $values_2 = []; + foreach ($object->getAuths() as $value_2) { + $values_2[] = $value_2; + } + $data['auths'] = $values_2; + if ($object->isInitialized('compiledAt') && null !== $object->getCompiledAt()) { + $data['compiledAt'] = $object->getCompiledAt()->format('Y-m-d\\TH:i:sP'); + } + if ($object->isInitialized('currentVersion') && null !== $object->getCurrentVersion()) { + $data['currentVersion'] = $object->getCurrentVersion(); + } + if ($object->isInitialized('jobs') && null !== $object->getJobs()) { + $values_3 = []; + foreach ($object->getJobs() as $value_3) { + $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); + } + $data['jobs'] = $values_3; + } + foreach ($object as $key => $value_4) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_4; } - $data['jobs'] = $values; } return $data; diff --git a/src/Normalizer/WorkflowReadNormalizer.php b/src/Normalizer/WorkflowReadNormalizer.php index e8077e87..4cc8a565 100644 --- a/src/Normalizer/WorkflowReadNormalizer.php +++ b/src/Normalizer/WorkflowReadNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class WorkflowReadNormalizer implements DenormalizerInterface, NormalizerInterfa use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\WorkflowRead::class === $type; + return $type === 'Gyroscops\\Api\\Model\\WorkflowRead'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\WorkflowRead::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\WorkflowRead'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,52 +52,147 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('code', $data) && null !== $data['code']) { + if (\array_key_exists('isSoftDeleted', $data) && $data['isSoftDeleted'] !== null) { + $object->setIsSoftDeleted($data['isSoftDeleted']); + unset($data['isSoftDeleted']); + } elseif (\array_key_exists('isSoftDeleted', $data) && $data['isSoftDeleted'] === null) { + $object->setIsSoftDeleted(null); + } + if (\array_key_exists('code', $data) && $data['code'] !== null) { $object->setCode($data['code']); - } elseif (\array_key_exists('code', $data) && null === $data['code']) { + unset($data['code']); + } elseif (\array_key_exists('code', $data) && $data['code'] === null) { $object->setCode(null); } - if (\array_key_exists('label', $data) && null !== $data['label']) { + if (\array_key_exists('label', $data) && $data['label'] !== null) { $object->setLabel($data['label']); - } elseif (\array_key_exists('label', $data) && null === $data['label']) { + unset($data['label']); + } elseif (\array_key_exists('label', $data) && $data['label'] === null) { $object->setLabel(null); } - if (\array_key_exists('jobs', $data) && null !== $data['jobs']) { + if (\array_key_exists('autoload', $data) && $data['autoload'] !== null) { $values = []; - foreach ($data['jobs'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \Gyroscops\Api\Model\WorkflowJobRead::class, 'json', $context); + foreach ($data['autoload'] as $value) { + $values[] = $value; + } + $object->setAutoload($values); + unset($data['autoload']); + } elseif (\array_key_exists('autoload', $data) && $data['autoload'] === null) { + $object->setAutoload(null); + } + if (\array_key_exists('packages', $data) && $data['packages'] !== null) { + $values_1 = []; + foreach ($data['packages'] as $value_1) { + $values_1[] = $value_1; + } + $object->setPackages($values_1); + unset($data['packages']); + } elseif (\array_key_exists('packages', $data) && $data['packages'] === null) { + $object->setPackages(null); + } + if (\array_key_exists('repositories', $data) && $data['repositories'] !== null) { + $values_2 = []; + foreach ($data['repositories'] as $value_2) { + $values_2[] = $value_2; + } + $object->setRepositories($values_2); + unset($data['repositories']); + } elseif (\array_key_exists('repositories', $data) && $data['repositories'] === null) { + $object->setRepositories(null); + } + if (\array_key_exists('auths', $data) && $data['auths'] !== null) { + $values_3 = []; + foreach ($data['auths'] as $value_3) { + $values_3[] = $value_3; + } + $object->setAuths($values_3); + unset($data['auths']); + } elseif (\array_key_exists('auths', $data) && $data['auths'] === null) { + $object->setAuths(null); + } + if (\array_key_exists('compiledAt', $data) && $data['compiledAt'] !== null) { + $object->setCompiledAt(\DateTime::createFromFormat('Y-m-d\\TH:i:sP', $data['compiledAt'])); + unset($data['compiledAt']); + } elseif (\array_key_exists('compiledAt', $data) && $data['compiledAt'] === null) { + $object->setCompiledAt(null); + } + if (\array_key_exists('currentVersion', $data) && $data['currentVersion'] !== null) { + $object->setCurrentVersion($data['currentVersion']); + unset($data['currentVersion']); + } elseif (\array_key_exists('currentVersion', $data) && $data['currentVersion'] === null) { + $object->setCurrentVersion(null); + } + if (\array_key_exists('jobs', $data) && $data['jobs'] !== null) { + $values_4 = []; + foreach ($data['jobs'] as $value_4) { + $values_4[] = $this->denormalizer->denormalize($value_4, 'Gyroscops\\Api\\Model\\WorkflowJobRead', 'json', $context); } - $object->setJobs($values); - } elseif (\array_key_exists('jobs', $data) && null === $data['jobs']) { + $object->setJobs($values_4); + unset($data['jobs']); + } elseif (\array_key_exists('jobs', $data) && $data['jobs'] === null) { $object->setJobs(null); } + foreach ($data as $key => $value_5) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_5; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; $data['id'] = $object->getId(); + if ($object->isInitialized('isSoftDeleted') && null !== $object->getIsSoftDeleted()) { + $data['isSoftDeleted'] = $object->getIsSoftDeleted(); + } $data['code'] = $object->getCode(); $data['label'] = $object->getLabel(); - if (null !== $object->getJobs()) { + if ($object->isInitialized('packages') && null !== $object->getPackages()) { $values = []; - foreach ($object->getJobs() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); + foreach ($object->getPackages() as $value) { + $values[] = $value; + } + $data['packages'] = $values; + } + $values_1 = []; + foreach ($object->getRepositories() as $value_1) { + $values_1[] = $value_1; + } + $data['repositories'] = $values_1; + $values_2 = []; + foreach ($object->getAuths() as $value_2) { + $values_2[] = $value_2; + } + $data['auths'] = $values_2; + if ($object->isInitialized('compiledAt') && null !== $object->getCompiledAt()) { + $data['compiledAt'] = $object->getCompiledAt()->format('Y-m-d\\TH:i:sP'); + } + if ($object->isInitialized('currentVersion') && null !== $object->getCurrentVersion()) { + $data['currentVersion'] = $object->getCurrentVersion(); + } + if ($object->isInitialized('jobs') && null !== $object->getJobs()) { + $values_3 = []; + foreach ($object->getJobs() as $value_3) { + $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); + } + $data['jobs'] = $values_3; + } + foreach ($object as $key => $value_4) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_4; } - $data['jobs'] = $values; } return $data; diff --git a/src/Normalizer/WorkflowRemoveWorkflowCommandInputJsonldNormalizer.php b/src/Normalizer/WorkflowRemoveWorkflowCommandInputJsonldNormalizer.php new file mode 100644 index 00000000..40bd6a87 --- /dev/null +++ b/src/Normalizer/WorkflowRemoveWorkflowCommandInputJsonldNormalizer.php @@ -0,0 +1,96 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/WorkflowRemoveWorkflowCommandJsonldReadNormalizer.php b/src/Normalizer/WorkflowRemoveWorkflowCommandJsonldReadNormalizer.php new file mode 100644 index 00000000..2b16726f --- /dev/null +++ b/src/Normalizer/WorkflowRemoveWorkflowCommandJsonldReadNormalizer.php @@ -0,0 +1,96 @@ +setContext($data['@context']); + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { + $object->setContext(null); + } + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { + $object->setId($data['@id']); + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { + $object->setId(null); + } + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { + $object->setType($data['@type']); + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { + $object->setType(null); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } +} diff --git a/src/Normalizer/WorkspaceIdJsonldNormalizer.php b/src/Normalizer/WorkspaceIdJsonldNormalizer.php deleted file mode 100644 index 4a716693..00000000 --- a/src/Normalizer/WorkspaceIdJsonldNormalizer.php +++ /dev/null @@ -1,86 +0,0 @@ -setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { - $object->setContext(null); - } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { - $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { - $object->setId(null); - } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { - $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { - $object->setType(null); - } - - return $object; - } - - /** - * @param mixed $object - * @param mixed|null $format - * - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - return []; - } -} diff --git a/src/Normalizer/WorkspaceJsonldNormalizer.php b/src/Normalizer/WorkspaceJsonldNormalizer.php index c129998d..c716070b 100644 --- a/src/Normalizer/WorkspaceJsonldNormalizer.php +++ b/src/Normalizer/WorkspaceJsonldNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class WorkspaceJsonldNormalizer implements DenormalizerInterface, NormalizerInte use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\WorkspaceJsonld::class === $type; + return $type === 'Gyroscops\\Api\\Model\\WorkspaceJsonld'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\WorkspaceJsonld::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\WorkspaceJsonld'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,89 +52,122 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('@context', $data) && null !== $data['@context']) { + if (\array_key_exists('@context', $data) && $data['@context'] !== null) { $object->setContext($data['@context']); - } elseif (\array_key_exists('@context', $data) && null === $data['@context']) { + unset($data['@context']); + } elseif (\array_key_exists('@context', $data) && $data['@context'] === null) { $object->setContext(null); } - if (\array_key_exists('@id', $data) && null !== $data['@id']) { + if (\array_key_exists('@id', $data) && $data['@id'] !== null) { $object->setId($data['@id']); - } elseif (\array_key_exists('@id', $data) && null === $data['@id']) { + unset($data['@id']); + } elseif (\array_key_exists('@id', $data) && $data['@id'] === null) { $object->setId(null); } - if (\array_key_exists('@type', $data) && null !== $data['@type']) { + if (\array_key_exists('@type', $data) && $data['@type'] !== null) { $object->setType($data['@type']); - } elseif (\array_key_exists('@type', $data) && null === $data['@type']) { + unset($data['@type']); + } elseif (\array_key_exists('@type', $data) && $data['@type'] === null) { $object->setType(null); } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId2($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId2(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('slug', $data) && null !== $data['slug']) { + if (\array_key_exists('slug', $data) && $data['slug'] !== null) { $object->setSlug($data['slug']); - } elseif (\array_key_exists('slug', $data) && null === $data['slug']) { + unset($data['slug']); + } elseif (\array_key_exists('slug', $data) && $data['slug'] === null) { $object->setSlug(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { + if (\array_key_exists('organization', $data) && $data['organization'] !== null) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { + unset($data['organization']); + } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { $object->setOrganization(null); } - if (\array_key_exists('authorizations', $data) && null !== $data['authorizations']) { + if (\array_key_exists('region', $data) && $data['region'] !== null) { + $value = $data['region']; + if (is_array($data['region']) and isset($data['region']['provider']) and isset($data['region']['datacenterName']) and isset($data['region']['datacenterAddress'])) { + $value = $this->denormalizer->denormalize($data['region'], 'Gyroscops\\Api\\Model\\RegionJsonld', 'json', $context); + } + $object->setRegion($value); + unset($data['region']); + } elseif (\array_key_exists('region', $data) && $data['region'] === null) { + $object->setRegion(null); + } + if (\array_key_exists('authorizations', $data) && $data['authorizations'] !== null) { $values = []; - foreach ($data['authorizations'] as $value) { - $values[] = $value; + foreach ($data['authorizations'] as $value_1) { + $values[] = $value_1; } $object->setAuthorizations($values); - } elseif (\array_key_exists('authorizations', $data) && null === $data['authorizations']) { + unset($data['authorizations']); + } elseif (\array_key_exists('authorizations', $data) && $data['authorizations'] === null) { $object->setAuthorizations(null); } - if (\array_key_exists('users', $data) && null !== $data['users']) { + if (\array_key_exists('users', $data) && $data['users'] !== null) { $values_1 = []; - foreach ($data['users'] as $value_1) { - $values_1[] = $value_1; + foreach ($data['users'] as $value_2) { + $values_1[] = $value_2; } $object->setUsers($values_1); - } elseif (\array_key_exists('users', $data) && null === $data['users']) { + unset($data['users']); + } elseif (\array_key_exists('users', $data) && $data['users'] === null) { $object->setUsers(null); } + foreach ($data as $key => $value_3) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_3; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; $data['name'] = $object->getName(); - $data['slug'] = $object->getSlug(); + if ($object->isInitialized('slug') && null !== $object->getSlug()) { + $data['slug'] = $object->getSlug(); + } $data['organization'] = $object->getOrganization(); - if (null !== $object->getAuthorizations()) { + $value = $object->getRegion(); + if (is_object($object->getRegion())) { + $value = $this->normalizer->normalize($object->getRegion(), 'json', $context); + } + $data['region'] = $value; + if ($object->isInitialized('authorizations') && null !== $object->getAuthorizations()) { $values = []; - foreach ($object->getAuthorizations() as $value) { - $values[] = $value; + foreach ($object->getAuthorizations() as $value_1) { + $values[] = $value_1; } $data['authorizations'] = $values; } - if (null !== $object->getUsers()) { + if ($object->isInitialized('users') && null !== $object->getUsers()) { $values_1 = []; - foreach ($object->getUsers() as $value_1) { - $values_1[] = $value_1; + foreach ($object->getUsers() as $value_2) { + $values_1[] = $value_2; } $data['users'] = $values_1; } + foreach ($object as $key => $value_3) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_3; + } + } return $data; } diff --git a/src/Normalizer/WorkspaceNormalizer.php b/src/Normalizer/WorkspaceNormalizer.php index bb902d53..875f6f20 100644 --- a/src/Normalizer/WorkspaceNormalizer.php +++ b/src/Normalizer/WorkspaceNormalizer.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Normalizer; use Gyroscops\Api\Runtime\Normalizer\CheckArray; +use Gyroscops\Api\Runtime\Normalizer\ValidatorTrait; use Jane\Component\JsonSchemaRuntime\Reference; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; @@ -24,22 +25,19 @@ class WorkspaceNormalizer implements DenormalizerInterface, NormalizerInterface, use DenormalizerAwareTrait; use NormalizerAwareTrait; use CheckArray; + use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { - return \Gyroscops\Api\Model\Workspace::class === $type; + return $type === 'Gyroscops\\Api\\Model\\Workspace'; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { - return \is_object($data) && \Gyroscops\Api\Model\Workspace::class === $data::class; + return is_object($data) && get_class($data) === 'Gyroscops\\Api\\Model\\Workspace'; } /** - * @param mixed $data - * @param mixed $class - * @param mixed|null $format - * * @return mixed */ public function denormalize($data, $class, $format = null, array $context = []) @@ -54,74 +52,104 @@ public function denormalize($data, $class, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data) && null !== $data['id']) { + if (\array_key_exists('id', $data) && $data['id'] !== null) { $object->setId($data['id']); - } elseif (\array_key_exists('id', $data) && null === $data['id']) { + unset($data['id']); + } elseif (\array_key_exists('id', $data) && $data['id'] === null) { $object->setId(null); } - if (\array_key_exists('name', $data) && null !== $data['name']) { + if (\array_key_exists('name', $data) && $data['name'] !== null) { $object->setName($data['name']); - } elseif (\array_key_exists('name', $data) && null === $data['name']) { + unset($data['name']); + } elseif (\array_key_exists('name', $data) && $data['name'] === null) { $object->setName(null); } - if (\array_key_exists('slug', $data) && null !== $data['slug']) { + if (\array_key_exists('slug', $data) && $data['slug'] !== null) { $object->setSlug($data['slug']); - } elseif (\array_key_exists('slug', $data) && null === $data['slug']) { + unset($data['slug']); + } elseif (\array_key_exists('slug', $data) && $data['slug'] === null) { $object->setSlug(null); } - if (\array_key_exists('organization', $data) && null !== $data['organization']) { + if (\array_key_exists('organization', $data) && $data['organization'] !== null) { $object->setOrganization($data['organization']); - } elseif (\array_key_exists('organization', $data) && null === $data['organization']) { + unset($data['organization']); + } elseif (\array_key_exists('organization', $data) && $data['organization'] === null) { $object->setOrganization(null); } - if (\array_key_exists('authorizations', $data) && null !== $data['authorizations']) { + if (\array_key_exists('region', $data) && $data['region'] !== null) { + $value = $data['region']; + if (is_array($data['region']) and isset($data['region']['provider']) and isset($data['region']['datacenterName']) and isset($data['region']['datacenterAddress'])) { + $value = $this->denormalizer->denormalize($data['region'], 'Gyroscops\\Api\\Model\\Region', 'json', $context); + } + $object->setRegion($value); + unset($data['region']); + } elseif (\array_key_exists('region', $data) && $data['region'] === null) { + $object->setRegion(null); + } + if (\array_key_exists('authorizations', $data) && $data['authorizations'] !== null) { $values = []; - foreach ($data['authorizations'] as $value) { - $values[] = $value; + foreach ($data['authorizations'] as $value_1) { + $values[] = $value_1; } $object->setAuthorizations($values); - } elseif (\array_key_exists('authorizations', $data) && null === $data['authorizations']) { + unset($data['authorizations']); + } elseif (\array_key_exists('authorizations', $data) && $data['authorizations'] === null) { $object->setAuthorizations(null); } - if (\array_key_exists('users', $data) && null !== $data['users']) { + if (\array_key_exists('users', $data) && $data['users'] !== null) { $values_1 = []; - foreach ($data['users'] as $value_1) { - $values_1[] = $value_1; + foreach ($data['users'] as $value_2) { + $values_1[] = $value_2; } $object->setUsers($values_1); - } elseif (\array_key_exists('users', $data) && null === $data['users']) { + unset($data['users']); + } elseif (\array_key_exists('users', $data) && $data['users'] === null) { $object->setUsers(null); } + foreach ($data as $key => $value_3) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_3; + } + } return $object; } /** - * @param mixed $object - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) { $data = []; $data['name'] = $object->getName(); - $data['slug'] = $object->getSlug(); + if ($object->isInitialized('slug') && null !== $object->getSlug()) { + $data['slug'] = $object->getSlug(); + } $data['organization'] = $object->getOrganization(); - if (null !== $object->getAuthorizations()) { + $value = $object->getRegion(); + if (is_object($object->getRegion())) { + $value = $this->normalizer->normalize($object->getRegion(), 'json', $context); + } + $data['region'] = $value; + if ($object->isInitialized('authorizations') && null !== $object->getAuthorizations()) { $values = []; - foreach ($object->getAuthorizations() as $value) { - $values[] = $value; + foreach ($object->getAuthorizations() as $value_1) { + $values[] = $value_1; } $data['authorizations'] = $values; } - if (null !== $object->getUsers()) { + if ($object->isInitialized('users') && null !== $object->getUsers()) { $values_1 = []; - foreach ($object->getUsers() as $value_1) { - $values_1[] = $value_1; + foreach ($object->getUsers() as $value_2) { + $values_1[] = $value_2; } $data['users'] = $values_1; } + foreach ($object as $key => $value_3) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_3; + } + } return $data; } diff --git a/src/Runtime/Client/BaseEndpoint.php b/src/Runtime/Client/BaseEndpoint.php index 5a07ee80..dc22381d 100644 --- a/src/Runtime/Client/BaseEndpoint.php +++ b/src/Runtime/Client/BaseEndpoint.php @@ -11,6 +11,7 @@ namespace Gyroscops\Api\Runtime\Client; use Http\Message\MultipartStream\MultipartStreamBuilder; +use Psr\Http\Message\ResponseInterface; use Symfony\Component\OptionsResolver\OptionsResolver; use Symfony\Component\Serializer\SerializerInterface; @@ -28,7 +29,7 @@ abstract public function getUri(): string; abstract public function getAuthenticationScopes(): array; - abstract protected function transformResponseBody(string $body, int $status, SerializerInterface $serializer, ?string $contentType = null); + abstract protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); protected function getExtraHeaders(): array { @@ -38,9 +39,11 @@ protected function getExtraHeaders(): array public function getQueryString(): string { $optionsResolved = $this->getQueryOptionsResolver()->resolve($this->queryParameters); - $optionsResolved = array_map(fn ($value) => $value ?? '', $optionsResolved); + $optionsResolved = array_map(function ($value) { + return null !== $value ? $value : ''; + }, $optionsResolved); - return http_build_query($optionsResolved, '', '&', \PHP_QUERY_RFC3986); + return http_build_query($optionsResolved, '', '&', PHP_QUERY_RFC3986); } public function getHeaders(array $baseHeaders = []): array @@ -73,7 +76,7 @@ protected function getMultipartBody($streamFactory = null): array $bodyBuilder->addResource($key, $value); } - return [['Content-Type' => ['multipart/form-data; boundary="'.($bodyBuilder->getBoundary().'"')]], $bodyBuilder->build()]; + return [['Content-Type' => ['multipart/form-data; boundary="' . ($bodyBuilder->getBoundary() . '"')]], $bodyBuilder->build()]; } protected function getFormOptionsResolver(): OptionsResolver diff --git a/src/Runtime/Client/Client.php b/src/Runtime/Client/Client.php index 41481d5e..5434d0d6 100644 --- a/src/Runtime/Client/Client.php +++ b/src/Runtime/Client/Client.php @@ -20,8 +20,8 @@ abstract class Client { - final public const FETCH_RESPONSE = 'response'; - final public const FETCH_OBJECT = 'object'; + public const FETCH_RESPONSE = 'response'; + public const FETCH_OBJECT = 'object'; /** * @var ClientInterface */ @@ -50,7 +50,7 @@ public function __construct(ClientInterface $httpClient, RequestFactoryInterface public function executeEndpoint(Endpoint $endpoint, string $fetch = self::FETCH_OBJECT) { if (self::FETCH_RESPONSE === $fetch) { - trigger_deprecation('jane-php/open-api-common', '7.3', 'Using %s::%s method with $fetch parameter equals to response is deprecated, use %s::%s instead.', self::class, __METHOD__, self::class, 'executeRawEndpoint'); + trigger_deprecation('jane-php/open-api-common', '7.3', 'Using %s::%s method with $fetch parameter equals to response is deprecated, use %s::%s instead.', __CLASS__, __METHOD__, __CLASS__, 'executeRawEndpoint'); return $this->executeRawEndpoint($endpoint); } @@ -67,15 +67,15 @@ private function processEndpoint(Endpoint $endpoint): ResponseInterface { [$bodyHeaders, $body] = $endpoint->getBody($this->serializer, $this->streamFactory); $queryString = $endpoint->getQueryString(); - $uriGlue = !str_contains($endpoint->getUri(), '?') ? '?' : '&'; - $uri = '' !== $queryString ? $endpoint->getUri().$uriGlue.$queryString : $endpoint->getUri(); + $uriGlue = false === strpos($endpoint->getUri(), '?') ? '?' : '&'; + $uri = $queryString !== '' ? $endpoint->getUri() . $uriGlue . $queryString : $endpoint->getUri(); $request = $this->requestFactory->createRequest($endpoint->getMethod(), $uri); if ($body) { if ($body instanceof StreamInterface) { $request = $request->withBody($body); - } elseif (\is_resource($body)) { + } elseif (is_resource($body)) { $request = $request->withBody($this->streamFactory->createStreamFromResource($body)); - } elseif (\strlen((string) $body) <= 4000 && @file_exists($body)) { + } elseif (strlen($body) <= 4000 && @file_exists($body)) { // more than 4096 chars will trigger an error $request = $request->withBody($this->streamFactory->createStreamFromFile($body)); } else { @@ -85,7 +85,7 @@ private function processEndpoint(Endpoint $endpoint): ResponseInterface foreach ($endpoint->getHeaders($bodyHeaders) as $name => $value) { $request = $request->withHeader($name, $value); } - if (\count($endpoint->getAuthenticationScopes()) > 0) { + if (count($endpoint->getAuthenticationScopes()) > 0) { $scopes = []; foreach ($endpoint->getAuthenticationScopes() as $scope) { $scopes[] = $scope; diff --git a/src/Runtime/Client/Endpoint.php b/src/Runtime/Client/Endpoint.php index 291e466a..b08c50a9 100644 --- a/src/Runtime/Client/Endpoint.php +++ b/src/Runtime/Client/Endpoint.php @@ -20,8 +20,6 @@ interface Endpoint * * Return value consist of an array where the first item will be a list of headers to add on the request (like the Content Type) * And the second value consist of the body object. - * - * @param mixed|null $streamFactory */ public function getBody(SerializerInterface $serializer, $streamFactory = null): array; diff --git a/src/Runtime/Client/EndpointTrait.php b/src/Runtime/Client/EndpointTrait.php index 18a072aa..4049ac89 100644 --- a/src/Runtime/Client/EndpointTrait.php +++ b/src/Runtime/Client/EndpointTrait.php @@ -15,12 +15,12 @@ trait EndpointTrait { - abstract protected function transformResponseBody(string $body, int $status, SerializerInterface $serializer, ?string $contentType = null); + abstract protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); public function parseResponse(ResponseInterface $response, SerializerInterface $serializer, string $fetchMode = Client::FETCH_OBJECT) { $contentType = $response->hasHeader('Content-Type') ? current($response->getHeader('Content-Type')) : null; - return $this->transformResponseBody((string) $response->getBody(), $response->getStatusCode(), $serializer, $contentType); + return $this->transformResponseBody($response, $serializer, $contentType); } } diff --git a/src/Runtime/Normalizer/CheckArray.php b/src/Runtime/Normalizer/CheckArray.php index 00ade8cb..4fa8955b 100644 --- a/src/Runtime/Normalizer/CheckArray.php +++ b/src/Runtime/Normalizer/CheckArray.php @@ -14,6 +14,8 @@ trait CheckArray { public function isOnlyNumericKeys(array $array): bool { - return \count(array_filter($array, fn ($key) => is_numeric($key), \ARRAY_FILTER_USE_KEY)) === \count($array); + return count(array_filter($array, function ($key) { + return is_numeric($key); + }, ARRAY_FILTER_USE_KEY)) === count($array); } } diff --git a/src/Runtime/Normalizer/ValidationException.php b/src/Runtime/Normalizer/ValidationException.php new file mode 100644 index 00000000..00b2f40b --- /dev/null +++ b/src/Runtime/Normalizer/ValidationException.php @@ -0,0 +1,30 @@ +violationList = $violationList; + parent::__construct(sprintf('Model validation failed with %d errors.', $violationList->count()), 400); + } + + public function getViolationList(): ConstraintViolationListInterface + { + return $this->violationList; + } +} diff --git a/src/Runtime/Normalizer/ValidatorTrait.php b/src/Runtime/Normalizer/ValidatorTrait.php new file mode 100644 index 00000000..66e1d9fc --- /dev/null +++ b/src/Runtime/Normalizer/ValidatorTrait.php @@ -0,0 +1,25 @@ +validate($data, $constraint); + if ($violations->count() > 0) { + throw new ValidationException($violations); + } + } +}